Overview
Reported by @tedbow at #3502902: Only auto-save content entities/PageRegion config entities when there are actual changes: simply previewing incorrectly causes them to appear in "Review x changes".
ok. found 1 problem in manual testing
If only change the branding block settings in header and then change back you still have an auto-saved state which results in "review 1 changes" where it should be none.a
— @tedbow at https://git.drupalcode.org/project/experience_builder/-/merge_requests/7...
![]()
— https://git.drupalcode.org/project/experience_builder/-/merge_requests/7...
Proposed resolution
See \Drupal\experience_builder\Plugin\ExperienceBuilder\ComponentSource\BlockComponent::fixBooleansUsingConfigSchema() and \Drupal\experience_builder\Plugin\ExperienceBuilder\ComponentSource\BlockComponent::clientModelToInput().
Comments
Comment #4
wim leersComment #5
wim leersComment #6
lauriiiComment #7
wim leersDoesn't this become obsolete thanks to #3523496: Block component instance form values not processed by validation/submit handlers? 🤔
Comment #8
wim leersRelated: #3500795: [PP-1] Implement client-side validation of block settings, because that's what
fixBooleansUsingConfigSchema()points to as the issue where that method will be removed.Comment #9
wim leersManually tested this again on #3523496, and I can confirm that this is fixed there! 🥳
Comment #10
wim leersShowing this working, lifting the GIF from #3523496-34: Block component instance form values not processed by validation/submit handlers:
Comment #11
mayur-sose commentedVerified the changes :
No auto-save is retained.