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

Allow changing order of tabs in dashboards #60

Closed
smola opened this issue May 20, 2019 · 2 comments · Fixed by #234
Closed

Allow changing order of tabs in dashboards #60

smola opened this issue May 20, 2019 · 2 comments · Fixed by #234
Assignees
Labels
enhancement New feature or request

Comments

@smola
Copy link

smola commented May 20, 2019

Allow changing order of tabs in dashboards

This was added 20 days ago to Superset master:

I'm not sure whether it made it into any release yet (0.33.0rc1)?

Opening the issue here just to track ourselves.

@smola smola added the enhancement New feature or request label May 20, 2019
@smacker
Copy link
Contributor

smacker commented May 24, 2019

It's not in 0.33.

@zurk
Copy link

zurk commented Jun 19, 2019

Workaround:

  1. Open Dashboard.
  2. Press Edit dashboard.
  3. Press Edit dashboard metadata. (press an arrow close to Switch to view mode to see this button)
  4. Go to Position JSON field.
  5. Find "type":"TABS" (in the end of the JSON in my case) and change the order of the "children" on the same level.

Example:

{

"...": {"..."},

"TABS-y3H9K9tIPM":
    {"children":["TAB-6pFKAgBaT","TAB-jKeAvr9fJ","TAB--aWoyKHn5","TAB-2DqtP-p_8","TAB-kb1aHKZWeK"],
    "id":"TABS-y3H9K9tIPM","meta":{},"type":"TABS"}}
}

If we want to change 1st and 2nd tabe we should change 1st and 2nd strings in children field:

{

"...": {"..."},

"TABS-y3H9K9tIPM":
    {"children":["TAB-jKeAvr9fJ","TAB-6pFKAgBaT","TAB--aWoyKHn5","TAB-2DqtP-p_8","TAB-kb1aHKZWeK"],
    "id":"TABS-y3H9K9tIPM","meta":{},"type":"TABS"}}
}
  1. Press Save button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants