-
Notifications
You must be signed in to change notification settings - Fork 42
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
remove user refresh and replace with sync icon #732
Conversation
0da80a2
to
4f45b35
Compare
rebased on latest master, resolving a conflict with the new sync period being every minute instead of every 5 minutes also removed user refresh button tests and added some for non-user-interactive sync icon this is ready for review |
did some clean up around removing user-refresh code and only emitting the |
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.
Thanks @creviera this looks great!
Performed a visual review of the diff, as well as a functional review:
- Start the client in offline mode and check that icon is offline icon
- Log in and see the metadata sync animation
- After 2 seconds see that it is in the inactive state
- Log out see the icon switches back to offline mode
- The client refreshes periodically
- No AppArmor errors observed (resource folder is included as part of this blob https://github.com/freedomofpress/securedrop-client/blob/master/files/usr.bin.securedrop-client#L21)
Also
@@ -37,7 +37,7 @@ class MetadataSyncJob(ApiJob): | |||
''' | |||
|
|||
def __init__(self, data_dir: str, gpg: GpgHelper) -> None: | |||
super().__init__() | |||
super().__init__(remaining_attempts=15) |
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.
Is this value used elsewhere? if so we could use a static variable somewhere
@emkll i just responded to your review comment so this is ready for rereview thx |
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.
Test plan still passing, thanks @creviera
Description
Closes #687
We now animate the metadata sync and instead of showing an active state for the entire length of the metadata sync we always just show a 2 second animation. Here is recording of the animation (it's subtle) after I changed the background metadata syncs to happen every 6 seconds for demo purposes:
Test Plan