-
Notifications
You must be signed in to change notification settings - Fork 84
Preserve customer saas dataset changes #7002
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (85.45%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #7002 +/- ##
==========================================
- Coverage 87.31% 87.30% -0.02%
==========================================
Files 532 533 +1
Lines 34982 35088 +106
Branches 4051 4067 +16
==========================================
+ Hits 30543 30632 +89
- Misses 3560 3570 +10
- Partials 879 886 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7232362 to
870d0a3
Compare
Greptile OverviewGreptile SummaryThis PR implements dataset merging functionality to preserve customer customizations to SaaS connector datasets during integration updates. Key changes:
Issues found:
Confidence Score: 4/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, 2 comments
JadeCara
left a comment
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.
Overall looks good! a few suggestions, but mostly nits. I do think greptile made a good call out thats worth reviewing.
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
galvana
left a comment
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.
The logic looks good but I think the merge logic should live in its own util. Something like src/fides/service/connection/dataset_merge_util.py. The ConnectionService is getting pretty big so let's keep this merging logic out of it.
galvana
left a comment
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.
Good work on a complex feature, ship it!
Ticket ENG-1822
Description Of Changes
Customer changes are now merged with the upcoming integration update instead of being overwritten.
When customer changes take priority:
When customer changes dont take priority:
When Integration updates take priority:
Customers can:
Customers cannot
Customers can only delete fields that were created by them.
Only officially added collections are taking into account when performing the merge.
Code Changes
Steps to Confirm
You may use #7053 to test.
/api/v1/connection/{connection_key}/datasetconfigor through the dataset editor ui if using the testing branch. Add new fields, new collection, change a fields meta or data_category and delete a field.Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works