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 Pixel for sync unauthenticated response #376

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

ayoy
Copy link
Contributor

@ayoy ayoy commented Jun 2, 2023

Please review the release process for BrowserServicesKit here.

Required:

Task/Issue URL: https://app.asana.com/0/0/1204729420609454/f
iOS PR: duckduckgo/iOS#1757
macOS PR: duckduckgo/macos-browser#1246
What kind of version bump will this require?: Major

Description:
Add support for reporting errors from DDGSync class via EventMapping. Report unauthenticated error.

Steps to test this PR:
On the client:

  1. Set up sync
  2. Enable Pixel logging if needed
  3. Sync another device
  4. On another device remove the main device
  5. On the main device enter sync settings
  6. Verify that you get 401 from /devices endpoint and sync_sent_unauthenticated_request debug pixel is fired (with ["d": "DDGSync.SyncError", "e": "1"] parameters).

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16
  • macOS 10.15
  • macOS 11
  • macOS 12

Internal references:

Software Engineering Expectations
Technical Design Template

@ayoy ayoy self-assigned this Jun 2, 2023
@ayoy ayoy assigned brindy and unassigned ayoy Jun 2, 2023
@ayoy ayoy marked this pull request as ready for review June 2, 2023 10:08
@brindy brindy self-requested a review June 2, 2023 10:46
Copy link
Contributor

@brindy brindy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@brindy brindy left a comment

Choose a reason for hiding this comment

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

LGTM

@brindy brindy assigned ayoy and unassigned brindy Jun 2, 2023
@ayoy ayoy merged commit 97ba4cb into main Jun 2, 2023
@ayoy ayoy deleted the dominik/sync-error-reporting branch June 2, 2023 15:52
samsymons added a commit that referenced this pull request Jun 19, 2023
* main: (45 commits)
  SecureVault Keychain updates (#382)
  Reattach orphaned bookmarks to root folder when reordering (#383)
  Allow for asynchronous sync initialization (#381)
  Drop regex support in param stripping (#367)
  mac promo exp2 - add support for share link message (#375)
  Revert accidentally pushed change
  Remove test that was dependant on the keychain
  Add item to keychain in the background (#380)
  macOS in-context signup updates (#359)
  Fixes the format in a log call (#379)
  Add EventMapping to DDGSync dependencies and call it from handleUnauthenticated (#376)
  Autofill hash migration updates + Bitwarden hotfix (#372)
  Autofill password generation support for iOS (#361)
  Update autofill to 7.1.0 (#370)
  Sync Engine with support for syncing bookmarks (#355)
  Centralised Messaging for User Scripts (#299)
  Update TLD accounts query to be more specific (#368)
  Bump Tests/BrowserServicesKitTests/Resources/privacy-reference-tests (#366)
  Adds a different hash Account per each macOS build kind (#363)
  adjust os_log parameter name using disfavoredOverload (#349)
  ...
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