Problem/Motivation
Currently in ConfigSingleExportForm to select and replace the field including its wrapper, we are using the CSS "has" selector: select('*:has(>select[name="config_name"])'). This works but is complex.
Proposed resolution
Add a data-drupal-wrapper-selector attribute to the wrapper element so that it can be directly targeted easily.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3603310
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
Comment #3
fathershawnComment #4
fathershawnConfigSingleExportFormworking properly using the new selector to replace the config name select element and to return the export text area with the result.Comment #5
smustgrave commentedQuestion could this be a breaking change for someone's custom build? Know it's a task does it need coverage or fact tests pass the coverage?
Comment #6
fathershawnSince this adds a new data attribute I don't think it would break anything.
The updated usage in
ConfigSingleExportFormimplicitly tests it. I'm happy to build a direct test if that's desired.Comment #7
smustgrave commentedMind rerunning the failed test job?