Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

implement sync timeout #1045

Merged
merged 7 commits into from
Jun 6, 2019
Merged

implement sync timeout #1045

merged 7 commits into from
Jun 6, 2019

Conversation

sashei
Copy link
Contributor

@sashei sashei commented Jun 4, 2019

Fixes #1025

Testing and Review Notes

Not sure the best way to test this other than Network Link Conditioner / being on a very slow connect.

To Do

  • double check the original issue to confirm it is fully satisfied
  • add testing notes and screenshots in PR description to help guide reviewers
  • make sure CI builds are passing (e.g.: fix lint and other errors)

@sashei sashei requested a review from a team as a code owner June 4, 2019 21:06
@sashei sashei force-pushed the 1025-sync-timeout branch from b1a95bd to f6aba6d Compare June 4, 2019 21:45
Copy link
Contributor

@linuxwolf linuxwolf left a comment

Choose a reason for hiding this comment

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

I have some questions inline; otherwise looks solid to me

@@ -72,6 +72,7 @@ class Constant {
static let usernamePlaceholder = NSLocalizedString("username_placeholder", value: "(no username)", comment: "Placeholder text when there is no username. String should include appropriate open/close parenthetical or similar symbols to indicate this is a placeholder, not a real username.")
static let searchYourEntries = NSLocalizedString("search.placeholder", value: "Search logins", comment: "Placeholder text for search field")
static let emptyListPlaceholder = NSLocalizedString("list.empty", value: "%@ lets you access passwords you’ve already saved to Firefox. To view your logins here, you’ll need to sign in and sync with Firefox.", comment: "Label shown when there are no logins to list. %@ will be replaced with the application name")
static let syncTimedOut = NSLocalizedString("sync.timeout", value: "Sync timed out", comment: "This is the message displayed when syncing entries from the server times out")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there anyone we need to inform of new/changed localized strings?

return
}

queue.async {
self.queue.asyncAfter(deadline: .now() + 20, execute: {
Copy link
Contributor

Choose a reason for hiding this comment

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

this queues for 20 seconds from .now(), correct? I ask because I am not super-familiar with the interface, and most other systems seem to use milliseconds.

Also, is it worth making 20 a constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it queues for 20 seconds from now. Constant is a good idea!

@sashei sashei merged commit cf8fd23 into master Jun 6, 2019
@sashei sashei deleted the 1025-sync-timeout branch June 6, 2019 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync timeout
2 participants