-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ILM] Added a flyout with linked index templates #106734
Conversation
@elasticmachine merge upstream |
040433b
to
953b5a0
Compare
@elasticmachine merge upstream |
Pinging @elastic/kibana-stack-management (Team:Stack Management) |
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.
Nice work @yuliacech! I tested locally and it all works alright, and code changes LGTM. I have though a few UX suggestions:
Enhance flyout table
Since we have a lot of space available in the table, I think would be a nice addition to add the template type (system, cloud, managed). When I was testing it locally I firstly opened an index template that was from system
and since its not shown by default I was a bit confused about it.
Empty state
Unsure about this one, but maybe would look nicer if we were to use something like an EmptyPrompt instead of an empty table
Missing padding for close flyout cta
I think this might be an eui bug but the close flyout cta seems to not have enough padding on the sides
@@ -181,8 +194,20 @@ describe('policy table', () => { | |||
test('displays policy properties', () => { | |||
const rendered = mountWithIntl(component); | |||
const firstRow = findTestSubject(rendered, 'policyTableRow').at(0).text(); |
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.
I think this data-test-subj now changed to policyTableRow-${name}
so might need a little refactor in this part too
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.
Left one suggestion, but otherwise LGTM. I would definitely remove policy from the flyout header. I think it would be helpful to use the header to provide info about what "linked to" means, rather than just repeating the linked to phrase.
.../plugins/index_lifecycle_management/public/application/components/index_templates_flyout.tsx
Outdated
Show resolved
Hide resolved
Seems like an entry of 0 in the linked templates shouldn't even open the flyout? |
…omponents/index_templates_flyout.tsx Co-authored-by: debadair <debadair@elastic.co>
@elasticmachine merge upstream |
Thanks a lot for your review, @sabarasaba! |
Thanks a lot for the review, @debadair! |
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.
Latest changes lgtm @yuliacech, nice job!
* [ILM] Server to use new in_use_by property returned by ES API * [ILM] Cleaning up the PR changes * [ILM] Fixed functional test * [ILM] Fixed 'modifiedDate' display in the table * [ILM] Fixed sorting test * [ILM] Removed a not needed function declaration * [ILM] Added index templates flyout to the policies list * [ILM] Added test for the index templates flyout * [ILM] Added an a11y test for the index templates flyout * Update x-pack/plugins/index_lifecycle_management/public/application/components/index_templates_flyout.tsx Co-authored-by: debadair <debadair@elastic.co> * [ILM] Fixed jest test and made 0 index templates to not open the flyout * [ILM] Fixed a11y test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: debadair <debadair@elastic.co>
* [ILM] Server to use new in_use_by property returned by ES API * [ILM] Cleaning up the PR changes * [ILM] Fixed functional test * [ILM] Fixed 'modifiedDate' display in the table * [ILM] Fixed sorting test * [ILM] Removed a not needed function declaration * [ILM] Added index templates flyout to the policies list * [ILM] Added test for the index templates flyout * [ILM] Added an a11y test for the index templates flyout * Update x-pack/plugins/index_lifecycle_management/public/application/components/index_templates_flyout.tsx Co-authored-by: debadair <debadair@elastic.co> * [ILM] Fixed jest test and made 0 index templates to not open the flyout * [ILM] Fixed a11y test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: debadair <debadair@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: debadair <debadair@elastic.co>
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsAPI count
API count missing comments
History
To update your PR or re-run it, just comment with: |
* [ILM] Server to use new in_use_by property returned by ES API * [ILM] Cleaning up the PR changes * [ILM] Fixed functional test * [ILM] Fixed 'modifiedDate' display in the table * [ILM] Fixed sorting test * [ILM] Removed a not needed function declaration * [ILM] Added index templates flyout to the policies list * [ILM] Added test for the index templates flyout * [ILM] Added an a11y test for the index templates flyout * Update x-pack/plugins/index_lifecycle_management/public/application/components/index_templates_flyout.tsx Co-authored-by: debadair <debadair@elastic.co> * [ILM] Fixed jest test and made 0 index templates to not open the flyout * [ILM] Fixed a11y test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: debadair <debadair@elastic.co>
Summary
This PR adds a new column "Linked index templates" to the ILM policies list. A click on the number in this columns opens a flyout with a list of linked index templates linked to the ILM policy. The index template names are links to the Index Management view with index templates details.
Future PRs for this feature will include an update of the index templates column after adding an ILM policy to an index template, a search bar for index templates list, number of index templates in the delete confirmation and on the edit page.
Changes to the codebase
useHistory
hook instead of passinghistory
as propgetUrlForApp
andnavigateToApp
functions touseKibana
context instead of passing them as propRedirectAppLinks
so that there is no page reload when navigating to other pluginsScreenshots
ILM policies list with a new "Linked index templates" column
Index templates flyout
Flyout video
index_templates_screencast.mov
Checklist
Delete any items that are not applicable to this PR.
Release Note
There is now a flyout in the Index Lifecycle Management app that displays a list of index templates linked to the Index Lifecycle policy.