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

LibraryPanels: Improves export and import of library panels between orgs #39214

Merged
merged 12 commits into from Sep 20, 2021

Conversation

hugohaggmark
Copy link
Contributor

@hugohaggmark hugohaggmark commented Sep 15, 2021

What this PR does / why we need it:
This PR makes improvements to the user experience when exporting and importing dashboards containing library panels from Grafana. Keeping it super simple for this first iteration. Only panels that don't exist in the org/instance where the dashboard is imported to will be imported. We will keep all existing library panels unchanged.

image

Which issue(s) this PR fixes:
Fixes #36897

Special notes for your reviewer:

@hugohaggmark hugohaggmark requested review from pkolyvas and a team as code owners September 15, 2021 12:26
@hugohaggmark hugohaggmark requested review from osg-grafana and removed request for a team September 15, 2021 12:26
Copy link
Contributor

@achatterjee-grafana achatterjee-grafana left a comment

Choose a reason for hiding this comment

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

Added doc review @hugohaggmark.

@hugohaggmark
Copy link
Contributor Author

hugohaggmark commented Sep 15, 2021

@achatterjee-grafana thank you it looks great!

hugohaggmark and others added 4 commits September 15, 2021 15:45
…rdForm.tsx

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
…rdForm.tsx

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Copy link
Member

@axelavargas axelavargas left a comment

Choose a reason for hiding this comment

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

Great job @hugohaggmark 🚀, I tested locally the PR, and review the frontend code, everything works as expected 👏🏾.

@hugohaggmark
Copy link
Contributor Author

Thank you @axelavargas!

@hugohaggmark hugohaggmark modified the milestones: 8.2.0, 8.3.0 Sep 15, 2021
@ying-jeanne
Copy link
Contributor

Great job 🚀, the functionality looks great, i just left one comment regarding the simplejson package, we want to avoid it because of the performances etc.

Copy link
Contributor

@ying-jeanne ying-jeanne left a comment

Choose a reason for hiding this comment

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

LGTM @sdboyer since we make the close validation of panel now, we can add panel library fields also in the schema.

@hugohaggmark hugohaggmark merged commit 2696be4 into main Sep 20, 2021
@hugohaggmark hugohaggmark deleted the hugoh/libpanels-export-import branch September 20, 2021 08:58
@deeruattavar
Copy link

deeruattavar commented Dec 1, 2021

@hugohaggmark which grafana version are u using here? is it 8.0? I am not able to find this feature in 8.0 version

@hugohaggmark
Copy link
Contributor Author

@hugohaggmark which grafana version are u using here? is it 8.0? I am not able to find this feature in 8.0 version

@deeruattavar Looking at the milestone tells me this should probably be in 8.3.0-beta1. Let me know if that helps.

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

Successfully merging this pull request may close these issues.

Error when import dash with panel library
6 participants