-
Notifications
You must be signed in to change notification settings - Fork 118
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
Support exporting dashboards using the saved objects API #1357
base: main
Are you sure you want to change the base?
Support exporting dashboards using the saved objects API #1357
Conversation
internal/kibana/dashboards.go
Outdated
logger.Debug("Export dashboards using the Kibana Saved Objects Export API") | ||
|
||
exportRequest := exportSavedObjectsRequest{ | ||
ExcludeExportDetails: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be needed to set IncludeReferencesDeep
to true, to get other references used in the dashboards like tags, searches, maps... ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, trying to add it.
internal/kibana/dashboards.go
Outdated
if sv.LessThan(semver.MustParse("8.8.0")) { | ||
return c.exportWithDashboardsAPI(dashboardIDs) | ||
} | ||
|
||
return c.exportWithSavedObjectsAPI(dashboardIDs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
💚 Build Succeeded
History
cc @jsoriano |
dashboards = append(dashboards, dashboard) | ||
} | ||
|
||
return dashboards, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To reuse the code introduced in #1565 if finally merged.
No description provided.