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] Add delete action to EnginesTable component #92844

Merged
merged 19 commits into from
Mar 9, 2021

Conversation

byronhulcher
Copy link
Contributor

@byronhulcher byronhulcher commented Feb 25, 2021

Summary

Adds a new action to the EnginesTable component to delete engines from inside Kibana! Also moves the existing "Manage" action to an icon as per a convo @constancecchen and @daveyholler had (see original issue)

Screenshots

EngineTable: Now with actions!

Screen Shot 2021-02-25 at 3 37 56 PM

Delete Engine Action: Confirmation pop-up for indexed engines

Screen Shot 2021-02-25 at 3 38 00 PM

Delete Engine Action: Success message for indexed engines

Screen Shot 2021-02-25 at 3 38 18 PM

Delete Engine Action: Confirmation pop-up for meta engines

Screen Shot 2021-02-25 at 3 38 32 PM

Delete Engine Action: Success message for meta engines

Screen Shot 2021-02-25 at 3 38 37 PM

Checklist

Delete any items that are not applicable to this PR.

@byronhulcher byronhulcher added 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 labels Feb 25, 2021
@byronhulcher byronhulcher marked this pull request as ready for review February 25, 2021 20:42
@byronhulcher byronhulcher requested a review from a team February 25, 2021 20:42
Copy link
Member

@JasonStoltz JasonStoltz left a comment

Choose a reason for hiding this comment

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

Just a few small comments and suggestions

@byronhulcher byronhulcher requested a review from a team March 1, 2021 16:17
@byronhulcher byronhulcher requested a review from JasonStoltz March 1, 2021 16:34
@byronhulcher byronhulcher force-pushed the delete-engine-action branch from 0055ebc to b6c66d0 Compare March 1, 2021 17:07
@byronhulcher
Copy link
Contributor Author

Hey @JasonStoltz as a heads up, I updated the logic in engine_table to use hasPlatinumLicense from LicensingLogic instead of myRole.canManageEngines from AppLogic, based on a decision to do the same for Meta Engine Creation-related features.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1308 1309 +1

Async chunks

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

id before after diff
enterpriseSearch 2.1MB 2.1MB +2.3KB

History

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

@byronhulcher byronhulcher merged commit cceed8d into elastic:master Mar 9, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 9, 2021
* Add delete engine route to App Search

* Add new deleteEngine listener to EnginesLogic

* Convert EnginesTable Manage into a proper EuiBasicTable action

* Call EnginesLogic.actions.deleteEngine using new action in EnginesTable

* Manage action on EnginesTable should use eye icon

* Confirmation alert for delete action on EnginesTable

* Only display manage/delete actions to users with canManageEngines

* Add success message and reload after successful engine delete

* Jest tests for EngineTable actions

* Copy change for engine delete success message

* Fixing EnginesTable tests

* Adding more tests for DELETE engine route

* engineNameLink -> EngineNameLink

* Remove redundant test

* Convert Engine.type to enum EngineTypes

* Must use mountWithIntl

* Use platinum license instead of role ability check
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #94099

Successful backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Mar 9, 2021
…4099)

* Add delete engine route to App Search

* Add new deleteEngine listener to EnginesLogic

* Convert EnginesTable Manage into a proper EuiBasicTable action

* Call EnginesLogic.actions.deleteEngine using new action in EnginesTable

* Manage action on EnginesTable should use eye icon

* Confirmation alert for delete action on EnginesTable

* Only display manage/delete actions to users with canManageEngines

* Add success message and reload after successful engine delete

* Jest tests for EngineTable actions

* Copy change for engine delete success message

* Fixing EnginesTable tests

* Adding more tests for DELETE engine route

* engineNameLink -> EngineNameLink

* Remove redundant test

* Convert Engine.type to enum EngineTypes

* Must use mountWithIntl

* Use platinum license instead of role ability check

Co-authored-by: Byron Hulcher <[email protected]>
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.

3 participants