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

Avoid generating export file when no saved objects are actually exported #103597

Open
ymao1 opened this issue Jun 29, 2021 · 1 comment
Open

Avoid generating export file when no saved objects are actually exported #103597

ymao1 opened this issue Jun 29, 2021 · 1 comment
Labels
enhancement New value added to drive a business result Feature:Saved Objects Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc triage_needed

Comments

@ymao1
Copy link
Contributor

ymao1 commented Jun 29, 2021

With the recently added ability to filter out items onExport, it is possible to initiate an export where all selected objects are filtered out. This results in an ndjson with a single line containing the number of objects excluded, example:

{"excludedObjects":[{"id":"2a16ac09-d834-11eb-b614-2b1b222c1719","reason":"excluded","type":"alert"}],"excludedObjectsCount":1,"exportedCount":0,"missingRefCount":0,"missingReferences":[]}

In this scenario, it would be nice to avoid generating this file altogether and show a warning to the user informing them that none of their objects were actually exported.

@ymao1 ymao1 added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Jun 29, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@pgayvallet pgayvallet added Feature:Saved Objects enhancement New value added to drive a business result labels Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Saved Objects Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc triage_needed
Projects
None yet
Development

No branches or pull requests

4 participants