Cytomine-Web-UI icon indicating copy to clipboard operation
Cytomine-Web-UI copied to clipboard

Do not search annotations where term is disabled.

Open geektortoise opened this issue 4 years ago • 1 comments

Currently, the search is made independently of the terms.

If we unselect a term, we still ask back-end to search for all annotations (including this term) and mask them.

  1. It will be better for performance to search for the displayed terms.
  2. A consequence is that for clusters, the count is "false". We display the number of all the clustered annotations including the masked one... Even if we ask to see only one term with few annotation (and in this case, a cluster is not to display (i.e. the back-end will not return the cluster information)).

geektortoise avatar Nov 05 '19 15:11 geektortoise

Commit https://github.com/cytomine/Cytomine-Web-UI/commit/9a2b55e1377f9cf1d9fc335b1fa18c555a14a216 seems to fix the issue. I will do more tests when I'm able to.

geektortoise avatar Sep 10 '20 15:09 geektortoise