creativecommons / legaldb

CC Legal Database: curated repository of Case Law and Scholarship data from around the world in a Django based website.

Home Page:https://LegalDB.CreativeCommons.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

filter by topics- on cases

palak199 opened this issue · comments

commented

Description

whenever I select one topic and then another, the results of the second topic get appended to first

Expectation

I think it can be confusing for the user, so it is expected either the resultant rows are intersection of topics, or the previous topics get unselected when a new topic is clicked upon (even if the user forgets to do so)

Screenshots

on selecting first only
Screenshot from 2020-10-14 16-47-25

on selecting second only
Screenshot from 2020-10-14 16-47-17

screenshot when two topics are selected
Screenshot from 2020-10-14 16-47-12

Resolution

  • I would be interested in resolving this bug.

It's made on purpose since there are few resources available at the moment, changing the filter to the intersection of topics will result in many empty tables.

This may change in the future though. I'll wait to know the opinion of @kgodey & @TimidRobot.

commented

@krysal sure! but till it gets changed, can't we make the previous results disappear once a new selection is made?

I think it's better to have the functionality as-is, if people want to select only a single topic, then they can unselect the previous topic manually. This gives them more filtering options by allowing them to find cases that match one of several topics.