-
Notifications
You must be signed in to change notification settings - Fork 179
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
Dashboard: Fix template insertion #12346
Conversation
@@ -127,11 +127,23 @@ protected function prepare_item_for_database( $request ) { | |||
if ( ! empty( $schema['properties']['content'] ) ) { | |||
|
|||
// Ensure that content and story_data are updated together. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering just removing this whole bit. Not sure if this has ever been useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean the check + throwing the error if not updated together to allow updating separately?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Plugin builds for 0d19e15 are ready 🛎️!
|
Size Change: -15.8 kB (-1%) Total Size: 2.71 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But now no more!
Sounds like a radio ad 😄
@@ -127,11 +127,23 @@ protected function prepare_item_for_database( $request ) { | |||
if ( ! empty( $schema['properties']['content'] ) ) { | |||
|
|||
// Ensure that content and story_data are updated together. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean the check + throwing the error if not updated together to allow updating separately?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally fixes the error currently on main
Context
#12237 accidentally broke the "Use template" functionality on the dashboard as it turns out the element types were in fact used after all. It wasn't caught because of a missing (disabled) e2e test.
But now no more!
Summary
Instead of just reverting #12237, this PR removes usage of the
output
package from the dashboard to fix the template insertion functionality.Relevant Technical Choices
Fixes and re-enables the relevant e2e test.
To-do
User-facing changes
No visual changes, just a fixed user flow
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
No
Does this PR change what data or activity we track or use?
No
Does this PR have a legal-related impact?
No
Checklist
Type: XYZ
label to the PRFixes #12345
Fixes #12024