Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwrite dashboard not work #31957

Open
3 tasks done
sonfire186 opened this issue Jan 22, 2025 · 1 comment
Open
3 tasks done

Overwrite dashboard not work #31957

sonfire186 opened this issue Jan 22, 2025 · 1 comment
Labels
dashboard:export Related to exporting dashboards dashboard:import Related to importing dashboards

Comments

@sonfire186
Copy link

Bug description

If I delete a chart on the dashboard. I save the dashboard and export it.
Then I return to the dashboard and add a new chart, save the dashboard.
Return to the main page and click import previously saved dashboard with OVERWRITE. Then the added chart after export will be in the new imported dashboard.
I expect the dashboard to be completely rebuilt based on the data from the import. BUT I get an extra chart that I added after export.

Screenshots/recordings

No response

Superset version

4.1.1

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • 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.
@dosubot dosubot bot added dashboard:export Related to exporting dashboards dashboard:import Related to importing dashboards labels Jan 22, 2025
Copy link

dosubot bot commented Jan 22, 2025

I found a similar unsolved discussion regarding the import functionality with overwriting all related objects, including charts and datasets. You can view the discussion here [1].

Regarding the issue you're experiencing, the expected behavior of the OVERWRITE option when importing dashboards in Superset is to replace existing dashboards with the imported ones. However, there is a known limitation in version 4.1.1 where the import process requires all dependencies to be included in the import bundle, and it does not support referencing existing dependencies in the target system [2]. This might be affecting the behavior you're observing, where the dashboard is not completely rebuilt as expected.

To continue talking to Dosu, mention @dosu.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard:export Related to exporting dashboards dashboard:import Related to importing dashboards
Projects
None yet
Development

No branches or pull requests

1 participant