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

Change slice ids in the position json during dashboard import. #1380

Merged
merged 3 commits into from
Oct 20, 2016
Merged

Change slice ids in the position json during dashboard import. #1380

merged 3 commits into from
Oct 20, 2016

Conversation

bkyryliuk
Copy link
Member

Position config is tied to the slice ids.
In order to preserve the dashboard config and appearances we have to update the slice ids in the position_json attr in the dashboard.

Reviewers:

@mistercrunch
Copy link
Member

LGTM

new_slc_id_str = '{}'.format(new_slc_id)
old_slc_id_str = '{}'.format(slc.id)
if ('expanded_slices' in i_params_dict and
old_slc_id_str in i_params_dict['expanded_slices']):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mistercrunch
Copy link
Member

LEBTM (looks even better to me) :)

@bkyryliuk bkyryliuk merged commit c198535 into apache:master Oct 20, 2016
@bkyryliuk bkyryliuk deleted the bogdan/import_dashboads_slie_pos branch October 20, 2016 16:25
neevany pushed a commit to Kieraya/caravel that referenced this pull request Oct 24, 2016
…e#1380)

* Change slice ids in the position json during dashboard import.

* Update slice ids in the dashboard json metadata.
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.12.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants