-
Notifications
You must be signed in to change notification settings - Fork 85
Preserve dnd custom endpoints #7121
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Greptile OverviewGreptile SummaryThis PR successfully implements preservation of promoted/monitored DnD (Data and Discovery) custom endpoints during SaaS integration updates. Previously, when an integration update was available, any custom endpoints that had been promoted from monitoring would be overwritten and lost. Key Changes:
Technical Approach: Test Coverage: Confidence Score: 5/5
Important Files ChangedFile Analysis
|
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.
2 files reviewed, 3 comments
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7121 +/- ##
=======================================
Coverage 87.17% 87.17%
=======================================
Files 534 534
Lines 35312 35355 +43
Branches 4113 4122 +9
=======================================
+ Hits 30783 30821 +38
- Misses 3638 3640 +2
- Partials 891 894 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
3 files reviewed, no comments
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.
3 files reviewed, 7 comments
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.
3 files reviewed, no comments
| endpoint_resources = StagedResource.filter( | ||
| db=db, | ||
| conditions=( | ||
| (StagedResource.monitor_config_id.in_(monitor_config_ids)) | ||
| & (StagedResource.resource_type == "Endpoint") | ||
| ), | ||
| ).all() |
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 think it's possible for a StagedResource to exist but not have it be "accepted" by the user. In this case, we wouldn't want to treat it as an endpoint to preserve. You'll have to verify this, or if this is the correct state once the endpoint/staged resource has been promoted.
| endpoint_resources = StagedResource.filter( | |
| db=db, | |
| conditions=( | |
| (StagedResource.monitor_config_id.in_(monitor_config_ids)) | |
| & (StagedResource.resource_type == "Endpoint") | |
| ), | |
| ).all() | |
| endpoint_resources = StagedResource.filter( | |
| db=db, | |
| conditions=( | |
| (StagedResource.monitor_config_id.in_(monitor_config_ids)) | |
| & (StagedResource.resource_type == "Endpoint") | |
| & (StagedResource.diff_status == DiffStatus.MONITORED.value) | |
| ), | |
| ).all() |
Ticket ENG-1825
Description Of Changes
Promoted staged resources for SaaS integrations DnD was overwritten whenever an integration update was available.
We now preserve those changes.
Code Changes
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works