Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

chopkinsmade
Copy link
Contributor

@chopkinsmade chopkinsmade commented Dec 13, 2024

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

  • Make sure fixtures/test_data.yaml is maintained when updating models
  • Consider the admin site when making changes to models
  • Use select-/prefetch-related field lists in views and search apps, and update them when fields are added
  • Make sure the README is updated e.g. when adding new environment variables

See docs/CONTRIBUTING.md for more guidelines.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.60%. Comparing base (0207e9e) to head (2c0064f).

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.
📢 Have feedback on the report? Share it here.

@chopkinsmade chopkinsmade force-pushed the feature/remove-legal-basis-api-connection branch 2 times, most recently from b677f62 to 171c71e Compare December 13, 2024 11:31
@chopkinsmade chopkinsmade force-pushed the feature/remove-legal-basis-api-connection branch from 171c71e to df1f9dd Compare December 19, 2024 10:05
@chopkinsmade chopkinsmade changed the title WIP: feature/remove-legal-basis-api-connection feature/remove-legal-basis-api-connection Dec 19, 2024
@chopkinsmade chopkinsmade removed the wip label Dec 19, 2024
@chopkinsmade chopkinsmade marked this pull request as ready for review December 19, 2024 10:21
@chopkinsmade chopkinsmade requested a review from a team as a code owner December 19, 2024 10:21
Copy link
Contributor

@DeanElliott96 DeanElliott96 left a 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

@chopkinsmade
Copy link
Contributor Author

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

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants