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 Pattern with different ID than name not filtering in dashboards #6742

Closed
Tracked by #6672
lucianogorza opened this issue Jun 4, 2024 · 1 comment · Fixed by #6746
Closed
Tracked by #6672

Index Pattern with different ID than name not filtering in dashboards #6742

lucianogorza opened this issue Jun 4, 2024 · 1 comment · Fixed by #6746
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@lucianogorza
Copy link
Contributor

lucianogorza commented Jun 4, 2024

Description
When creating an index pattern with an ID different from its name and then selecting that index pattern from the selector in the top bar, the dashboards do not filter by the selected index pattern.

Steps to reproduce

  1. Create an index pattern with an ID that differs from its name.
  2. Navigate to the top bar selector and select the newly created index pattern.
  3. Observe that the dashboards do not filter according to the selected index pattern.

Expected Result
Selecting an index pattern from the top bar should filter the dashboards based on the selected index pattern.

Actual Result
The dashboards do not apply the filter based on the selected index pattern.

Screenshots

screen-capture.webm

image

image

@lucianogorza lucianogorza self-assigned this Jun 4, 2024
@lucianogorza lucianogorza added type/bug Bug issue level/task Task issue labels Jun 4, 2024
@lucianogorza
Copy link
Contributor Author

lucianogorza commented Jun 4, 2024

Analysis

When the user creates new index pattern, OpenSearch assigns the id

image

When the index pattern is selected, the id is set correctly

image

But the url is set with the index pattern title and is being processed incorrectly

image

There are several files where is using index pattern title instead id

plugins/main/public/components/common/data-source/pattern/pattern-data-source.ts

image

plugins/main/public/components/common/data-source/pattern/pattern-data-source-filter-manager.ts

image

plugins/main/public/react-services/data-sources/vulnerabilities-states.ts

image

@wazuhci wazuhci moved this to In progress in Release 4.9.0 Jun 4, 2024
@asteriscos asteriscos mentioned this issue Jun 5, 2024
14 tasks
@wazuhci wazuhci moved this from In progress to Pending review in Release 4.9.0 Jun 5, 2024
@asteriscos asteriscos linked a pull request Jun 6, 2024 that will close this issue
6 tasks
@Desvelao Desvelao closed this as completed Jun 7, 2024
@wazuhci wazuhci moved this from Pending review to Done in Release 4.9.0 Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants