opentargets / issues

Issue tracker for Open Targets Platform and Open Targets Genetics Portal
https://platform.opentargets.org https://genetics.opentargets.org
Apache License 2.0
12 stars 2 forks source link

Multiselect button causes Metrics app to crash #3254

Open ireneisdoomed opened 3 months ago

ireneisdoomed commented 3 months ago

Describe the bug Compare metrics tab crashes when selecting the two runs for comparison at the same time.

Observed behaviour The work done in https://github.com/opentargets/ot-release-metrics/pull/28 introduced this weird behaviour that can lead to the metrics app crashing:

Expected behaviour The error happens because the selector needs to update the masks_run state one selection at a time.

This is minor. To avoid the error simply:

To Reproduce Steps to reproduce the behaviour:

  1. Go to https://open-targets-metrics.streamlit.app/
  2. Click on Compare metrics
  3. Choose 24.03 as major release ID
  4. Select 24.03_2024-03-05 and 24.03_2024-02-22 in the dropdown menu
  5. See error