Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

[Feature] Enable to filter the data for searchable dropdown filters by the filter values (backend) #2676

Closed rrchai closed 1 month ago

rrchai commented 1 month ago

What product(s) is this feature for?

OpenChallenges

Description

The searchable dropdown filter will only query a limited amount of data initially. If user copy&paste the url with pre-selected param for the filters, the filter will show "empty" - related to the bug #2648.

I propose a solution to pre-query the selected values in URL params and add to the filter options.

For example, if the url is /challenge?inputDataTypes=1000, it should trigger to load the inputDataTypes whose id is 1000, so that the filter can show proper selected values before or after opening up the dropdown options.

The purpose of this ticket is mainly for the backend to support the above solution.

Anything else?

No response

Code of Conduct