Overview

See https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...

🤔 This is now (thanks to the removal of ::validatePageRegion() 🎉) 99% identical to the elseif ($entity instanceof XbHttpApiEligibleConfigEntityInterfaced) below — the only difference is the enforceIsNew(FALSE) — do we still need that? 🤔

Proposed resolution

Simplify if possible

User interface changes

Command icon 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

larowlan created an issue. See original summary.

larowlan’s picture

Status: Active » Needs review
penyaskito’s picture

Assigned: Unassigned » larowlan
Status: Needs review » Needs work
penyaskito’s picture

Glad I didn't add elseif in the suggestion, nice branch name 🤣

larowlan’s picture

Assigned: larowlan » Unassigned
Status: Needs work » Needs review

Makes sense, better to be safe than sorry - thanks

penyaskito’s picture

Assigned: Unassigned » wim leers
Status: Needs review » Reviewed & tested by the community
wim leers’s picture

Assigned: wim leers » Unassigned
Status: Reviewed & tested by the community » Needs work

There's a bit I don't understand yet 🙈

penyaskito’s picture

Assigned: Unassigned » wim leers
Status: Needs work » Needs review

I don't feel that strongly, though, but a) there's no UI for creating regions; b) those are created when they are enabled for the theme in its settings, so feels safer to ensure they can't be created.

wim leers’s picture

It's not that I feel strongly, it's that I don't understand why PageRegion is special-cased compared to all others. Because … all auto-saves are for updates to content & config entities only? IOW: it's impossible to create.

Looks like the enforceIsNew(FALSE) was introduced in #3494114: Implement auto-save of the page template config entity. Will figure out which commit and why.

P.S.: only now see the branch name 🤣🤣🤣🤣🤣🤣🤣👏

wim leers’s picture

wim leers’s picture

wim leers’s picture

Assigned: wim leers » penyaskito
Status: Needs review » Reviewed & tested by the community

That worked :)

@penyaskito: Do you agree with the tweak I made? If so: go ahead and merge! If not: what am I missing? 😄

penyaskito’s picture

Ship it!

penyaskito’s picture

Assigned: penyaskito » wim leers

I can't merge 😉

wim leers’s picture

Assigned: wim leers » Unassigned
Status: Reviewed & tested by the community » Fixed

@penyaskito and I paired to debug why he can't merge. Even after granting him all the d.o permissions and loosening GitLab settings, he still can't merge, whereas he really should be able to. Either GitLab is broken or d.o's integration with it 😬

Merged for him! 🚀

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.