Skip to content

Conversation

@ykamo001
Copy link
Contributor

@ykamo001 ykamo001 commented Mar 8, 2024

Break apart common code that will be leveraged for new work. There is some common logic between metric and issue alerts, so consolidating and testing that code will make it easier to work with for future iterations.

@ykamo001 ykamo001 self-assigned this Mar 8, 2024
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 8, 2024
@ykamo001 ykamo001 requested a review from a team March 8, 2024 20:51
@ykamo001 ykamo001 marked this pull request as ready for review March 8, 2024 20:51
@ykamo001 ykamo001 requested a review from a team as a code owner March 8, 2024 20:51
@codecov
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.32%. Comparing base (c7829df) to head (1641baa).
Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #66623      +/-   ##
==========================================
- Coverage   84.32%   84.32%   -0.01%     
==========================================
  Files        5314     5314              
  Lines      237620   237628       +8     
  Branches    41113    41115       +2     
==========================================
+ Hits       200380   200386       +6     
- Misses      37021    37023       +2     
  Partials      219      219              
Files Coverage Δ
src/sentry/integrations/repository/base.py 100.00% <100.00%> (ø)
src/sentry/integrations/repository/metric_alert.py 91.22% <100.00%> (-0.44%) ⬇️

... and 5 files with indirect coverage changes

if incident_exists_without_trigger or trigger_exists_without_incident:
# We can create a NotificationMessage if it has both, or neither, of incident and trigger.
# The following is an XNOR check for incident and trigger
if (self.incident_id is not None) != (self.trigger_action_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.

nice nice

@ykamo001 ykamo001 merged commit 374edcf into master Mar 12, 2024
@ykamo001 ykamo001 deleted the eco-64840-common branch March 12, 2024 00:34
ykamo001 added a commit that referenced this pull request Mar 12, 2024
For Issue Alert notification messages, we need to be able to retrieve
the parent message such that we can create a thread. Added logic to help
achieve that query and flow, along with some tests.

Requires: #66623
ykamo001 added a commit that referenced this pull request Mar 12, 2024
Add repository into Issue Alert code path to start being able to use it,
and create the FF that we will use to enable the logic.

Requires: #66623
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2024
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.

3.1 When sending a notification for an Issue Alert, store the notification and response in our data model

3 participants