-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Mobile stories block - error handling 4.1 - move code out of EditPostActivity #13198
Mobile stories block - error handling 4.1 - move code out of EditPostActivity #13198
Conversation
…ostActivity to dedicated class StoriesEventListener
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
You can test the changes on this Pull Request by downloading the APK here. |
…ies-listener-move-from-editpostactivity
…ies-listener-move-from-editpostactivity
…ies-listener-move-from-editpostactivity
@mzorz this is probably not related to this PR but I noticed that the error notification that gets created when a story isn't saved remains even after the save was successful so we probably want to cancel that notification in the logic somewhere. Let me know if you are able to reproduce. I was using |
Thank you @jd-alexander - tracked here Automattic/stories-android#579 |
I was retesting Case B and got this error during the flow:
This occurred after:
I relaunched the app and the upload continued flawlessly. This might have been due to some emulator issue. Not sure but sharing. |
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 for these changes @mzorz the error resolution and overall fallback mechanisms of your logic and the existing logic in the UploadService
works really well. LGTM 🚢 once you are fine with this.
Thanks for your tests and the reported error! Will now merge this one and the base one 👍 |
Comes from https://github.com/wordpress-mobile/WordPress-Android/pull/13103/files#r508824133
This PR moves logic for Stories-related load/retry/cancel handling from EditPostActivity to dedicated class StoriesEventListener
To test:
Follow up on #13103 test steps
PR submission checklist:
RELEASE-NOTES.txt
if necessary.