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

Add dataBroker name to DBP email generation #2072

Merged
merged 3 commits into from
Jan 19, 2024
Merged

Conversation

Bunn
Copy link
Collaborator

@Bunn Bunn commented Jan 16, 2024

Task/Issue URL: https://app.asana.com/0/inbox/1201011656765575/1206001821973823/1206365925714070

Description:
Add dataBroker name to DBP email generation

Steps to test this PR:

  1. Do opt-out steps
  2. Check if the /generate call is including the databroker name as a dataBroker parameter

Copy link
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

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

Works as described where the parameter is added. That said, the resulting email isn't necessarily showing anything specific I can validate against the broker name. I expect this is probably just fine.

Besides this, I've added a comment since I believe we can do a bit more cleanup with this PR.

I'm approving because the comment is non-blocking.

func getConfirmationLink(from email: String,
numberOfRetries: Int,
pollingIntervalInSeconds: Int,
shouldRunNextStep: @escaping () -> Bool) async throws -> URL
}

extension EmailServiceProtocol {
func getEmail() async throws -> String {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like this is no longer used / needed, but that we're using this call for the tests.

Would it be possible to remove this one and update the tests to use the getEmail(dataBrokerName:) variant?

I think that'd help keep the tests more valuable to us.

@Bunn Bunn merged commit 9abfb31 into main Jan 19, 2024
12 of 13 checks passed
@Bunn Bunn deleted the bunn/dbp/email-generation branch January 19, 2024 11:17
samsymons added a commit that referenced this pull request Jan 21, 2024
* main: (37 commits)
  Fix IPC memory leak (DBP support) (#2092)
  fix DBP UI at duck://dbp url (#2094)
  Avoid unnecessary work during bulk drag and drop bookmarks bar operations (#2088)
  Update URL.isDuckPlayer to return true also for duck scheme URLs (#2093)
  Add dataBroker name to DBP email generation  (#2072)
  Show/dismiss Privacy Dashboard on mouse-down (#2064)
  Allow arbitrary content loading for DBP (#2084)
  The appcast reference fix for version 0.31.7 (#2075)
  replace app-bound about: urls with duck:// urls (#2061)
  fix non-Safari DDG iOS bookmarks HTML import (#2039)
  Import "synced" bookmarks from Chrome&Firefox; Keep original root folders (#2049)
  Remove alphabetic sorting in Bookmarks Sidebar (#2048)
  Drop BookmarkTableCellView.xib (#2079)
  Fix Gatekeeper dialog for binaries downloaded by the browser (#2068)
  Display "Copy Email Address" context menu action for email links (#2076)
  add pixels for sync flows (#2056)
  Sign up with Apple bug fix (#2083)
  Improve DBP onboarding experience for FE devs (#2082)
  Prompt for Primary Password for FF Key3.db logins (#2066)
  Throw error on import database mapping error (#2065)
  ...
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