-
Notifications
You must be signed in to change notification settings - Fork 37
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
Handle messages and files that fail to decrypt #287
Conversation
which we will then call from fetch_the_thing
do not remove files unless we've successfully decrypted them
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.
Works as advertised. The nits about noqa
feel like they should be addressed since we are disabling too many rules with that syntax and it may prevent us from catching bugs in the future. However, it is minor, so I'm approving. I'll let you decide if this is worth correcting or not.
During stand up we decided to make these changes so we could get this in while @redshiftzero is OOO. @creviera Can you review these two extra patches? |
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.
I ran through the steps to reproduce in #276 on master
and on download-then-decrypt
and confirm that the fix works as documented with download endpoints only being hit once per file.
21a5dfe
to
ca48bb9
Compare
@@ -706,6 +707,7 @@ def test_find_new_replies(mocker, session): | |||
session.add(reply_not_downloaded) | |||
session.add(reply_decrypt_failed) | |||
session.add(reply_decrypt_success) | |||
session.commit() |
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.
👍
@@ -661,6 +661,7 @@ def test_find_new_messages(mocker, session): | |||
session.add(message_not_downloaded) | |||
session.add(message_decrypt_failed) | |||
session.add(message_decrypt_success) | |||
session.commit() |
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.
👍
Fix #276
Previously:
Now:
Test with STR in #276 and ensure that the
download
endpoints are only hit once per file