Switching chart modules does not work with config import

Created on 1 April 2024, about 1 year ago

Problem/Motivation

I am trying to switch from charts_google to charts_billboard. I installed charts_billboard, switched the default charting library to Billboard.js, uninstalled charts_google, and exported that config. When I try to import that config on a different site, I get the error:

The "billboard" plugin does not exist. Valid plugin IDs for Drupal\charts\ChartManager are: google

If I manually enable charts_billboard first, I get:

Unable to uninstall the Google Charts module because: Provides a chart library or chart type plugin configured as the default option for chart.

To do this entirely with config import, I would have to do three imports:

  1. Install charts_billboard
  2. Switch to billboard
  3. Uninstall charts_google

I suppose the first error is because it is importing the charts config change before installing charts_billboard and the second is because it is uninstalling charts_google before the charts config change.

This may be a bug in the Drupal config import/export system rather than in charts.

Proposed resolution

Unknown.

Remaining tasks

Figure out why it does this and implement a fix.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

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

Comments & Activities

Production build 0.71.5 2024