Skip to content
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

feat(alerts): Add notification_uuid column to incident activity #54809

Merged
merged 4 commits into from
Aug 16, 2023

Conversation

scttcper
Copy link
Member

Incident activities map 1:1 to a status change in an incident - eg. resolved/warning/critical. This is similar to RuleFireHistory in issue alerts. A notification is sent when a new incident activity is created

We'll use this uuid to track the number of people notified from each status change and later the CTR

Incident activities map 1:1 to a status change in an incident resolved/warning/critical. This is similar to RuleFireHistory in issue alerts.

A notification is sent when a new incident activity is created
@scttcper scttcper requested review from a team as code owners August 16, 2023 00:54
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 16, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 16, 2023

This PR has a migration; here is the generated SQL for src/sentry/migrations/0531_add_notification_uuid_to_incident_activity.py ()

--
-- Add field notification_uuid to incidentactivity
--
ALTER TABLE "sentry_incidentactivity" ADD COLUMN "notification_uuid" uuid NULL;

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #54809 (9514e27) into master (81c8527) will increase coverage by 0.03%.
Report is 2 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #54809      +/-   ##
==========================================
+ Coverage   79.80%   79.83%   +0.03%     
==========================================
  Files        5002     5019      +17     
  Lines      212481   213403     +922     
  Branches    36202    36325     +123     
==========================================
+ Hits       169563   170380     +817     
- Misses      37698    37785      +87     
- Partials     5220     5238      +18     
Files Changed Coverage Δ
src/sentry/incidents/models.py 97.61% <100.00%> (+<0.01%) ⬆️

... and 27 files with indirect coverage changes

@scttcper scttcper changed the title feat(issues): Add notification uuid to incident activity feat(issues): Add notification_uuid column to incident activity Aug 16, 2023
@scttcper scttcper changed the title feat(issues): Add notification_uuid column to incident activity feat(alerts): Add notification_uuid column to incident activity Aug 16, 2023
@scttcper scttcper merged commit d4fb1f3 into master Aug 16, 2023
59 checks passed
@scttcper scttcper deleted the scttcper/incidents-notification-uuid branch August 16, 2023 17:20
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2023
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.

4 participants