Skip to content

♻️ ref(aci): update links in issue alert titles #89240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2025

Conversation

iamrajjoshi
Copy link
Member

this pr updates get_title_link method in our notification builder to work with notification action and when the new ui rolls out.

we fetch legacy_rule_id if the notification action is invoked
OR
we fetch workflow_id if the new ui flag is enabled

@iamrajjoshi iamrajjoshi self-assigned this Apr 9, 2025
@iamrajjoshi iamrajjoshi requested review from a team as code owners April 9, 2025 23:03
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 9, 2025
Comment on lines +61 to +68
if features.has("organizations:workflow-engine-ui-links", self.group.organization):
rule_id = int(get_key_from_rule_data(self.rules[0], "workflow_id"))
elif features.has(
"organizations:workflow-engine-trigger-actions", self.group.organization
):
rule_id = int(get_key_from_rule_data(self.rules[0], "legacy_rule_id"))
else:
rule_id = self.rules[0].id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm really starting to think we could use a utility method for this now. Seems like we implement this logic in a few places.

Comment on lines +196 to +199
if (
environment_id is not None
and (environment_name := fetch_environment_name(environment_id)) is not None
):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly curious, when can environment_id be none?

Copy link

codecov bot commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 84.72222% with 11 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...c/sentry/integrations/messaging/message_builder.py 64.70% 6 Missing ⚠️
...try/integrations/discord/message_builder/issues.py 72.72% 3 Missing ⚠️
.../sentry/integrations/slack/test_message_builder.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #89240      +/-   ##
==========================================
+ Coverage   82.65%   87.71%   +5.06%     
==========================================
  Files       10106    10123      +17     
  Lines      571872   572803     +931     
  Branches    22477    22477              
==========================================
+ Hits       472703   502462   +29759     
+ Misses      98732    69904   -28828     
  Partials      437      437              

@iamrajjoshi iamrajjoshi merged commit 4a15268 into master Apr 11, 2025
60 checks passed
@iamrajjoshi iamrajjoshi deleted the raj/aci/update-title-link branch April 11, 2025 14:41
Copy link

sentry-io bot commented Apr 20, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ SnubaError: HTTPConnectionPool(host='snuba-api', port=80): Read timed out. (read timeout=30) /extensions/slack/action/ View Issue

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants