Bug description

How to reproduce the bug 1. Clone/Checkout the 5.0.0rc1 2. Do a docker compose (docker compose -f docker-compose.yml up)

I am unable to find the Cartodiagram type of chart in the chart list. According to the changelog (https://github.com/apache/superset/blob/5.0.0rc1/CHANGELOG/5.0.0.md, https://github.com/apache/superset/pull/25869 feat(plugin): add plugin-chart-cartodiagram (@jansule) ), it should be available. This issue has been mentioned in the past : https://github.com/apache/superset/discussions/21758#discussioncomment-10063373

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

18 or greater

Browser

Firefox

Additional context

No response

Checklist

  • [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Comment From: dosubot[bot]

Hello @pdesaxce! I'm here to assist you with any bugs, questions, or contributions. Let's see how we can tackle this together.

To resolve the issue of the Cartodiagram plugin missing from the chart type list in Superset version 5.0.0rc1, ensure the following steps are completed:

  1. Plugin Registration: Verify that the Cartodiagram plugin is correctly registered in the Superset plugin registry. This should be done in superset-frontend/src/visualizations/presets/MainPreset.js with the following code:

```js import { CartodiagramPlugin } from '@superset-ui/plugin-chart-cartodiagram';

new CartodiagramPlugin().configure({ key: 'cartodiagram' }).register(); ```

  1. Dependencies: Ensure that all necessary dependencies and peer dependencies for the Cartodiagram plugin are installed. These include packages like @types/geojson, geojson, lodash, and others listed in the plugin's package.json file [1].

  2. Docker Setup: Confirm that the Docker setup includes the Cartodiagram plugin dependency. The package.json should have an entry for "@superset-ui/plugin-chart-cartodiagram": "file:./plugins/plugin-chart-cartodiagram" [2].

  3. CSP Settings: If you are using layers from third-party domains, adjust the Content Security Policy (CSP) settings, as Superset rejects requests to third-party domains by default [3].

By ensuring these steps are followed, the Cartodiagram plugin should appear in the chart type list. If the issue persists, double-check the configuration and dependencies.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Comment From: sadpandajoe

@michael-s-molina insight on this?