Add plugin config import/export feature

Created on 2 March 2022, almost 3 years ago
Updated 17 April 2024, 9 months ago

Problem/Motivation

It would be nice to be able to save a plugin config into a YAML file and import it when needed. It could be used to duplicate external entity configurations that just need minor adjustments between external entity types. For instance, the xntt_db plugins requires a lot of settings which are multiple and long SQL queries. Exporting and importing them would save time when the queries are similar (tables changes, or other small query adjustments). Similarly, when working with xntt_mutli, if the order of plugins need to be changed, each plugin needs to be reconfigured. Once again, import/export would save time.

Proposed resolution

Implement an admin interface allowing to import and export plugin configs from a given external entity type. A special care should be added to xntt_multi: it should be possible to import/export the whole xntt_multi config or just one config of a plugin used by xntt_multi in order to be able to move a dedicated plugin config from or to an xntt_multi config.

Remaining tasks

Implement the thing.

User interface changes

2 new admin buttons on the management page called "export config" and "import config" (the later would also change the external entity type plugin selection when used) plus an optional textfield or dropdown to select a "sub-plugin" in case of xntt_multi. That last element could be shown or enabled using AJAX and/or the form #state features, according to the selected external entity type.

Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

🇫🇷France guignonv

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.

  • 🇫🇷France guignonv

    Feature added in 1.0.0-beta4. Still some tests and improvements are needed for xnttmulti but it should not be managed in xnttmanager but rather in xnttmulti (maybe by altering xnttmanager forms). Meanwhile, config files can be edited manually to extract and change what is needed for xnttmulti.

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

Production build 0.71.5 2024