Show errors if any when updating managed setting in saved object#3057
Show errors if any when updating managed setting in saved object#3057mrodm merged 2 commits intoelastic:mainfrom
Conversation
💚 Build Succeeded
cc @mrodm |
There was a problem hiding this comment.
Error: failed to make one or more dashboards editable: importing dashboard profilingmetrics_otel-cf4d74ec-b406-4314-9519-2569d24002fe was not successful: ID: profilingmetrics_otel-cf4d74ec-b406-4314-9519-2569d24002fe, Type: dashboard
The saved object type and id appear twice now, we could only include the errors.
Error: map[references:[map[id:72c09aba-3449-477f-aebf-0694d94fed70 type:index-pattern]] type:missing_references]
The error is still a bit cryptic, but more significant than before.
I re-phrased these errors to be like:
WDYT @jsoriano ?
I couldn't find the specification of these errors (API docs link), it looks like there could be any field there. That's why I just set |
Follows #3007
This PR helps to debug errors when editing dashboards if there is any error importing those saved objects.
In case there are errors, those are shown as part of the error message shown in
elastic-package.Before:
After: