-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
♻️ 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
Conversation
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 |
There was a problem hiding this comment.
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.
if ( | ||
environment_id is not None | ||
and (environment_name := fetch_environment_name(environment_id)) is not None | ||
): |
There was a problem hiding this comment.
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?
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found. 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 |
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
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 invokedOR
we fetch
workflow_id
if the new ui flag is enabled