[App Search] Migrate Create Meta Engine View#92127
Conversation
|
|
…EngineCreationLogic
… to MetaEngineCreationLogic
c91fede to
0423d9e
Compare
...public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts
Show resolved
Hide resolved
...c/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.test.ts
Show resolved
Hide resolved
...c/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.test.ts
Show resolved
Hide resolved
|
OK sorry for the millions of separate comments, I think that's it for my first review pass! #92127 (comment) is probably the biggest one / will cause some annoying cascading waterfall changes in tests etc. QA also looks and feels great, awesome work on this Byron! |
...terprise_search/public/applications/app_search/components/meta_engine_creation/constants.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
49b35be to
65e931c
Compare
|
Hey @constancecchen I think this is ready for another round 💪 |
…h/components/meta_engine_creation/meta_engine_creation_logic.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com>
...public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts
Outdated
Show resolved
Hide resolved
…h/components/meta_engine_creation/meta_engine_creation_logic.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com>
…h/components/engines/constants.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com>
cee-chen
left a comment
There was a problem hiding this comment.
Thanks for resolving the last few comments! CI failures look unrelated/flakey, hopefully they don't come up again in the rerun 🤞
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
|
@byronhulcher Apologies if I'm stepping on your toes while you're out - merging this on your behalf while you're out today so that you don't have to re-run Kibana CI when you get back and so I can address the |
* New empty MetaEngineCreation component * Added MetaEngineCreation to AppSearchConfigured router * Empty MetaEngineCreationLogic * Add rawName value and setRawName action to MetaEngineCreationLogic * Add indexedEngineNames value and setIndexedEngineNames action to MEtaEngineCreationLogic * Add selectedIndexedEngineNames value and setIndexedEngineNames action to MetaEngineCreationLogic * Add description to MetaEngineCreation * Add name selector to MetaEngineCreationLogic * Added MetaEngineCreationNameInput to MetaEngineCreation * Add fetchIndexedEngineNames listener to MetaEngineCreationLogic * Call fetchIndexedEngineNames when MetaEngineCreation first renders * Add EuiComboBox for selectedEngineNames to MetaEngineCreation * WIP Add meta engine source engine limit warning to MetaEngineCreation * Add submitEngine listener to MetaEngineCreationLogic * Add onEngineCreationSuccess to MetaEngineCreationLogic * Fixing tests for MetaEngineCreationLogic * Fix tests for MetaEngineCreation * Add Create a meta engine button to EnginesOverview * Use DEFAULT_META for fetching indexed engine names in MetaEngineCreationLogic * Copy fixes * Updating POST /api/engines tests * Add noItemsMessage prop to EnginesTable * Add empty prompt to Meta Engines table in EnginesOverview * Apply suggestions from code review Co-authored-by: Constance <constancecchen@users.noreply.github.com> * Better form functionality in MetaEngineCreation * Fix errors from github * More MetaEngineCreation coverage * Meta MetaEngineCreationLogic coverage * Update x-pack/plugins/enterprise_search/public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com> * Update x-pack/plugins/enterprise_search/public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com> * Update x-pack/plugins/enterprise_search/public/applications/app_search/components/engines/constants.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com> Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* master: (199 commits) Convert Canvas docs to MDX for use in Elastic Docs (elastic#91969) [Bazel] More resilient Workspace Status (elastic#93244) [Discover] Change icon of saved search in open search panel and embeddable selection (elastic#93001) [Workplace Search] Role Mappings to Kibana (elastic#93123) [Fleet] Use type-only imports where possible (elastic#92979) [Lens] Set pie chart slices sorted clockwise (elastic#92617) Remove ms label from CPU load on status page (elastic#92836) [App Search] Migrate Create Meta Engine View (elastic#92127) [Time to Visualize] Disable Visualize URL Tracker When Linked to OriginatingApp (elastic#92917) [ILM] Allow multiple searchable snapshot actions (elastic#92789) Improve consistency for display of management items (elastic#92694) skip flaky suite (elastic#93152) skip flaky suite (elastic#93152) [ILM] Refactor edit_policy client integration tests into separate feature files (elastic#92826) Add developer documentation about the building blocks we offer plugin developers (elastic#92743) [Security Solution] Case ui enhancement (elastic#91863) [Security Solution] [Detections] Updates warning message when no indices match provided index patterns (elastic#93094) Collect agent telemetry even when fleet server is disabled. (elastic#93198) [Lens] Fix runtime validation error message (elastic#93195) [Lens] Remove warning about ordinal x-domain (elastic#93049) ...
* New empty MetaEngineCreation component * Added MetaEngineCreation to AppSearchConfigured router * Empty MetaEngineCreationLogic * Add rawName value and setRawName action to MetaEngineCreationLogic * Add indexedEngineNames value and setIndexedEngineNames action to MEtaEngineCreationLogic * Add selectedIndexedEngineNames value and setIndexedEngineNames action to MetaEngineCreationLogic * Add description to MetaEngineCreation * Add name selector to MetaEngineCreationLogic * Added MetaEngineCreationNameInput to MetaEngineCreation * Add fetchIndexedEngineNames listener to MetaEngineCreationLogic * Call fetchIndexedEngineNames when MetaEngineCreation first renders * Add EuiComboBox for selectedEngineNames to MetaEngineCreation * WIP Add meta engine source engine limit warning to MetaEngineCreation * Add submitEngine listener to MetaEngineCreationLogic * Add onEngineCreationSuccess to MetaEngineCreationLogic * Fixing tests for MetaEngineCreationLogic * Fix tests for MetaEngineCreation * Add Create a meta engine button to EnginesOverview * Use DEFAULT_META for fetching indexed engine names in MetaEngineCreationLogic * Copy fixes * Updating POST /api/engines tests * Add noItemsMessage prop to EnginesTable * Add empty prompt to Meta Engines table in EnginesOverview * Apply suggestions from code review Co-authored-by: Constance <constancecchen@users.noreply.github.com> * Better form functionality in MetaEngineCreation * Fix errors from github * More MetaEngineCreation coverage * Meta MetaEngineCreationLogic coverage * Update x-pack/plugins/enterprise_search/public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com> * Update x-pack/plugins/enterprise_search/public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com> * Update x-pack/plugins/enterprise_search/public/applications/app_search/components/engines/constants.ts Co-authored-by: Constance <constancecchen@users.noreply.github.com> Co-authored-by: Constance <constancecchen@users.noreply.github.com> Co-authored-by: Byron Hulcher <byronhulcher@gmail.com> Co-authored-by: Constance <constancecchen@users.noreply.github.com>
|
Hey @constancecchen sorry I left this unmerged before I left, last week was a bit of a blur. I appreciate you merging it, and I'll follow up the leftovers. |
Summary
This PR migrates the Create Meta Engine view from
ent-search, with improved test coverage and no custom STUI components.Screenshots
Engines Overview: No meta engines
Engines Overview: Some meta engines
Meta Engine Creation Form: Blank
Meta Engine Creation Form: Invalid name
Meta Engine Creation Form: Valid name, no source engines
Meta Engine Creation Form: Valid name, Too many source engines
Meta Engine Creation Form: Valid name, valid source engines
Meta Engine Creation Form: API error state
Engine Overview: After meta engine creation
Checklist