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

[Index Management] Filter by lifecycle status not working #180970

Closed
alisonelizabeth opened this issue Apr 16, 2024 · 2 comments · Fixed by #195350
Closed

[Index Management] Filter by lifecycle status not working #180970

alisonelizabeth opened this issue Apr 16, 2024 · 2 comments · Fixed by #195350
Labels
bug Fixes for quality problems that affect the customer experience Feature:Index Management Index and index templates UI good first issue low hanging fruit Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@alisonelizabeth
Copy link
Contributor

Kibana version:
8.13

Describe the bug:
The "lifecycle status" filter is not working as expected on the "Indices" tab in Index Management.

Steps to reproduce:

  1. Create an index ("PUT /my-index").
  2. Navigate to Kibana -> Stack Management -> Index Management.
  3. Use the "Lifecycle status" dropdown menu to filter by either "Managed"/"Unmanaged".
  4. Both of them will return "No indices found".

Expected behavior:
I would expect the index to appear if "Unmanaged" is selected.

Screenshots (if relevant):

Screenshot 2024-04-16 at 1 48 24 PM Screenshot 2024-04-16 at 1 48 36 PM
@alisonelizabeth alisonelizabeth added bug Fixes for quality problems that affect the customer experience Feature:Index Management Index and index templates UI Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more labels Apr 16, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@alisonelizabeth
Copy link
Contributor Author

alisonelizabeth commented Apr 16, 2024

cc @yuliacech this might be a regression from some of the enhancements made to the indices tab?

@alisonelizabeth alisonelizabeth added the good first issue low hanging fruit label Aug 30, 2024
ElenaStoeva added a commit that referenced this issue Oct 10, 2024
## Summary

Fixes #180970 

In `indexLifecycleDataEnricher`, add `only_managed: true` query
parameter to fetch lifecycle data.

It causes the `ilm` property to be empty in the response. And
`EuiSearchBar` `field_value_selection` doesn't support filtering a
`undefined` filed value.

So, maybe `only_managed: true` should be removed.

Before:

<img width="733" alt="image"
src="https://github.com/user-attachments/assets/2472127d-c050-4ffb-bb76-f3e80e780cb3">

After: 

<img width="511" alt="image"
src="https://github.com/user-attachments/assets/da38f437-58f4-43b2-8d6b-54873e01f79b">

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Elena Stoeva <[email protected]>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Oct 10, 2024
…#195350)

## Summary

Fixes elastic#180970

In `indexLifecycleDataEnricher`, add `only_managed: true` query
parameter to fetch lifecycle data.

It causes the `ilm` property to be empty in the response. And
`EuiSearchBar` `field_value_selection` doesn't support filtering a
`undefined` filed value.

So, maybe `only_managed: true` should be removed.

Before:

<img width="733" alt="image"
src="https://github.com/user-attachments/assets/2472127d-c050-4ffb-bb76-f3e80e780cb3">

After:

<img width="511" alt="image"
src="https://github.com/user-attachments/assets/da38f437-58f4-43b2-8d6b-54873e01f79b">

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Elena Stoeva <[email protected]>
(cherry picked from commit 5214877)
kibanamachine added a commit that referenced this issue Oct 10, 2024
…195350) (#195803)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Index Management] Fix filter index list by lifecycle status
(#195350)](#195350)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jusheng
Huang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-10T16:05:23Z","message":"[Index
Management] Fix filter index list by lifecycle status (#195350)\n\n##
Summary\r\n\r\nFixes #180970 \r\n\r\nIn `indexLifecycleDataEnricher`,
add `only_managed: true` query\r\nparameter to fetch lifecycle
data.\r\n\r\nIt causes the `ilm` property to be empty in the response.
And\r\n`EuiSearchBar` `field_value_selection` doesn't support filtering
a\r\n`undefined` filed value.\r\n\r\nSo, maybe `only_managed: true`
should be removed.\r\n\r\nBefore:\r\n\r\n<img width=\"733\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/2472127d-c050-4ffb-bb76-f3e80e780cb3\">\r\n\r\nAfter:
\r\n\r\n<img width=\"511\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/da38f437-58f4-43b2-8d6b-54873e01f79b\">\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>\r\nCo-authored-by: Elena
Stoeva
<[email protected]>","sha":"52148775b1ff4b4379f0049cc2332fb27e405a07","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana
Management","release_note:skip","💝community","v9.0.0","backport:prev-minor"],"title":"[Index
Management] Fix filter index list by lifecycle
status","number":195350,"url":"https://github.com/elastic/kibana/pull/195350","mergeCommit":{"message":"[Index
Management] Fix filter index list by lifecycle status (#195350)\n\n##
Summary\r\n\r\nFixes #180970 \r\n\r\nIn `indexLifecycleDataEnricher`,
add `only_managed: true` query\r\nparameter to fetch lifecycle
data.\r\n\r\nIt causes the `ilm` property to be empty in the response.
And\r\n`EuiSearchBar` `field_value_selection` doesn't support filtering
a\r\n`undefined` filed value.\r\n\r\nSo, maybe `only_managed: true`
should be removed.\r\n\r\nBefore:\r\n\r\n<img width=\"733\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/2472127d-c050-4ffb-bb76-f3e80e780cb3\">\r\n\r\nAfter:
\r\n\r\n<img width=\"511\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/da38f437-58f4-43b2-8d6b-54873e01f79b\">\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>\r\nCo-authored-by: Elena
Stoeva
<[email protected]>","sha":"52148775b1ff4b4379f0049cc2332fb27e405a07"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195350","number":195350,"mergeCommit":{"message":"[Index
Management] Fix filter index list by lifecycle status (#195350)\n\n##
Summary\r\n\r\nFixes #180970 \r\n\r\nIn `indexLifecycleDataEnricher`,
add `only_managed: true` query\r\nparameter to fetch lifecycle
data.\r\n\r\nIt causes the `ilm` property to be empty in the response.
And\r\n`EuiSearchBar` `field_value_selection` doesn't support filtering
a\r\n`undefined` filed value.\r\n\r\nSo, maybe `only_managed: true`
should be removed.\r\n\r\nBefore:\r\n\r\n<img width=\"733\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/2472127d-c050-4ffb-bb76-f3e80e780cb3\">\r\n\r\nAfter:
\r\n\r\n<img width=\"511\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/da38f437-58f4-43b2-8d6b-54873e01f79b\">\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>\r\nCo-authored-by: Elena
Stoeva
<[email protected]>","sha":"52148775b1ff4b4379f0049cc2332fb27e405a07"}}]}]
BACKPORT-->

Co-authored-by: Jusheng Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Index Management Index and index templates UI good first issue low hanging fruit Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants