-
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
[App Search] Add delete action to EnginesTable component #92844
[App Search] Add delete action to EnginesTable component #92844
Conversation
df98336
to
69de7f9
Compare
69de7f9
to
097d26a
Compare
...ins/enterprise_search/public/applications/app_search/components/engines/engines_overview.tsx
Show resolved
Hide resolved
There was a problem hiding this 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
x-pack/plugins/enterprise_search/server/routes/app_search/engines.test.ts
Show resolved
Hide resolved
...plugins/enterprise_search/public/applications/app_search/components/engines/engines_logic.ts
Outdated
Show resolved
Hide resolved
...ns/enterprise_search/public/applications/app_search/components/engines/engines_logic.test.ts
Outdated
Show resolved
Hide resolved
...lugins/enterprise_search/public/applications/app_search/components/engines/engines_table.tsx
Outdated
Show resolved
Hide resolved
...s/enterprise_search/public/applications/app_search/components/engines/engines_table.test.tsx
Outdated
Show resolved
Hide resolved
...s/enterprise_search/public/applications/app_search/components/engines/engines_table.test.tsx
Show resolved
Hide resolved
...s/enterprise_search/public/applications/app_search/components/engines/engines_table.test.tsx
Outdated
Show resolved
Hide resolved
...s/enterprise_search/public/applications/app_search/components/engines/engines_table.test.tsx
Outdated
Show resolved
Hide resolved
...s/enterprise_search/public/applications/app_search/components/engines/engines_table.test.tsx
Show resolved
Hide resolved
...s/enterprise_search/public/applications/app_search/components/engines/engines_table.test.tsx
Outdated
Show resolved
Hide resolved
0055ebc
to
b6c66d0
Compare
Hey @JasonStoltz as a heads up, I updated the logic in |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
* 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
…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]>
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!
Delete Engine Action: Confirmation pop-up for indexed engines
Delete Engine Action: Success message for indexed engines
Delete Engine Action: Confirmation pop-up for meta engines
Delete Engine Action: Success message for meta engines
Checklist
Delete any items that are not applicable to this PR.