Skip to content

Conversation

@byronhulcher
Copy link
Contributor

@byronhulcher byronhulcher commented Jan 25, 2021

Summary

This PR migrates the Create Engine view from ent-search, with improved test coverage and no custom STUI components.

Screenshots

Create Engine view: Empty state

Screen Shot 2021-01-29 at 7 51 44 PM

Create Engine view: Supported languages

Screen Shot 2021-01-29 at 7 51 49 PM

Create Engine view: Acceptable name

Screen Shot 2021-01-29 at 7 52 13 PM

Create Engine view: Sanitized name

Screen Shot 2021-01-29 at 8 00 21 PM

Create Engine view: Sanitized name with length of 0

Screen Shot 2021-01-29 at 8 43 55 PM

Create Engine view: Duplicate engine name error state

Screen Shot 2021-01-29 at 8 00 38 PM

Engine Overview view: Success message after engine creation

Screen Shot 2021-01-29 at 8 00 49 PM

Checklist

Delete any items that are not applicable to this PR.

@byronhulcher byronhulcher force-pushed the create-engine-view branch 3 times, most recently from 86e1a2a to 63aec40 Compare January 27, 2021 15:38
@elastic elastic deleted a comment from kibanamachine Jan 27, 2021
@byronhulcher

This comment has been minimized.

@byronhulcher
Copy link
Contributor Author

byronhulcher commented Jan 27, 2021

Even though I'm setup inside our App router with an exact route I'm still seeing EngineRouter and the related EngineLogic being initialized.

easy solutions include "move Create Engine to a new path that won't conflict"

Hey @zumwalt what if this view lived under a path like http://localhost:5601/hxe/app/enterprise_search/app_search/create_engine instead of http://localhost:5601/hxe/app/enterprise_search/app_search/engines/new? Means I could skip investigating this for now

@zumwalt
Copy link
Contributor

zumwalt commented Jan 27, 2021

I'm fine with that if it unblocks you.

@byronhulcher

This comment has been minimized.

const { name, rawName, language } = useValues(CreateEngineLogic);
const { setLanguage, setRawName, submitEngine } = useActions(CreateEngineLogic);

// TODO these need to come from AppLogic and/or the Enterprise Search server
Copy link
Contributor Author

Choose a reason for hiding this comment

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


export const ENGINES_PATH = '/engines';
export const CREATE_ENGINES_PATH = `${ENGINES_PATH}/new`;
export const CREATE_ENGINES_PATH = `/create_engine`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zumwalt is good with this change #89156 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need this for displaying the setQueuedSuccessMessage from CreateEngineLogic.actions.onCreateEngineSuccess

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't need this here... but it seems silly not to include this the normal view if I'm including it in the empty state view

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@byronhulcher
Copy link
Contributor Author

Opening a new PR with less messy history

@kibanamachine
Copy link
Contributor

kibanamachine commented Jan 30, 2021

💔 Build Failed

Failed CI Steps

Metrics [docs]

‼️ ERROR: metrics for 5f8beff were not reported

History

  • 💔 Build #102415 failed a751e553995ce4ceffa3700b892f0701c064b58a
  • 💔 Build #102409 failed d1d520efa01fad114e7fba2bcb95a99d82dcfb5b
  • 💔 Build #101568 failed c7e98aaf5941fe65ad05c66b66a3395943ae914b
  • 💔 Build #101515 failed 575e28ba7b2261740ad79e189ab52d19278ee603

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants