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

Ensure that empty posts are not published #2393

Merged

Conversation

SergioEstevao
Copy link
Contributor

@SergioEstevao SergioEstevao commented Jun 17, 2020

Fixes #369

This just updates the GB reference in order that empty posts autosaves are sent to the bridge method.

Check this GB PR for the changes: WordPress/gutenberg#23233

To test:

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@SergioEstevao SergioEstevao added [Type] Bug Something isn't working Writing Flow labels Jun 17, 2020
@SergioEstevao SergioEstevao added this to the 1.31 milestone Jun 17, 2020
@SergioEstevao SergioEstevao requested a review from mchowning June 17, 2020 08:48
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jun 17, 2020

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

@SergioEstevao SergioEstevao requested a review from ceyhun June 17, 2020 09:56
@mchowning
Copy link
Contributor

mchowning commented Jun 18, 2020

👋 @SergioEstevao ! We're close to merging the monorepo changes 🎉 , and we will be cutting the release branches as soon as the monorepo changes are merged to gutenberg-mobile. As a result, we may be cutting the 1.31 release branches earlier than normal.

Because every merge further delays the monorepo work (ends up requiring conflicts to be fixed and other work due to the monorepo feature branch and the squash policy in gutenberg), we want to cut the release branch with no further changes. For that reason, I'll bump this milestone to 1.32. Of course, if this has to make the 1.31 release, go ahead and move it back to the 1.31 milestone, and let me know. 🙇

@mchowning mchowning modified the milestones: 1.31, 1.32 Jun 18, 2020
@SergioEstevao SergioEstevao requested a review from etoledom June 19, 2020 08:58
@mchowning
Copy link
Contributor

👋 @SergioEstevao ! Since we're getting ready to cut the 1.32 branch, I'm bumping this to the 1.33. Obviously, feel free to undo that if this needs to make the 1.32 release.

(Also, sorry I haven't reviewed this 😔)

@mchowning mchowning modified the milestones: 1.32, 1.33 Jul 7, 2020
@hypest
Copy link
Contributor

hypest commented Jul 10, 2020

Is this PR still relevant? The original ticket it tries to address is closed by now.

@SergioEstevao
Copy link
Contributor Author

While the original issue is indeed closed, this PR was an improvement on top of the fix, in order to make the "Publish" completely disabled when the post was empty.

Because of the way, we implemented this and after @etoledom reviewed it, we decide to not included in the original fix, because it involved changes on the auto-save mechanism that we feel we're not safe.

Check the GB for more details on the implementation: WordPress/gutenberg#23233

Copy link
Contributor

@mchowning mchowning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SergioEstevao SergioEstevao merged commit e459286 into develop Jul 20, 2020
@SergioEstevao SergioEstevao deleted the issue/369_ensure_empty_drafts_are_not_published branch July 20, 2020 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something isn't working Writing Flow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make sure an empty draft can't be published
3 participants