-
Notifications
You must be signed in to change notification settings - Fork 84
[ENG-1974] helper functions #7051
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. 2 Skipped Deployments
|
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (91.48%) 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 #7051 +/- ##
==========================================
+ Coverage 87.29% 87.30% +0.01%
==========================================
Files 530 532 +2
Lines 34890 34936 +46
Branches 4046 4048 +2
==========================================
+ Hits 30457 30502 +45
- Misses 3551 3552 +1
Partials 882 882 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…-to-handle-bulk-ops
Greptile OverviewGreptile SummaryExtracts privacy request filtering, sorting, and CSV download logic from endpoints into service layer utilities, following architectural best practices. Major changes:
The refactoring maintains backward compatibility and sets foundation for bulk filtered DSR actions in subsequent PRs. 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, 1 comment
|
@greptile please review |
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, no comments
…-to-handle-bulk-ops
|
@greptile please review |
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.
7 files reviewed, no comments
erosselli
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.
Thanks for tackling the refactor!! ❤️
| @@ -1,10 +1,8 @@ | |||
| # pylint: disable=too-many-branches,too-many-lines, too-many-statements | |||
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 wonder if we can remove any of these or if they're still needed.... maybe one day we'll be able to remove them
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.
Removed two of them!
Ticket ENG-1974
Description Of Changes
🎯 As a Fides user I want to be able to filter my results and then act on them, so that I can perform actions on many pages of results instead of having to go 1 by 1.
AC:
This PR adds helper functions get the request ids from either a list or the filters being passed in. There is also a small re-organization of some functionality with the goal of providing better separation of concerns.
Code Changes
src/fides/api/api/v1/endpoints/privacy_request_endpoints.py: adds the helper functionssrc/fides/service/privacy_request/privacy_request_filter_query_util.pysrc/fides/service/privacy_request/privacy_request_download_csv.pytests/serive/privacy_request/test_privacy_request_filter_query_utility.pytests the new helper functionsPRs in this chain:
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works