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/change-contact-consent-to-read-only #7392

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

Conversation

chopkinsmade
Copy link
Contributor

@chopkinsmade chopkinsmade commented Dec 11, 2024

Description of change

As the legal basis API is being turned off, data hub will no longer be responsible for capturing consent from users. This responsibility will move to Microsoft Dynamics. As part of this change, a file will be delivered to datahub containing a list of users and their consent detail. This is already being ingested into the API, and made available on the /contact/UUID endpoint under the json property consent_data.

This change removes the ability for a datahub user to make a change to the Email marketing form field on the contact page, and introduces a new section for displaying a read only view of the contacts consent detail.

Once this change is merged, the PR uktrade/data-hub-api#5857 will remove all legal basis API fields from the API

Test instructions

Running the frontend locally, connected to a local instance of the API, these 2 examples can be used for testing:

Screenshots

Before

image

After

image

Checklist

  • Has the branch been rebased to main?
  • Automated tests (Any of the following when applicable: Unit, Functional or End-to-End)
  • Manual compatibility testing (Browsers: Chrome, Firefox, Edge, Safari)

@chopkinsmade chopkinsmade force-pushed the feature/change-contact-consent-to-read-only branch from af61a75 to 09edb1f Compare December 11, 2024 16:02
Copy link

cypress bot commented Dec 11, 2024

data-hub-frontend    Run #57907

Run Properties:  status check passed Passed #57907  •  git commit 43b750b660: test fixes
Project data-hub-frontend
Branch Review feature/change-contact-consent-to-read-only
Run status status check passed Passed #57907
Run duration 01m 48s
Commit git commit 43b750b660: test fixes
Committer Chris Hopkins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 15
View all changes introduced in this branch ↗︎

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.00%. Comparing base (2126dfa) to head (43b750b).
Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7392      +/-   ##
==========================================
+ Coverage   87.99%   88.00%   +0.01%     
==========================================
  Files        1168     1170       +2     
  Lines       18171    18173       +2     
  Branches     5139     5138       -1     
==========================================
+ Hits        15990    15994       +4     
+ Misses       2181     2179       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chopkinsmade chopkinsmade changed the title WIP: feature/change-contact-consent-to-read-only feature/change-contact-consent-to-read-only Dec 13, 2024
@chopkinsmade chopkinsmade marked this pull request as ready for review December 13, 2024 10:57
@chopkinsmade chopkinsmade requested a review from a team as a code owner December 13, 2024 10:57
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