visualize-admin / visualization-tool

The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
https://visualize.admin.ch
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

perf: Load PossibleFilters upfront #1429

Closed bprusinowski closed 5 months ago

bprusinowski commented 5 months ago

This PR tackles the first point of #1423 to initialize chart config with filters that make sense (only applicable when starting a chart from scratch).

While in some cases it will improve performance, in other cases it might decrease it (depending on the scale of a cube / number of dimensions, etc) – but generally it should increase UX to never show a chart w/o observations.

How to test

PR

  1. Go to this link.
  2. Watch closely that the first chart that loads is not empty.

TEST

  1. Go to this link.
  2. Watch closely that the first chart that loads is empty, and is reloaded automatically afterwards.
vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 3:00pm