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

Freemium PIR: Disable and Delete PIR If the Freemium Feature Is Disabled #3200

Conversation

aataraxiaa
Copy link
Contributor

@aataraxiaa aataraxiaa commented Sep 3, 2024

Task/Issue URL: https://app.asana.com/0/0/1208081037247881/f

Description: This PR implements disabling of PIR and deletion of related data when:

  1. The user had onboarded to Freemium AND
  2. The feature flag is disabled

Testing Prerequisites

  1. Make sure you are an internal user
  2. Disable/Signout of Privacy Pro (Settings menu -> PP -> Remove from this device)
  3. Set a breakpoint in FreemiumPIRFeature at line 96
  4. Make sure this JSON Blob has freemium set to internal. Then use the debug menu to set a custom config to this, and refresh the config

Steps to test this PR:
**TEST 1 - Onboard to Freemium Then Disable the Feature

  1. Open Freemium PIR via More Options Menu -> Personal Information Scan
  2. Enter profile data if needed, perform a scan
  3. Set the freemium JSON Blob value to disabled, and refresh the config
  4. Open the More Options Menu
  5. Ensure the breakpoint is hit
  6. The PIR tab should close and the Personal Information Scan item should not be in the more options

**TEST 2 - Onboard to Freemium, Then Purchase Privacy Pro, Then Disable the Feature

  1. Now set the freemium JSON Blob value to internal, and refresh the config
  2. Open Freemium PIR via More Options Menu -> Personal Information Scan
  3. Enter profile data if needed, perform a scan
  4. Now sign in to PP, using your subscription email
  5. Set the freemium JSON Blob value to disabled, and refresh the config
  6. Ensure the breakpoint is NOT hit

Definition of Done:

Internal references:

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

@aataraxiaa aataraxiaa requested a review from ayoy September 3, 2024 18:05
@aataraxiaa aataraxiaa force-pushed the pete/feature/pir-freemium-delete-data-on-feature-disable branch from a6c9d8d to 9f1d6cd Compare September 4, 2024 09:11
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

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

LGTM! All works well after I've read through the steps carefully 😅 Leaving just a single API naming comment. Thanks @aataraxiaa!

///
/// 1. Is eligible to purchase
/// 2. Is not a current subscriber
var isAPotentialPrivacyProSubscriber: Bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd remove the A from this name as we don't really use articles in symbol names :)

@aataraxiaa aataraxiaa merged commit e607649 into pete/feature/pir-freemium Sep 4, 2024
18 of 19 checks passed
@aataraxiaa aataraxiaa deleted the pete/feature/pir-freemium-delete-data-on-feature-disable branch September 4, 2024 17:07
aataraxiaa added a commit that referenced this pull request Sep 10, 2024
…led (#3200)

Task/Issue URL: https://app.asana.com/0/0/1208081037247881/f

**Description**: This PR implements disabling of PIR and deletion of
related data when:

1. The user had onboarded to Freemium AND
2. The feature flag is disabled
aataraxiaa added a commit that referenced this pull request Sep 18, 2024
…led (#3200)

Task/Issue URL: https://app.asana.com/0/0/1208081037247881/f

**Description**: This PR implements disabling of PIR and deletion of
related data when:

1. The user had onboarded to Freemium AND
2. The feature flag is disabled
aataraxiaa added a commit that referenced this pull request Oct 8, 2024
…led (#3200)

Task/Issue URL: https://app.asana.com/0/0/1208081037247881/f

**Description**: This PR implements disabling of PIR and deletion of
related data when:

1. The user had onboarded to Freemium AND
2. The feature flag is disabled
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.

2 participants