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

Privacy Pro survey support #2816

Merged
merged 28 commits into from
May 26, 2024
Merged

Privacy Pro survey support #2816

merged 28 commits into from
May 26, 2024

Conversation

samsymons
Copy link
Collaborator

@samsymons samsymons commented May 24, 2024

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

Description:

This PR adds support for showing surveys to Privacy Pro users.

Steps to test this PR:

This one can be tricky to test because it requires you to have a Privacy Pro account with a certain amount of usage. I'll give instructions on that, and then instructions on how to fake that just in case:

  1. Sign into your Privacy Pro account, if you haven't already
  2. Launch the app and wait a few seconds
  3. Background and foreground the app, to trigger the survey refresh logic
  4. Check that a survey appears on the New Tab Page

If you have a Privacy Pro account that has been active for at least a day, and used the VPN at least one day ago, the survey will appear. If not, you can fake it with the following method:

  1. Go to DefaultSurveyRemoteMessaging.swift
  2. In any of the attribute checks you want to modify, change them to return true

Internal references:

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

samsymons added 14 commits May 22, 2024 15:22
# By Federico Cappelli
# Via GitHub
* main:
  Subscription refactoring (#2764)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo/NetworkProtection/AppTargets/DeveloperIDTarget/NetworkProtectionRemoteMessaging/SurveyRemoteMessaging.swift
# By Fernando Bunn (3) and others
# Via GitHub
* main:
  Autofill engagement KPIs for pixel reporting (#2806)
  autofill: don't prefix autofill email pixels with `m.mac.` (#2808)
  Bump BSK (#2807)
  Make profile selector optional (#2811)
  Add History to iOS (updated UI and rollout) (#2770)
  New autofill save & update password prompt pixels for alignment with iOS (#2801)
  Add mylife data broker (#2786)
  Increase test timeout (#2810)
  Subscription refactoring, BSK update (#2809)
  Check for entitlement in DBP agent (#2802)
  move permanent survey card to first position (#2804)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
@samsymons samsymons requested a review from quanganhdo May 24, 2024 00:49
Copy link
Contributor

github-actions bot commented May 24, 2024

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

Generated by 🚫 dangerJS against 76b2738

Copy link
Member

@quanganhdo quanganhdo left a comment

Choose a reason for hiding this comment

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

Left some non-blocking comments, good to go when CI passes.

DuckDuckGo.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
DuckDuckGo.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
DuckDuckGo/Common/Surveys/SurveyRemoteMessaging.swift Outdated Show resolved Hide resolved
DuckDuckGo/Common/Surveys/SurveyRemoteMessaging.swift Outdated Show resolved Hide resolved
DuckDuckGo/Common/Surveys/SurveyRemoteMessaging.swift Outdated Show resolved Hide resolved
@samsymons samsymons merged commit 86fd337 into main May 26, 2024
19 checks passed
@samsymons samsymons deleted the sam/privacy-pro-surveys branch May 26, 2024 16:55
samsymons added a commit that referenced this pull request May 30, 2024
* main: (33 commits)
  Remove autofill survey (#2819)
  Bump version to 1.90.0 (192)
  Set marketing version to 1.90.0
  Update embedded files
  Privacy Pro survey support (#2816)
  Update PeopleWhiz Broker Files to use hash id (#2814)
  Update BSK due to iOS changes. (#2776)
  Scroll address bar to caret when using arrows (#2799)
  Privacy Pro macOS quick follow ups (#2813)
  BSK bump for iOS RMF updates (#2798)
  Autofill engagement KPIs for pixel reporting (#2806)
  autofill: don't prefix autofill email pixels with `m.mac.` (#2808)
  Bump BSK (#2807)
  Make profile selector optional (#2811)
  Add History to iOS (updated UI and rollout) (#2770)
  New autofill save & update password prompt pixels for alignment with iOS (#2801)
  Add mylife data broker (#2786)
  Increase test timeout (#2810)
  Subscription refactoring, BSK update (#2809)
  Check for entitlement in DBP agent (#2802)
  ...
samsymons added a commit that referenced this pull request May 31, 2024
* main:
  Bump version to 1.90.0 (196)
  Revert "Add PIPAgent entitlement (#2821)" (#2823)
  Bump version to 1.90.0 (195)
  Bump version to 1.90.0 (194)
  Add PIPAgent entitlement (#2821)
  Fixes some VPN uninstallation issues (#2820)
  Bump version to 1.90.0 (193)
  Remove autofill survey (#2819)
  Remove autofill survey (#2819)
  Bump version to 1.90.0 (192)
  Set marketing version to 1.90.0
  Update embedded files
  Privacy Pro survey support (#2816)
samsymons added a commit that referenced this pull request Jun 1, 2024
# By Elle Sullivan (10) and others
# Via GitHub (6) and others
* main: (42 commits)
  Update autoconsent to v10.9.0 (#2822)
  Bump version to 1.90.0 (196)
  Revert "Add PIPAgent entitlement (#2821)" (#2823)
  Bump version to 1.90.0 (195)
  Bump version to 1.90.0 (194)
  Add PIPAgent entitlement (#2821)
  Fixes some VPN uninstallation issues (#2820)
  Bump version to 1.90.0 (193)
  Remove autofill survey (#2819)
  Remove autofill survey (#2819)
  Bump version to 1.90.0 (192)
  Set marketing version to 1.90.0
  Update embedded files
  Privacy Pro survey support (#2816)
  Update PeopleWhiz Broker Files to use hash id (#2814)
  Update BSK due to iOS changes. (#2776)
  Scroll address bar to caret when using arrows (#2799)
  Privacy Pro macOS quick follow ups (#2813)
  BSK bump for iOS RMF updates (#2798)
  Autofill engagement KPIs for pixel reporting (#2806)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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