-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[CM] Soften response validation #166919
[CM] Soften response validation #166919
Conversation
packages/kbn-content-management-utils/src/saved_object_content_storage.ts
Show resolved
Hide resolved
packages/kbn-content-management-utils/src/saved_object_content_storage.ts
Show resolved
Hide resolved
…ften-response-validation
…Dosant/kibana into d/2023-09-21-soften-response-validation
…Dosant/kibana into d/2023-09-21-soften-response-validation
…ften-response-validation # Conflicts: # src/plugins/dashboard/tsconfig.json
…ften-response-validation
Pinging @elastic/appex-sharedux (Team:SharedUX) |
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.
kibana-presentation and kibana-gis changes LGTM
code review only
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.
LGTM, code review only.
Feels like a good case to validate with API integration tests (not saying that needs to be done here).
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.
Pulled and tested locally in Discover, and it works as expected with throwOnResultValidationError
on and off. Thanks for addressing this and adding the tests! LGTM 👍
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.
LGTM!
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
History
To update your PR or re-run it, just comment with: |
Summary
Close #167152
Log a warning instead of throwing an error in
saved_object_content_storage
when response validation failed.We decided to do this as a precaution and as a follow up to an issue found in saved search #166886 where storage started failing because of too strict validation.
As of this PR the saved_object_content_storage covers and this change cover:
search
index_pattern
dashboard
lens
maps
For other types we agreed with @dej611 that instead of applying the same change for other types (visualization, graph, annotation) the team would look into migrating their types to also use
saved_object_content_storage
#167421