Allow configuration of which vocabularies to export

Created on 12 December 2023, over 1 year ago

Problem/Motivation

We use Structure Sync primarily for vocabularies that are used to present select lists. There are also often other "content" taxonomies (tags, etc.) that we do not want to export to configuration. However, when we go to export vocabularies, we're presented with a list of all vocabularies, where all of them are checked.

This is exceedingly error-prone, and can result in inadvertently exporting thousands of terms.

Steps to reproduce

  1. Create 2 vocabularies (eg. VocA and VocB)
  2. Visit admin/structure/structure-sync/taxonomies
  3. Unselect VocB from "Select the vocabularies you would like to export"
  4. Press "Export Taxonomies"
  5. Observe that the "Select the vocabularies you would like to export" list is checked for both VocA and VocB

Proposed resolution

The "Select the vocabularies you would like to import" field appears to filter to just list the vocabularies that are already in structure_sync.data.yml. We could presumably use the same logic to provide the default values for the export field.

Feature request
Status

Needs review

Version

2.0

Component

User interface

Created by

🇨🇦Canada ergonlogic Montréal, Québec 🇨🇦

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024