Problem/Motivation
When editing an existing block that has been updated to the latest schema after deploying the Beta 5 release, the JSON Editor form is loaded with a bundled schema, but when creating a new block with a pattern containing references, the bundled schema is not used and AJAX requests are still triggered. The unbundled schema is also compared against the bundled version which triggers a prompt for the user to update the schema even on a form creating a new block.
Steps to reproduce
- Install the patternkit, patternkit_example, and layout_builder modules
- Enable layout builder on a content type
- Edit the layout for this content type
- Add a new "[Patternkit] Example with Reference" block
- (X) Observe the prompt at the top of the form to update the pattern schema and template
Note: This only happens when creating new blocks for patterns containing references. If a pattern does not contain references, the bundled and unbundled schema are the same, so no prompt is displayed.
Proposed resolution
Ensure when loading a fresh version of the pattern for the block form, the bundled schema is loaded for use.
Remaining tasks
User interface changes
Editors should no longer be prompted to update a pattern when creating a new block.
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3308892-new-pattern-update-prompt--3.patch | 2.9 KB | slucero |
Issue fork patternkit-3308892
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sluceroRenaming to something more symptom-specific for better recognition.
Comment #3
sluceroI've uploaded and MR for review to fix this issue. I'm attaching a patch as well for easy access.
Comment #6
sluceroComment #7
sluceroComment #9
sluceroMerged for inclusion in the Beta 6 release.