Skip to content
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

[App Search] Migrate Create Meta Engine View #92127

Merged
merged 32 commits into from
Mar 2, 2021

Conversation

byronhulcher
Copy link
Contributor

@byronhulcher byronhulcher commented Feb 22, 2021

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

Screen Shot 2021-02-24 at 11 22 52 AM

Engines Overview: Some meta engines

Screen Shot 2021-02-24 at 11 23 04 AM

Meta Engine Creation Form: Blank

Screen Shot 2021-02-24 at 9 40 32 AM

Meta Engine Creation Form: Invalid name

Screen Shot 2021-02-24 at 9 40 59 AM

Meta Engine Creation Form: Valid name, no source engines

Screen Shot 2021-02-24 at 9 41 16 AM

Meta Engine Creation Form: Valid name, Too many source engines

Screen Shot 2021-02-24 at 9 46 27 AM

Meta Engine Creation Form: Valid name, valid source engines

Screen Shot 2021-02-24 at 9 50 57 AM

Meta Engine Creation Form: API error state

Screen Shot 2021-02-24 at 9 57 06 AM

Engine Overview: After meta engine creation

Screen Shot 2021-02-24 at 9 56 48 AM

Checklist

@byronhulcher
Copy link
Contributor Author

byronhulcher commented Feb 22, 2021

TODO TO-DONE!

I just realized we will probably need to change not showing the meta engines section when meta engines length === 0. On a platinum license, we'll always want to show the meta section so the create button is actually available. Additionally we'll likely want some kind of EuiEmptyPrompt CTA.

@byronhulcher byronhulcher force-pushed the meta-engine-creation branch 2 times, most recently from c91fede to 0423d9e Compare February 24, 2021 15:18
@byronhulcher byronhulcher marked this pull request as ready for review February 24, 2021 15:25
@byronhulcher byronhulcher requested a review from a team February 24, 2021 15:25
@byronhulcher byronhulcher added release_note:skip Skip the PR/issue when compiling release notes v7.13.0 labels Feb 24, 2021
@cee-chen
Copy link
Contributor

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!

@byronhulcher byronhulcher force-pushed the meta-engine-creation branch from 49b35be to 65e931c Compare March 1, 2021 15:38
@byronhulcher byronhulcher requested a review from cee-chen March 1, 2021 15:40
@byronhulcher
Copy link
Contributor Author

Hey @constancecchen I think this is ready for another round 💪

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look great! I'm good to approve once these two remaining threads are resolved (through more chatting/discussion/agreeing to disagree is fine!):

#92127 (comment)
#92127 (comment)

…h/components/meta_engine_creation/meta_engine_creation_logic.ts

Co-authored-by: Constance <[email protected]>
byronhulcher and others added 2 commits March 1, 2021 14:37
…h/components/meta_engine_creation/meta_engine_creation_logic.ts

Co-authored-by: Constance <[email protected]>
…h/components/engines/constants.ts

Co-authored-by: Constance <[email protected]>
Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for resolving the last few comments! CI failures look unrelated/flakey, hopefully they don't come up again in the rerun 🤞

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1281 1285 +4

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 1.9MB 2.0MB +12.7KB
triggersActionsUi 1.6MB 1.5MB -23.9KB
total -11.2KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
triggersActionsUi 104.0KB 104.1KB +82.0B
Unknown metric groups

async chunk count

id before after diff
triggersActionsUi 41 42 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cee-chen
Copy link
Contributor

cee-chen commented Mar 2, 2021

@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 = branch in #92841. If you don't prefer people to merge PRs for you definitely please let me know/yell at me when you get back!

@cee-chen cee-chen merged commit 3d06573 into elastic:master Mar 2, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 2, 2021
* 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 <[email protected]>

* 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 <[email protected]>

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts

Co-authored-by: Constance <[email protected]>

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/engines/constants.ts

Co-authored-by: Constance <[email protected]>

Co-authored-by: Constance <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #93256

Successful backport PRs will be merged automatically after passing CI.

gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 2, 2021
* 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)
  ...
kibanamachine added a commit that referenced this pull request Mar 2, 2021
* 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 <[email protected]>

* 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 <[email protected]>

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/meta_engine_creation/meta_engine_creation_logic.ts

Co-authored-by: Constance <[email protected]>

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/engines/constants.ts

Co-authored-by: Constance <[email protected]>

Co-authored-by: Constance <[email protected]>

Co-authored-by: Byron Hulcher <[email protected]>
Co-authored-by: Constance <[email protected]>
@byronhulcher
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants