openclimatefix / quartz-frontend

Front End repo for the Nowcasting project.
https://openclimatefix.org/projects/nowcasting/
MIT License
103 stars 16 forks source link

v0.4.9: Map colour data bugfix #477

Closed braddf closed 7 months ago

braddf commented 7 months ago

Pull Request

Description

Fix for bug where map flashes data/colours in and out after initial load and on various data change states. Issue was down to the way the data update function in the map was being called, whereby I had added a timeout to wait for the map styles to be initialised and be ready for the data, but in so doing had allowed this to be called repeatedly and introduce runaway spamming of the update function. Now, if it is already waiting for the map to init, it shouldn't create another timeout.

Fixes #455

How Has This Been Tested?

UAT

Probabilistic Charts

Quartz-specific points

PV Forecast

National

Time

Header

GSP

Time

Title

Map

Four Hour View

National

Delta View

National

Time

Header

GSP

Time

Title

Map

Combined views

Dashboard Mode

National

GSP

Legend

Map

General

Auth

Refresh

Documentation

Checklist:

vercel[bot] commented 7 months ago

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

Name Status Preview Updated (UTC)
nowcasting-app ✅ Ready (Inspect) Visit Preview Feb 28, 2024 5:03pm
quartz-app ❌ Failed (Inspect) Feb 28, 2024 5:03pm