Allow to configure different behaviors.

Created on 15 July 2021, over 3 years ago
Updated 20 October 2023, about 1 year ago

Problem/Motivation

for 1.x: Allowing user to select operations Closed: outdated
for 2.x: Option to ignore (import, export, both) Closed: outdated

In 3.x we now have ignoring for exporting, but it would be good to be able to turn this on or off. ( #3117646: Support for export filtering via Drush )
In addition there are a couple of use cases that are currently difficult to cater to.
In particular if one ignores all the webforms it is not possible to add a new webform via deployment except by writing an update hook that creates the webform. Also #3137437: Handle removing whole configuration when ignored only certain keys left us with two choices of what to do in this circumstance and we currently do the more strict approach.

Proposed resolution

Adding a select to determine what level of "configurability" one wants. (Some of the feedback for config ignore is that the simplicity of the configuration option is a plus).

  • simple: One list that decides everything (default, as we do now)
  • intermediate: Two list, one for import and one for export.
  • advanced: Six lists, create update delete for both import and export

Under the hood we always use six lists and the intermediate and simple configuration just use the same for multiple.
The code currently already has a couple of if statements to branch into the different cases depending on whether the config exists in the destination or not.

Remaining tasks

decide what UI to use.
uncomment the tests
implement feature

User interface changes

new options

API changes

new config keys

Data model changes

Feature request
Status

Fixed

Version

3.0

Component

User interface

Created by

🇨🇭Switzerland bircher 🇨🇿

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024