BioplatformsAustralia / bpaotu

OTU database access for the Australian Microbiome
GNU Affero General Public License v3.0
5 stars 1 forks source link

Contextual filter fixes and improvements #259

Closed drollins closed 1 year ago

drollins commented 1 year ago

Fix two issues happening with contextual filters:

  1. Tooltips not working for description of each filter

This was caused by changes to the contextualdb_doc spreadsheet. The bpaotu web app was looking for the contextual definitions in the first sheet of this spreadsheet. So the addition of the Readme sheet as the first sheet (which is the most intuitive place for it) broke things.

Now bpaotu looks for the "Schema" sheet with the highest version number. It assumes the format is "Schema".

  1. Behaviour of sample integrity warnings filter was not intuitive when using "any" option when multiple filters exist

Old behaviour was as an example: depth filter OR ammonium filter OR sample integrity warning filter

When this would rarely be what the user wanted, and the intended behaviour would be: (depth filter OR ammonium filter) AND sample integrity warning filter

Now the sample integrity warnings filter is applied separately to the contextual filters, so if present it will always be added with AND