-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Provide settings to control multifilter initial selection #3905
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ Failures
This comment has been generated by cypress-bot as a result of your project's GitHub integration settings. You can manage this integration in your project's settings in the Cypress Dashboard |
Thank you for taking a stab at this, @kewisch. It seems that this is local to a specific table visualization, but filters are at the query level (i.e. same filters apply to all the visualizations of the same query). It's also unclear how this will work on dashboards. We been doing a lot of work on improving parameters and I wonder if you could replace your use of filters with parameters once they support multi-select? (#3952) |
@kewisch did you see my previous comment? |
Hi @arikfr sorry for the delay. I think a lot of this can be covered by the multi-value query filter, possibly with some small features in addition. I've checked the gifs and it seems possible to add multiple values either based on a string list or a query. This is a great start and would allow me to replicate what filters can do now. What I am missing, apologies if I missed this, is a feature that would auto-select all values in the multi-select when the query is executed. Is this something possible with #3952 ? |
Not at the moment. |
What type of PR is this? (check all applicable)
Description
Back in #608 there was a hidden feature to pre-select all entries in a multi-filter, which got removed when migrating the filters to react. I heavily depend on this and would like to see it come back. I think it would make sense to fix this in a less hacky way, using column metadata.
In below screenshot, the priority and status columns are multi-filters, therefore they have an extra dropdown to select one of "first", "all", or "none". Selecting "first" uses the current behavior to select the first value, "all" and "none" are self-explanatory.
To-Do
Discussion items
I'm not particularly happy about how
setFilterDefaults
runs after the filters are gathered in the query result service and after the options are retrieved. Changing this may require some refactoring, but before I start with that I'd like to get some feedbackThe second thing that will require some discussion, how to do dashboard level filters. These don't have access to a specific visualization, so if two visualizations have different defaults for the default state for a multi-filter column then there is a conflict. Also, it doesn't seem like the specific visualizations are available at the time the filters are determined, similar to the first discussion point.
Looking forward to your thoughts.
Related Tickets & Documents
TBD
Mobile & Desktop Screenshots/Recordings (if there are UI changes)