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

Fix: Regression: Template lock option is not taken into consideration #14390

Merged

Conversation

jorgefilipecosta
Copy link
Member

The regression happened because the templateLock flag was missing as one of the block-editor settings to pick in packages/editor/src/components/provider/index.js.

End 2 end tests that catch this problem were added.

How has this been tested?

I checked that the end 2 end tests pass.
I reverted the changes in packages/editor/src/components/provider/index.js, and I verified some of the tests start failing.

@jorgefilipecosta jorgefilipecosta force-pushed the fix/post-type-template-lock-option-does-not-work branch from d70f0b1 to 7ac72b7 Compare March 12, 2019 15:00
@jorgefilipecosta jorgefilipecosta added [Type] Bug An existing feature does not function as intended [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Feature] Templates API Related to API powering block template functionality in the Site Editor [Type] Regression Related to a regression in the latest release [Priority] High Used to indicate top priority items that need quick attention labels Mar 12, 2019
@jorgefilipecosta jorgefilipecosta added this to the 5.3 (Gutenberg) milestone Mar 12, 2019
@jorgefilipecosta jorgefilipecosta added the [Release] Do Not Punt Used to indicate the issue or pull request must not be moved from the assigned milestone label Mar 14, 2019
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

Thanks for the fix and the tests 👍

@jorgefilipecosta jorgefilipecosta merged commit 2dad4ef into master Mar 15, 2019
@jorgefilipecosta jorgefilipecosta deleted the fix/post-type-template-lock-option-does-not-work branch March 15, 2019 11:56
youknowriad pushed a commit that referenced this pull request Mar 20, 2019
youknowriad pushed a commit that referenced this pull request Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Templates API Related to API powering block template functionality in the Site Editor [Priority] High Used to indicate top priority items that need quick attention [Release] Do Not Punt Used to indicate the issue or pull request must not be moved from the assigned milestone [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants