-
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
Downlod replies #114
Downlod replies #114
Conversation
securedrop_client/storage.py
Outdated
@@ -246,6 +246,13 @@ def find_new_submissions(session): | |||
return submissions | |||
|
|||
|
|||
def find_new_replies(session): | |||
submissions = session.query(Reply) \ |
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.
s/submissions/replies
securedrop_client/storage.py
Outdated
"""Mark reply as downloaded in the database. The file itself will be | ||
stored in the data directory. | ||
""" | ||
submission_db_object = session.query(Reply) \ |
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.
same, s/submission/reply
@joshuathayer and I reviewed this in person, looks good! Will test in Qubes and plan to merge this in for inclusion in the first (To the interested observer, the advantage of having these separate reply and message threads is parallel download/decrypt happening for replies and messages, cc: #106) |
hey so I was on this branch and I hit this error:
The decrypted replies are getting written to the data directory but they are only one byte long.. I have to run but I will work on debugging this first thing tomorrow (if someone else notices the issue, please comment!) |
@redshiftzero, I can take a look at this problem this morning. |
figured it out, it was indeed non-Qubes only due to the development test data: freedomofpress/securedrop#3927 resolves |
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.
✅ tested in Qubes and non-Qubes (macOS) successfully
Now we are passing the given timeout value in any API call to the proxy object in Qubes.
Building off #99, also spawn a thread for downloading and processing Replies from the journalist.
Aside from some minor refactoring to pull out common code between the Message the Reply fetching threads, there's not much novel here. It follows the Message-fetching model pretty closely.
Closes #108