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

[BUG] Data table vis applies wrong filter when sorted #4836

Closed
evamillan opened this issue Aug 28, 2023 · 0 comments · Fixed by #4837
Closed

[BUG] Data table vis applies wrong filter when sorted #4836

evamillan opened this issue Aug 28, 2023 · 0 comments · Fixed by #4837
Assignees
Labels
bug Something isn't working

Comments

@evamillan
Copy link
Contributor

Describe the bug
If you sort a data table by one of its columns and then filter for a value using the + button on a cell, it applies the filter with the original value on that cell instead of the current one. It looks like the sorting is handled in-memory by the table, but the cell actions are rendered separately using the order from the API call response.

To Reproduce
Steps to reproduce the behavior:

  1. Create a data table visualization
  2. Click on 'Sort asc' or 'sort desc' on a table column header
  3. Click on the + button on a cell to filter for that value
  4. The value on the filter is different from the one on the cell

Expected behavior
The filter should use the value that is currently displayed on the cell.

OpenSearch Version
2.9.0

Dashboards Version
2.9.0

Screenshots
osd-table-filters

Host/Environment (please complete the following information):

  • OS: Ubuntu
  • Browser and version: Firefox 116.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants