I almost called this a bug report. ;) Currently, my forward.settings.yml file in config is huge. It's full of entries for every possible entity on the system where forward is *not* enabled. Every time I do anything to the rest of the site, this config wants to add more (pointless) lines to itself. Why am I seeing all this noise?

forward_entity_redirect: false
forward_redirect_redirect: false
forward_entity_shortcut: false
forward_shortcut_default: false
forward_entity_taxonomy_term: false
forward_taxonomy_term_city: false
forward_taxonomy_term_contributors: false
forward_taxonomy_term_country: false
forward_taxonomy_term_credit: false
forward_taxonomy_term_image_gallery: false
forward_taxonomy_term_image_provider: false
...

Why not filter out everything that's false and only export settings where the line is true and forward cares?

Comments

dww created an issue. See original summary.

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new2.8 KB

Tested and working nicely.

Happy to report this applies cleanly to the end of the current 8.x-2.x branch, and the hypothetical 8.x-3.x branch (which I have in a local cloned repo) with all the other patches applied. So this shouldn't conflict with anything (and should definitely be present in both branches, if we go forward with #2971849: Consider an 8.x-3.x branch.

Thoughts?

Thanks!
-Derek

john.oltman’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev
Status: Needs review » Fixed
dww’s picture

Version: 8.x-3.x-dev » 8.x-2.x-dev
Status: Fixed » Patch (to be ported)

I do think this is a good candidate for a backport. Same patch should apply.

dww’s picture

Status: Patch (to be ported) » Needs review

Maybe RTBC is a more appropriate status, but perhaps someone else should consider it first. Anyway, there's nothing to be ported. Same patch applies to both branches...

dww’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev
StatusFileSize
new1.5 KB

Follow-up fix for 8.x-3.x branch: I didn't notice the place where we alter the node type form to inject a checkbox. That was triggering a PHP warning since it assumed there was a value in settings for every node type.

  • john.oltman committed b98119b on 8.x-3.x authored by dww
    Issue #2972096 by dww: Follow up patch to fix config export to only show...
john.oltman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

dww’s picture

Since I want this on my 8.x-2.x sites, here's a re-roll backport for the 8.x-2.x branch after 8.x-2.2. Posting it here in case anyone else wants this behavior, and so composer.json has a nice URL to find the patch. ;)

Cheers,
-Derek

dww’s picture

Assigned: dww » Unassigned

Sorry for the noise, doing too many things at once. I left a stray } in here for a syntax error. This time I've actually tested the patch. ;)

dww’s picture

StatusFileSize
new4.06 KB

*sigh*. ;)

john.oltman’s picture

Thanks I will apply this as soon as I can to 2.x branch, along with the backport of that other patch from the other issue. I am traveling so it might be a few days.

john.oltman’s picture

Status: Closed (fixed) » Patch (to be ported)
john.oltman’s picture

Version: 8.x-3.x-dev » 8.x-2.x-dev
john.oltman’s picture

Assigned: Unassigned » john.oltman
dww’s picture

Cool. #12 should apply cleanly and Just Work(tm). ;)

Cheers,
-Derek

john.oltman’s picture

Status: Patch (to be ported) » Fixed
dww’s picture

Lovely, thanks!

Status: Fixed » Closed (fixed)

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