Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Master auto upload #10536
All the code in this PR have already been reviewed.
More info TBD
I've updated FluxC version and the release-notes.
Update release notes:
For self-hosted sites, when exiting the editor without uploading, the `PostUploadModel.uploadState` can get stuck in `PENDING`. This happens in this scenario: 1. The user edits an existing post 2. Adds an image -- this creates the `PostUploadModel` as `PENDING` 3. Exits the editor by tapping on Back (not saving or publishing) If the `uploadState` is stuck at `PENDING`, the Post List will indefinitely show a “Queued post” label. The `uploadState` does not get stuck on `PENDING` for WPCom because the app will automatically start a remote auto-save when the editor exits. Hence, the `PostUploadModel` eventually gets updated. Marking the `PostUploadModel` as `CANCELLED` when exiting should be fine for all site types since we do not currently have any special handling for cancelled uploads. Eventually, the user will restart them and the `uploadState` will be corrected. See `PostListUploadStatusTracker` and `PostListItemUiStateHelper.createUploadUiState` for how the Post List determines what label to use.