Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Category
Related Issues
Fixes #3095 + #3096 and related
What's in this Pull Request?
I changed the logic on updating the banner data without introducing breaking changes. It's not a 100% proper fix, but should work for most use cases.
Further information
I reverse engineered how the banner rework works. The old way of using a banner keeps the data in LayoutWebpartsContent field. The banner rework seems to keep that field as an empty array. Pages with the old banner format are migrated in browser when editing the page.
I created a simple wrapper which updates either the old way of using a banner or the new way of using a banner as a separate webpart.
I noticed that when modifying a client side page in browser with multiple banners, only the first banner is being updated so I mimicked that in the wrapper logic.
Tested the following use cases
These use cases will not work, and would probably require breaking changes
Tested with all the banner modifications (changing image, title, etc). I created this for version-3, as that's what I'm still using on my own projects.