-
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
Automatically upload local drafts and locally changed posts and pages #10177
Conversation
This is for clarity when UploadStarter will auto-upload all pending post types, not just local drafts.
This was because of the recent changes in UploadStarter.
Thanks @shiki for the changes! The code seems to work as intended. However, I'm a bit confused whether this is the behavior we wanted. I thought we'd publish changes only after user's explicit confirmation, but the app publishes all the changes, right? The behavior I expected is following
Another thing I'm wondering about is if we need to somehow make sure the post we are about to upload isn't being edited at the moment. I'm not sure about this, I just wanted to bring it to the table so we can think about it. Let me know your thoughts ;) |
Btw I believe this task shouldn't be merged without #10207. We might want to merge it into a working branch. Wdyt? |
@malinajirka That sounds right. I was planning to split this into multiple PRs so we're more careful of what should get automatically uploaded. I haven't thought more about it yet. I'll let you know. |
I'm not sure where to note this so we don't forget about it. I'll just post it here.You might be planning or have already fixed this, but just to be sure. I believe we'll need to modify this statement when we start publishing posts automatically so we bump the tracks when a post isn't uploaded because the device is offline and is uploaded automatically later. |
Will just close this for now as this will most probably be split into multiple PRs. There will be upcoming discussions for this too. |
Generated by 🚫 dangerJS |
Closes #10174.
Summary
When the
LocalDraftUploadStarter
was created in #9774, it was only uploading local draft posts, and later on, pages. The reasons for this were:Today, it looks like we can now safely do this. This change makes it so that all local drafts and all posts and pages that are locally changed will be automatically uploaded. Based on some testing, this is what iOS does today.
Testing
Confirm that all are automatically uploaded.
Reviewing
Only 1 reviewer is needed but anyone can review.
Release Notes
RELEASE-NOTES.txt
.Other Tasks
fluxCVersion
should be updated to thedevelop
version.