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

Support exporting dashboards using the saved objects API #1357

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

jsoriano
Copy link
Member

No description provided.

@jsoriano jsoriano requested a review from a team July 14, 2023 15:26
@jsoriano jsoriano self-assigned this Jul 14, 2023
logger.Debug("Export dashboards using the Kibana Saved Objects Export API")

exportRequest := exportSavedObjectsRequest{
ExcludeExportDetails: true,
Copy link
Contributor

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... ?

Copy link
Member Author

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.

Comment on lines 38 to 42
if sv.LessThan(semver.MustParse("8.8.0")) {
return c.exportWithDashboardsAPI(dashboardIDs)
}

return c.exportWithSavedObjectsAPI(dashboardIDs)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

dashboards = append(dashboards, dashboard)
}

return dashboards, nil
Copy link
Member Author

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.

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

Successfully merging this pull request may close these issues.

3 participants