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

Replaced duplicate updater message modal with syslog call #5067

Merged

Conversation

zenmonkeykstop
Copy link
Contributor

Status

Ready for review

Description of Changes

Fixes #4878.

Removes the modal dialog alerting users that there's a pre-existing instance of the GUI updater on starting another one, replacing it it with a call to syslog, logging at NOTICE level.

Testing

  • Check out this branch on a Tails Admin Workstation (VM or physical) with an admin password set.
  • Open a terminal and run sudo journalctl -f | grep SecureDropUpdater
  • Open a second terminal and run python3 ~/Persistent/securedrop/journalist_gui/SecureDropUpdater - verify that the GUI updater appears
  • Open a third terminal and run python3 ~/Persistent/securedrop/journalist_gui/SecureDropUpdater - verify that the GUI updater does not appear, and a line "SecureDrop Workstation Updater is already running" is logged in the first terminal
  • in the running GUI updater, click Update Now and verify that the update completes successfully.

Deployment

Deployed when workstations are updated.

Checklist

If you made non-trivial code changes:

  • I have written a test plan and validated it for this PR

Copy link
Contributor

@rmol rmol left a comment

Choose a reason for hiding this comment

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

👍

  • Check out this branch on a Tails Admin Workstation (VM or physical) with an admin password set.
  • Open a terminal and run sudo journalctl -f | grep SecureDropUpdater
  • Open a second terminal and run python3 ~/Persistent/securedrop/journalist_gui/SecureDropUpdater - verify that the GUI updater appears
  • Open a third terminal and run python3 ~/Persistent/securedrop/journalist_gui/SecureDropUpdater - verify that the GUI updater does not appear, and a line "SecureDrop Workstation Updater is already running" is logged in the first terminal
  • in the running GUI updater, click Update Now and verify that the update completes successfully.

@rmol rmol merged commit c128349 into freedomofpress:develop Dec 10, 2019
@zenmonkeykstop zenmonkeykstop mentioned this pull request Apr 29, 2020
22 tasks
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.

Graphical updater "is already running" dialog during late stages of the update process
2 participants