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

Fix DBP test case #3554

Closed

Conversation

quanganhdo
Copy link
Member

Task/Issue URL: https://app.asana.com/0/72649045549333/1208757448779624/f
Tech Design URL:
CC:

Description:

Fixes a test case to ensure when a profile is removed, scheduled opt-out request is cancelled.

Steps to test this PR:

  1. CI passes

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@quanganhdo quanganhdo changed the base branch from main to anh/pir/show-optoutattemptdb November 15, 2024 00:55
@@ -389,6 +396,8 @@ final class DataBrokerProfileQueryOperationManagerTests: XCTestCase {
XCTAssertTrue(mockDatabase.optOutEvents.contains(where: { $0.type == .optOutConfirmed }))
XCTAssertTrue(mockDatabase.wasUpdateRemoveDateCalled)
XCTAssertNotNil(mockDatabase.extractedProfileRemovedDate)
XCTAssertTrue(mockDatabase.wasUpdatedPreferredRunDateForOptOutCalled)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion disappeared some time in the last year. Added it back to check for the correct preferred run date.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm worried this was removed deliberately. I do remember at one point the deliberate choice to keep doing certain operations for old data even when a user had changed their details.

Copy link
Member Author

@quanganhdo quanganhdo Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jotaemepereira / @Bunn Do you have any context on this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quanganhdo, I do not have the full context of the change; I need to dig deeper. What @THISISDINOSAUR is mentioning is true.

When a user changes their profile and there are current opt-outs in progress for the old profile, we will:

  • Not scan for new matches in the old profile
  • In-progress matches for the old profile should be driven to completion (opt-out and then confirmation)

I do not know if this helps; ping me on MM if you need more assistance.

Base automatically changed from anh/pir/show-optoutattemptdb to anh/pir/retry-every-5-days November 18, 2024 16:25
Base automatically changed from anh/pir/retry-every-5-days to anh/pir/resubmit-opt-outs November 18, 2024 20:57
Base automatically changed from anh/pir/resubmit-opt-outs to main November 20, 2024 15:38
Copy link
Contributor

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against c28497d

Copy link
Contributor

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

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

Successfully merging this pull request may close these issues.

3 participants