outbreak-info / outbreak.info

During outbreaks of emerging diseases such as COVID-19, efficiently collecting, sharing, and integrating data is critical to scientific research. outbreak.info is a resource to aggregate all this information into a single location.
https://outbreak.info/
GNU General Public License v3.0
33 stars 13 forks source link

Remove prepopulated queries for https://outbreak.info/compare-lineages #604

Closed flaneuse closed 1 year ago

flaneuse commented 1 year ago

Right now, on the page load, https://outbreak.info/compare-lineages loads the variants of concern to compare, which is a decently heavy query.

Goals:

To improve the page load, we want to remove the curated lineages as the default condition if there's no pango parameter and force the user to request individual lineages instead. There are also a couple of bugs to fix at the same time.

Individual tasks:

  1. Stop a default pango parameter from being set on page load if it's empty
  2. Change the expansion panel to "change lineages" be open on page load
  3. Add buttons to add the current CURATED variants as variants Screenshot 2022-12-13 at 5 36 40 PM

⬆️ these tasks have been completed (I think) on the compare-lineage-no-preload branch

Additional tasks:

  1. Remove the sub parameter and the associated "include sublineages" checkbox option Screenshot 2022-12-13 at 5 39 43 PM
  2. Double check that refreshing a route loads the right parameters
  3. In box 2 (WHO VOC/VOI sublineages), remove the "clear and add X lineages" button.
  4. In boxes 2-5, don't trigger the route change/execution of the form, but just add the results to the selected lineages variable. The user will have to click "create report" to add them.
  5. If there's other bugs/issues you see, please suggest changes!
olekkorob commented 1 year ago

You mean 1,2,3 tasks are already done?

flaneuse commented 1 year ago

Yep, should be!

flaneuse commented 1 year ago

closed in #608