-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix/post scheduling hotfix #13726
Fix/post scheduling hotfix #13726
Conversation
The publish logic needs to be updated for the `nil` dateCreated change to work properly.
This logic doesn't match current app behavior, so the test can be removed.
Hey @bjtitus . There's some possible oddities with 'Back Scheduled Draft'.
|
I believe the first two are mainly choices with the current flow. I think there are a bunch of questions about what we should do in these cases now that we're taking a closer look. I think 3 is a bug but appears to be a long standing one. I think it should be fixed properly in 14.6 or later. 1. Past date changes status to PublishedAny selection from the Schedule calendar control sets the status to Published or Scheduled. Keeping the status as "Draft" would require you to manually select "Published" or "Scheduled" from the Post Settings screen. This was a conscious choice that seemed to mirror the previous functionality but could be changed to keep the Post status as whatever it was to begin with. 2. Publish NowAs far as I can tell, this is consistent with the previous logic (nothing has changed with that button's actions AFAIK). I interpret "Publish Now" to mean: change the date to "Now" and Publish. 3. "Publish Immediately" on a brand new + backdated postInterestingly, this doesn't happen after the post has been saved once and then the date is changed. This appears to be a bug and requires some explanation about how "Immediately" actually works:
There's no way to set a separate modified date, as it is read-only in the API. The only way I've figure out to handle this is to first upload the draft using the I tested 3 on Build 14.1 (21544) with the Scheduled Feature Flag disabled and noticed the same exact behavior. Not sure if this was introduced when offline posting was added, or if it has always been like this. Here's a recording of the third issue on Build 14.1 (21544) with the Scheduled Feature Flag turned off. Notice that it has saved the date but shows "Immediately" because |
Hey @bjtitus . Thanks for the thorough explanations! Given that, I think this fulfills it's intent. |
Fixes #13655
Fixes #13654
Fixes #13710
Fixes the following issues:
To Test
Back Scheduled Draft
A draft should be able to be scheduled in the past. Previously, "Immediately" was shown as the selected Date/Time. See #13710 for more details.
Confirmation Dialog
A confirmation dialog should show any time the post is Published from a non-published status. This is a temporary solution for #13654 to make it more obvious to users when a post will move to "Published". Note that this happens any time a post moves to Published from another status, not just when backdating a post.
Move to Draft
Move an existing Published post to Draft. The Published date in Post Settings should be retained. See #13655 for more details.
Known Issues
PR submission checklist:
RELEASE-NOTES.txt
if necessary.