-
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
Call publishPost(true) when confirmation dialog is accepted #9655
Conversation
Full list of tests (I've run them) done with this PR includes: |
Thanks @mzorz for the quick fix;). I've just quickly checked the code and it LGTM. However, I've encountered a couple of issues, but I'm not sure if they are related. I'll list them and we can create separate issues if they are not related.
|
I was able to make a post marked as "pending review" published on the site.
As you can see in the picture attached below the post has the status = "pending review" and the top right button says Update (sorry if it's in IT lang).
|
Thanks for the review both of you!! @malinajirka yes indeed I think those 2 issues are unrelated to this PR, but good catch on both. I'll open new issues as suggested 👍 @daniloercoli Ok that one is worse, I think we'll have to just add the |
Opened WIP draft PR #9661 to address these issues |
Fixes #9652
The problem being reported in #9652 was due to not having the
PENDING
status of Posts into account when moving the code to change status toPUBLISHED
in #9544 (thanks for narrowing down the occurrence and opening an issue @hypest @malinajirka ).This PR just changes the meaning of the
publishPost(boolean isDraftToPublish)
parameter fromisDraftToPublish
toisPublishConfirmed
. The reality is all checks for Post statuses should have been made before the publish confirmation dialog appears, hence this is all we need to know (whether the user was shown the publish confirmation dialog and they pressed OK). This way, we'll cover both theDRAFT
andPENDING
statuses (or any other "future" statues that make the transition toPUBLISHED
possible).To test:
Settings
Pending review
Pending review
Publish Now
Also, test that a new Draft still gets published:
And finally, a saved Draft:
Publish Now
Update release notes:
RELEASE-NOTES.txt
.cc @jtreanor @jkmassel