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

Check for failed Post before showing progress bar in Posts list #6782

Merged
merged 2 commits into from
Oct 25, 2017

Conversation

mzorz
Copy link
Contributor

@mzorz mzorz commented Oct 24, 2017

Fixes #6781

In FluxC, the order of events is not guaranteed, thus it can happen that after getting a signal that
a Post upload has failed we still receive "older" progress events for the attached media upload. This PR adds a isFailed check to make sure we don't show a progress bar when the UploadStore knows this is Post is failed already.

To test:

  1. draft a post with several files in it
  2. exit the editor
  3. turn airplane mode off (you might have to do this several times)
  4. eventually you'll get to this situation in develop, and should not see that happen on this branch.

cc @nbradbury

… UploadStore knows this is Post is failed already
@nbradbury nbradbury self-assigned this Oct 25, 2017
@nbradbury
Copy link
Contributor

:shipit:

@nbradbury nbradbury merged commit 1d5c20d into develop Oct 25, 2017
@nbradbury nbradbury deleted the issue/6781-fix-progress-and-error-postlist branch October 25, 2017 14:45
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.

2 participants