-
Notifications
You must be signed in to change notification settings - Fork 226
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
MNTOR-3971: Use last optout date instead of last update #5591
Conversation
Preview URL 🚀 : https://blurts-server-pr-5591-mgjlpikfea-uk.a.run.app |
It's best practice to separate out the db migration part of the PR with the business logic on top. This way, in the event of a rollback, we can rollback the part 2 without running into the similar issue we had before |
bdafa7a
to
8748975
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.
Looks good.
@mansaj Could you also review to make sure the migration and back-end parts are OK? |
Sorry, I actually meant to for this PR to be split into 2 PRs. The reason is stated above, but with commits, we'd still have to do cherry picking etc in the event of a rollback. Just my 2c |
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.
Just the comment about splitting this PR into two. Otherwise LGTM
PRs aren't separately recorded in Git history; individual commits can be rolled back regardless of whether they're a PR merge commit or a regular commit (i.e. reverting a PR through the GitHub UI is just executing |
This newly-added API response property accurately reflects the last scan date (which we had incorrectly hoped the last update date to do). Note that I'm not familiar with the QA customs tool, so I mostly followed existing patterns and added `last_optout_at` wherever I could find `optout_attempts`. I think that covers it, but it uses quite a few custom types and otherwise lives fairly separate from the rest of the codebase, so I'm not particularly confident.
20c66e7
to
3d18a6a
Compare
Cleanup completed - database 'blurts-server-pr-5591' destroyed, cloud run service 'blurts-server-pr-5591' destroyed |
References:
Jira: MNTOR-3971
Figma: N/A
Description
This newly-added API response property accurately reflects the last scan date (which we had incorrectly hoped the last update date to do).
Note that I'm not familiar with the QA customs tool, so I mostly followed existing patterns and added
last_optout_at
wherever I could findoptout_attempts
. I think that covers it, but it uses quite a few custom types and otherwise lives fairly separate from the rest of the codebase, so I'm not particularly confident.Screenshot (if applicable)
Not applicable.
How to test
Make sure the
DataBrokerRemovalAttempts
andAdditionalRemovalStatuses
flags are on, which in Storybook you can do by setting it to:(You might have to refresh, because the initial value Storybook sets is
{}
, which is not an array and thus causes an error.)A Plus user (e.g. in the above story) should then see the removal attempt in the Fixed tab for any "Requested removal" scan results. If you want to be sure that it's showing the last optout date as returned from the API, you can set it to some recognisable value in
/src/apiMocks/mockData.ts
.Checklist (Definition of Done)