-
Notifications
You must be signed in to change notification settings - Fork 10
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
feature/remove-legal-basis-api-connection #5857
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5857 +/- ##
==========================================
- Coverage 96.64% 96.60% -0.04%
==========================================
Files 1058 1057 -1
Lines 25178 25041 -137
Branches 1670 1662 -8
==========================================
- Hits 24333 24192 -141
- Misses 689 692 +3
- Partials 156 157 +1 ☔ View full report in Codecov by Sentry. |
b677f62
to
171c71e
Compare
171c71e
to
df1f9dd
Compare
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.
LGTM! Would you be able to remove the environment variables from the README as well?
Also just a reminder to remove in the data-hub-deploy repo if you haven't planned on already
Deploy repo PR raised here https://github.com/uktrade/data-hub-deploy/pull/75 |
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.
Hold merging until front end is released
Description of change
As the legal basis API is being decommissioned, the datahub functions that use that service need to be updated to remove that connection. Any time a contact is created or modified, a job is added to the RQ scheduler to update that contacts consent choice in the legal basis API. There are also separate serializers that when used by an endpoint would make a call to the legal basis API to obtain the most recent consent value.
For reference, inside datahub the legal basis API is called the consent service
Checklist
Has this branch been rebased on top of the current
main
branch?Explanation
The branch should not be stale or have conflicts at the time reviews are requested.
Is the CircleCI build passing?
General points
Other things to check
fixtures/test_data.yaml
is maintained when updating modelsSee docs/CONTRIBUTING.md for more guidelines.