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

When sorting a list with a filter without value being selected, sorting works but also opens the filter. #5263

Closed
nino-filigran opened this issue Dec 19, 2023 · 1 comment
Labels
bug use for describing something not working as expected duplicate use to identify issue already existing filters temporarily used to identify filter issue to facilitate filter team’s work identification

Comments

@nino-filigran
Copy link

nino-filigran commented Dec 19, 2023

Description

When I'm on a list view of OpenCTI and I have a filter (without value, but at least, a filter chosen) and I'm clicking on a column to sort it (DESC / ASC ), my column gets sorted but the filter box gets opened.

The steps to reproduce are tricky. Please contact me if need be.

Environment

Demo environnement

Reproducible Steps

Scenario 1: In a screen without filter chosen

  1. Select a filter
  2. Do not interact with the filter (do not change operator nor the value)
  3. Sort a column
  4. The column gets sorted and the filter box opens

Scenario 2: In a screen with a filter that has already a value

  1. Select a filter
  2. Provide a value to a filter
  3. Navigate to another page
  4. Go back to the page
  5. Delete all filters in the screen
  6. Add a new filter
  7. Do not interact with the filter (do not change operator nor the value)
  8. Sort a column
  9. The column gets sorted and the filter box opens

Scenario 3: In a screen with a filter without value but that you have interacted with

  1. Provide a value to a filter
  2. Remove the value of the filter
  3. Keep the filter empty in that page
  4. Navigate to another page
  5. Go back to that page
  6. Delete all filters on the page
  7. Add a new filter
  8. Do not interact with the filter (do not change operator nor the value)
  9. Sort a column
  10. The column gets sorted and the filter box opens

Expected Output

Only the column gets sorted, the filter box should not opened

Actual Output

The filter box gets opened.

@nino-filigran nino-filigran added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team filters temporarily used to identify filter issue to facilitate filter team’s work identification and removed needs triage use to identify issue needing triage from Filigran Product team labels Dec 19, 2023
@jpkha
Copy link
Member

jpkha commented Dec 19, 2023

just fixed it and merge. Can you try again ? I think it's the same: #5254

@jpkha jpkha closed this as completed Dec 20, 2023
@SamuelHassine SamuelHassine added the duplicate use to identify issue already existing label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected duplicate use to identify issue already existing filters temporarily used to identify filter issue to facilitate filter team’s work identification
Projects
None yet
Development

No branches or pull requests

3 participants