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

update FileWidget via signal emitted when file downloads + decrypts #284

Merged
merged 2 commits into from Mar 28, 2019

Conversation

redshiftzero
Copy link
Contributor

@redshiftzero redshiftzero commented Mar 26, 2019

The traceback I reported in #266 was resolved with #231, but this addresses my comment here on that ticket about the FileWidget not updating after download.

Confirm the following to test this PR and confirm that #266 is resolved:

  1. Submit a file as a source
  2. Sign into the client, then click once to download a document
  3. Confirm that the file widget updates to "Open" without needing to refresh
  4. Confirm the application does not crash

Closes #266

Copy link
Contributor

@heartsucker heartsucker left a comment

Choose a reason for hiding this comment

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

A couple of nits on the tests, but nothing that blocks. I do have a question though. Why is the signal named after "download" and not "ready?" Do we want users to be able to attempt to open if if the decryption fails? Or is there going to be a follow up to resolve that?

securedrop_client/logic.py Outdated Show resolved Hide resolved
tests/gui/test_widgets.py Outdated Show resolved Hide resolved
tests/gui/test_widgets.py Outdated Show resolved Hide resolved
tests/gui/test_widgets.py Outdated Show resolved Hide resolved
@redshiftzero
Copy link
Contributor Author

[ready for re-review]

Copy link
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

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

hey all of this lgtm!

@redshiftzero redshiftzero merged commit 3ee6885 into master Mar 28, 2019
@redshiftzero redshiftzero deleted the emit-signal-file-download branch March 28, 2019 18:44
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.

File download and open not working
3 participants