-
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] Migrate SavedObectsFinder
to CM mSearch
#161545
Labels
Team:SharedUX
Team label for AppEx-SharedUX (formerly Global Experience)
Comments
Dosant
added
the
Team:SharedUX
Team label for AppEx-SharedUX (formerly Global Experience)
label
Jul 10, 2023
Pinging @elastic/appex-sharedux (Team:SharedUX) |
mattkime
added a commit
that referenced
this issue
Jul 26, 2023
…up (#162450) ## Summary Adds content management api mSearch functionality to `lens`, `visualization`, and `event_annotation_group` types via abstracted function and types. Part of #161545 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
ThomThomson
pushed a commit
to ThomThomson/kibana
that referenced
this issue
Aug 1, 2023
…up (elastic#162450) ## Summary Adds content management api mSearch functionality to `lens`, `visualization`, and `event_annotation_group` types via abstracted function and types. Part of elastic#161545 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This was referenced Aug 2, 2023
Dosant
added a commit
that referenced
this issue
Aug 8, 2023
## Summary close #161545 close #153257 This PR makes `SavedObjectFinder` component backward compatible. It is achieved by going through content- management layer, more technical details [here](https://docs.google.com/document/d/1ssYmqSEUPrsuCR4iz8DohkEWekoYrm2yL4QR_fVxXLg/edit) ### Testing `SavedObjectFinder` is this component that allows to pick a saved object (supports: `search` `index-pattern` `map` `visualization` `lens` `event-annotation-group`: ![Screenshot 2023-08-07 at 16 53 32](https://github.com/elastic/kibana/assets/7784120/5c283ea5-3682-4dc8-a8ff-422e6f4f3195) It is used in the following places: - Dashboard - Add panel - Replace panel - Discover - Open Search - Visualization - Select search as a source for new viz - Graph - select source - Cases - markdown editor add lens - ML (3 places) - Canvas - select embeddable panel - Transform - Lens > select event annotation ### Risks / Follow up The `SavedObjectFinder` should stay mostly the same, the only notable functional change is that now `SavedObjectFinder` doesn't support `includeFields` which allowed partial saved object returns, this was done to make the call backward-compatible without making the system even more complicated as otherwise we'll need a way to abstract `includeFields` from so attributes and allow to run migrations on it before making a search. follow up issue to bring it back #163043 The risk with that is that some client that have a lot of large objects might run into performance issues when using `SavedObjectFinder`. This can be mitigated by changing listing limit in advanced setting from default 1000 to something lower
bryce-b
pushed a commit
to bryce-b/kibana
that referenced
this issue
Aug 9, 2023
## Summary close elastic#161545 close elastic#153257 This PR makes `SavedObjectFinder` component backward compatible. It is achieved by going through content- management layer, more technical details [here](https://docs.google.com/document/d/1ssYmqSEUPrsuCR4iz8DohkEWekoYrm2yL4QR_fVxXLg/edit) ### Testing `SavedObjectFinder` is this component that allows to pick a saved object (supports: `search` `index-pattern` `map` `visualization` `lens` `event-annotation-group`: ![Screenshot 2023-08-07 at 16 53 32](https://github.com/elastic/kibana/assets/7784120/5c283ea5-3682-4dc8-a8ff-422e6f4f3195) It is used in the following places: - Dashboard - Add panel - Replace panel - Discover - Open Search - Visualization - Select search as a source for new viz - Graph - select source - Cases - markdown editor add lens - ML (3 places) - Canvas - select embeddable panel - Transform - Lens > select event annotation ### Risks / Follow up The `SavedObjectFinder` should stay mostly the same, the only notable functional change is that now `SavedObjectFinder` doesn't support `includeFields` which allowed partial saved object returns, this was done to make the call backward-compatible without making the system even more complicated as otherwise we'll need a way to abstract `includeFields` from so attributes and allow to run migrations on it before making a search. follow up issue to bring it back elastic#163043 The risk with that is that some client that have a lot of large objects might run into performance issues when using `SavedObjectFinder`. This can be mitigated by changing listing limit in advanced setting from default 1000 to something lower
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a follow up to #152224
Need to migrate https://github.com/elastic/kibana/tree/main/src/plugins/saved_objects_finder to CM
mSearch
to make it BWC compliant as currently it directly returns saved objects:kibana/src/plugins/saved_objects_finder/server/routes/find.ts
Line 54 in b641a22
The tech doc for this: https://docs.google.com/document/d/1ssYmqSEUPrsuCR4iz8DohkEWekoYrm2yL4QR_fVxXLg/edit#heading=h.6sj4n6bjcgp5
blocked on AppEx saved object type migrated to CM
@Dosant to check if content types have any issues:
search
- all goodmap
- all goodindex-pattern
- all goodvisualization
- need to addmSearch
config cc @elastic/kibana-visualizationsvisualization
- fix regular search so that it doesn't implicitly search over lens and maps, migrate visualize listing page to use mSearch cc @elastic/kibana-visualizationslens
- need to addmSearch
config cc @elastic/kibana-visualizationsevent-annotation-group
- need to addmSearch
config @elastic/kibana-visualizationscc @thomasneirynck
The text was updated successfully, but these errors were encountered: