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

Export Dashboard - Data Sources Ordering Is Volatile #19478

Closed
3 tasks done
pnadolny13 opened this issue Mar 31, 2022 · 4 comments · Fixed by #19595
Closed
3 tasks done

Export Dashboard - Data Sources Ordering Is Volatile #19478

pnadolny13 opened this issue Mar 31, 2022 · 4 comments · Fixed by #19595
Labels
#bug Bug report

Comments

@pnadolny13
Copy link
Contributor

When using the export_dashboards command on the CLI, everything is working great but I noticed that sometimes the order of the datasources changes in the list with no updates. I'm attempting to use the export functionality to git version my dashboard definitions and a reordering of my datasources with no changes ends up causing noise in my diffs.

How to reproduce the bug

  1. Create dashboard with multiple data sources
  2. Export dashboard
  3. Make a tweak to the dashboard but dont change anything in the data sources
  4. Export again and diff the files

Step 3/4 might need to be repeated a couple times as I don't know that it happens every time.

Expected results

The export outputs should not be volatile, if I dont change a data source then there should be no diff when exporting multiple times. Exporting multiple times produces the same result always.

Actual results

I have 2 tables in my data sources list and they switched positions without any changes.

Screenshots

An example of a dashboard with 1 chart. Changing the chart name from "AOV" to "AOV - New" caused a huge diff between the original and new export.

Screen Shot 2022-03-31 at 3 06 52 PM

Screen Shot 2022-03-31 at 3 07 26 PM

Screen Shot 2022-03-31 at 3 07 09 PM

Environment

(please complete the following information):

  • browser type and version:
  • superset version: superset version
  • python version: python --version
  • node.js version: node -v
  • any feature flags active:

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

I'm wondering if using a set in the export_dashboards method is causing the list reordering in inconsistent ways.

I'm happy to help implement a change! Let me know if you think thats the issue or if something else might be causing it.

@rusackas
Copy link
Member

@pnadolny13 I'm trying to get a little attention drawn back to the PR, so we can conclude this. Thanks for opening that, byt the way, and sorry it didn't get more eyes sooner. Are you able to rebase it, so it can trigger a fresh CI run and be mergeable?

@Shazad-khan
Copy link

its working as expected now if the issue has been resolved please close the issues

@mdeshmu
Copy link
Contributor

mdeshmu commented Mar 14, 2024

@Shazad-khan in which Superset version was this fixed?
I do not see the change from @pnadolny13's PR in master .

@rusackas
Copy link
Member

I can reopen this if the problem persists, just let me know... let's try to get that PR through if it's the real fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants