-
Notifications
You must be signed in to change notification settings - Fork 37
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
Switch Sync environment to production #503
Conversation
Sources/DDGSync/DDGSync.swift
Outdated
try? updateAccount(nil) | ||
dependencies.updateServerEnvironment(serverEnvironment) | ||
authState = .initializing | ||
initializeIfNeeded(isInternalUser: false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be a good time to get rid of isInternalUser
parameter and that old migration, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, good idea. Let me do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the parameter but decided to keep SyncError.failedToMigrate
because I'm afraid that if we remove it, error codes will get shifted by 1 (and skew our pixels). I have a task on improving Sync Error reporting in pixels so when I get around to working on that, I'll set error codes manually and will remove this enum case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please review the release process for BrowserServicesKit here.
Required:
Task/Issue URL: https://app.asana.com/0/0/1205489036222324/f
iOS PR: duckduckgo/iOS#2009
macOS PR: duckduckgo/macos-browser#1622
What kind of version bump will this require?: Major
Description:
This patch allows to control Sync server environment from client apps.
to have it passed around as a reference), can be initialized with ServerEnvironment and can have
baseURL updated after creation
were added to allow overriding server environment
Steps to test this PR:
Refer to platform PRs for testing steps.
OS Testing:
Internal references:
Software Engineering Expectations
Technical Design Template