VEuPathDB/web-monorepo

Clinepi MAP: using a filter with same variable as the marker variable is prone to errors

aurreco-uga opened this issue · 2 comments

cannot reproduce the error in vectorbase map

try:
https://clinepidb.org/ce/app/workspace/analyses/6QUfqKm/import
that is the error.

To reproduce.

  • remove filters, it all works. the marker variable is Village.
  • add a village filter with 1 value: eg: "Chhnaeng": marker panel shows only "Chhnaeng"
  • add another value, eg "Sraeampilleu": marker panel does NOT add "Sraeampilleu" (BUG)
  • now remove value "Chhnaeng" in filter: marker empty, we hit the 400
Screenshot 2024-07-15 at 12 07 26 PM

I believe this is related to how we handle when the subset changes. Selected marker config values are removed when they are not included in the subset filter. It may be related to filter sensitivity.

I think we should keep values not included in the subset filter. Without further investigation, I'm not sure how hard this will be. I plan to look at it in more detail soon.

This could also be due to the study having sparse geographic data.