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(backup): Support alert rules #52669

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

azaslavsky
Copy link
Contributor

Adds a number of tests for exportable AlertRule* Sentry models, which necessitates testing for SnubaQuery* and QuerySubscription models as well, as these are included in AlertRule instances by default.

Issue: getsentry/team-ospo#156

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 11, 2023
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/comparators branch from 642312a to 4500d9b Compare July 11, 2023 22:25
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/support_alert_rules branch from c3b8bdd to 3524e25 Compare July 11, 2023 22:25
@azaslavsky azaslavsky requested a review from kneeyo1 July 11, 2023 22:27
@azaslavsky azaslavsky marked this pull request as ready for review July 11, 2023 22:27
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/comparators branch from 4500d9b to 3cd04cf Compare July 13, 2023 16:59
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/support_alert_rules branch from 3524e25 to 3a1a138 Compare July 13, 2023 16:59
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/comparators branch from 3cd04cf to ba423f0 Compare July 13, 2023 19:35
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/support_alert_rules branch from 3a1a138 to 7d04736 Compare July 13, 2023 19:35
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/comparators branch from ba423f0 to bc07545 Compare July 13, 2023 21:14
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/support_alert_rules branch from 7d04736 to fcaea59 Compare July 13, 2023 21:15
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/comparators branch from bc07545 to 864b9d6 Compare July 14, 2023 17:39
@azaslavsky azaslavsky requested review from a team July 14, 2023 17:39
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/support_alert_rules branch from fcaea59 to d9f8423 Compare July 14, 2023 17:39
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/support_alert_rules branch from d9f8423 to 9d825bf Compare July 14, 2023 18:29
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/comparators branch from de8fb06 to 586a34b Compare July 14, 2023 18:32
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/support_alert_rules branch from 9d825bf to 31afbf3 Compare July 14, 2023 18:33
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #52669 (17479e4) into master (3ceb12e) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #52669      +/-   ##
==========================================
- Coverage   79.37%   79.37%   -0.01%     
==========================================
  Files        4934     4934              
  Lines      207215   207215              
  Branches    35403    35403              
==========================================
- Hits       164481   164480       -1     
- Misses      37704    37706       +2     
+ Partials     5030     5029       -1     
Impacted Files Coverage Δ
src/sentry/testutils/factories.py 92.88% <100.00%> (ø)

... and 2 files with indirect coverage changes

Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Contributor

@kneeyo1 kneeyo1 left a comment

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from azaslavsky/backup/comparators to master July 14, 2023 21:22
Adds a number of tests for exportable AlertRule* Sentry models, which
necessitates testing for SnubaQuery* and QuerySubscription models as
well, as these are included in AlertRule instances by default.

Issue: getsentry/team-ospo#156
@azaslavsky azaslavsky force-pushed the azaslavsky/backup/support_alert_rules branch from e91cdae to 17479e4 Compare July 14, 2023 21:44
@azaslavsky azaslavsky merged commit dde6eb1 into master Jul 14, 2023
@azaslavsky azaslavsky deleted the azaslavsky/backup/support_alert_rules branch July 14, 2023 22:37
armenzg pushed a commit that referenced this pull request Jul 17, 2023
Adds a number of tests for exportable AlertRule* Sentry models, which
necessitates testing for SnubaQuery* and QuerySubscription models as
well, as these are included in AlertRule instances by default.

Issue: getsentry/team-ospo#156
kneeyo1 added a commit that referenced this pull request Jul 19, 2023
WIP of tests for exportable models. 

related prs are #52669

---------

Co-authored-by: Alex Zaslavsky <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 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.

3 participants