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

No data when unselecting filtered options for normal filters #2746

Closed
4 of 11 tasks
EffpehKah opened this issue May 7, 2024 · 2 comments
Closed
4 of 11 tasks

No data when unselecting filtered options for normal filters #2746

EffpehKah opened this issue May 7, 2024 · 2 comments
Assignees
Labels
Bug Something isn't working Help wanted We could use some help with this Javascript Pull requests that update Javascript code

Comments

@EffpehKah
Copy link

EffpehKah commented May 7, 2024

Describe the bug

When selecting something in a filter it filters nicely but doesn't show anything if you unselect the before filtered option. (normal filter, not advanced)

Steps to Reproduce

  1. Create a working filter with for example boolean options.
  2. Select options and filter your data.
  3. Untick the before selected options
  4. See no data being displayed.

Expected behavior & Actual behavior

When removing the selection it should behave like resetting the entire filter and show all the data that was there before filtering.

Models and resource files

System configuration

Avo version: 3.7.0

Rails version: 7.1.3.2

Ruby version: 3.3.1

License type:

  • Community
  • Pro
  • Advanced

Are you using Avo monkey patches, overriding views or view components?

  • Yes. If so, please post code samples.
  • No

Impact

  • High impact (It makes my app un-usable.)
  • Medium impact (I'm annoyed, but I'll live.)
  • Low impact (It's really a tiny thing that I could live with.)

Urgency

  • High urgency (I can't continue development without it.)
  • Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)
Copy link
Contributor

This issue has been marked as stale because there was no activity for the past 15 days.

@github-actions github-actions bot added the Stale label May 26, 2024
@adrianthedev
Copy link
Collaborator

This bug is reproduceable on the avodemo app from this URL.

I see what you mean @EffpehKah.

Unfortunately we can't prioritize fixing this right now.
We'd need to "hold the default state" and check that in the JS controller.

The temporary fix is to reset the filters manually from the UI or to update the apply method to take that particular case into consideration and apply the query propery (or not apply the query at all).

I'm closing this to keep the issue queue clean, but let's keep the conversation open.

PS: We will take a PR if anyone wants to fix this.

@adrianthedev adrianthedev added Bug Something isn't working Help wanted We could use some help with this Javascript Pull requests that update Javascript code and removed Stale labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Help wanted We could use some help with this Javascript Pull requests that update Javascript code
Projects
Status: Done
Development

No branches or pull requests

4 participants