-
Notifications
You must be signed in to change notification settings - Fork 6
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
Always update fieldView of nestedElement field #365
Conversation
…t hack to force the fieldViews to update. I've not been able to get to the bottom of the problem, but merging text elements in the zipRoot plugin after an intermediate element is deleted causes the document to enter an invalid state that won't be sorted until 'updateFieldViewsFromNode' is called again
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.
Seems reasonable to me
If we've got time, I'd recommend taking a little more time to figure out exactly what's going wrong here, and either
If there's not time for that, then 👍 we can always circle back to fix. |
I think our current preference would be to circle back to fix, so that we can get key takeaways out to users |
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.
Have tested with the appropriate composer branch and can confirm we're seeing the desired behaviour; makes sense to me to be using this approach in prod for the moment, considering the significant amount of time that's already been spent on it!
What does this change?
To be used in conjunction with https://github.com/guardian/flexible-content/pull/4645
This PR makes sure
nestedElement
fieldViews are always updated, as a workaround for a bug with the zipRoot plugin, that causes the document to be uneditable when an element is deleted between two text elements.How to test