Skip to content

feat(backup): Add EqualOrRemovedComparator#62699

Merged
azaslavsky merged 1 commit intomasterfrom
az/equal-or-removed-comparator
Jan 10, 2024
Merged

feat(backup): Add EqualOrRemovedComparator#62699
azaslavsky merged 1 commit intomasterfrom
az/equal-or-removed-comparator

Conversation

@azaslavsky
Copy link
Copy Markdown
Contributor

@azaslavsky azaslavsky commented Jan 5, 2024

Recently, we've added a couple of import handlers where we selectively null out fields based on certain conditions (see: PRs #62665 and #62526). This commit adds comparator support for this condition, allowing us to define comparators that say "make sure these fields are either equal or have been removed on the right side".

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 5, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fe73206) 56.52% compared to head (d7b652f) 81.30%.
Report is 1 commits behind head on master.

❗ Current head d7b652f differs from pull request most recent head 7c99f5e. Consider uploading reports for the commit 7c99f5e to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #62699       +/-   ##
===========================================
+ Coverage   56.52%   81.30%   +24.78%     
===========================================
  Files        5191     5201       +10     
  Lines      230171   230430      +259     
  Branches    39774    39823       +49     
===========================================
+ Hits       130101   187358    +57257     
+ Misses      96070    37328    -58742     
- Partials     4000     5744     +1744     
Files Coverage Δ
src/sentry/backup/comparators.py 94.72% <100.00%> (+15.54%) ⬆️
src/sentry/backup/findings.py 94.05% <100.00%> (+5.17%) ⬆️

... and 1830 files with indirect coverage changes

Base automatically changed from az/fix-saved-search to master January 5, 2024 21:05
@azaslavsky azaslavsky force-pushed the az/equal-or-removed-comparator branch from 748badd to a7774cb Compare January 9, 2024 16:38
@azaslavsky azaslavsky marked this pull request as ready for review January 9, 2024 16:38
@azaslavsky azaslavsky requested a review from a team January 9, 2024 16:38
Recently, we've added a couple of import handlers where we selectively
null out fields based on certain conditions (see: PRs 62665 and
62526). This commit adds comparator support for this condition, allowing
us to define comparators that say "make sure these fields are either
equal or have been removed on the right side".
@azaslavsky azaslavsky force-pushed the az/equal-or-removed-comparator branch from d7b652f to 7c99f5e Compare January 10, 2024 00:33
@azaslavsky azaslavsky merged commit 57bbfd4 into master Jan 10, 2024
@azaslavsky azaslavsky deleted the az/equal-or-removed-comparator branch January 10, 2024 00:55
trillville pushed a commit that referenced this pull request Jan 19, 2024
Recently, we've added a couple of import handlers where we selectively
null out fields based on certain conditions (see: PRs #62665 and
#62526). This commit adds comparator support for this condition,
allowing us to define comparators that say "make sure these fields are
either equal or have been removed on the right side".
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 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.

2 participants