Repository navigation
Allow passing a default operator to use on saved object client find operations - #29339
Conversation
|
Pinging @elastic/kibana-platform |
💚 Build Succeeded |
kobelb
left a comment
There was a problem hiding this comment.
LGTM from the security perspective. The type/namespace filtering exists in a separate "clause" so it's not affected by the specified search operator.
|
I have the same solution I made for 6.5 except for I checked that the searchOperator was defined before setting a value on that bool object. Does something else check that? |
|
I stripped of part of the description, since the |
|
Spoke with @timroes and confirmed dashboard and visualizations are fixed with the code changes in this PR (they call saved_object_loader behind the scenes). @JacobBrandt I added a fallback to |
|
Pinging @elastic/kibana-app |
This comment has been minimized.
This comment has been minimized.
💚 Build Succeeded |
…configure-find-operator
💚 Build Succeeded |
|
Spoke with @spalger and agreed we should rename |
💚 Build Succeeded |
spalger
left a comment
There was a problem hiding this comment.
LGTM, code review, thanks!
timroes
left a comment
There was a problem hiding this comment.
Tested the usage in saved_object_finder and saved_object_loader and that looks good to me.
…perations (elastic#29339) * Allow passing a default operator to use on find operations * Default operator to OR like elasticsearch to avoid passing null * Add dashboard search tests * Make search_operator optional * Fix query_params.test.js * Include searchOperator in saved_object_finder * Apply PR feedback * Rename searchOperator to defaultSearchOperator
…perations (elastic#29339) * Allow passing a default operator to use on find operations * Default operator to OR like elasticsearch to avoid passing null * Add dashboard search tests * Make search_operator optional * Fix query_params.test.js * Include searchOperator in saved_object_finder * Apply PR feedback * Rename searchOperator to defaultSearchOperator
Fixes #29262.
Fixes #20676
Ability to pass in a
default_operatorfor a saved object repositoryfindcall.The default operator gets passed to the
simple_query_stringrequest to Elasticsearch.This changes the default operator in the
saved_object_loader.jstoANDto make finding dashboards, visualizations, etc easier.