Bug: RT Speedmaps URLs can change when agencies are added/removed/re-ordered, breaking reports site links #754
Labels
admin
Administrative work
bug
Something isn't working
portfolio work
Work related to the analytics portfolio
Where did the bug occur?
Select from the below, and be sure to affix the appropriate label to this issue (e.g.
dataset
,jupyterhub
,metabase
,analytics.calitp.org
)Describe the bug
Currently, the reports data generation code creates a mapping between agencies and their URLs on the speedmaps analysis site. However, this mapping can become stale if new agencies are added to the analysis site and URLs change. This is because the URLs include an enumerated index integer, which can change if the order of sections change.
To Reproduce
Steps to reproduce the behavior:
Deploy the RT speedmaps portfolio site after adding additional agencies, and notice that the reports site speedmap URLs remain unchanged while the actual analysis site has changed.
Expected behavior
We need to make the URLs more deterministic, or fetch the speedmaps URLs dynamically in the reports code.
Additional context
https://cal-itp.slack.com/archives/C034EJ0KX8S/p1682010289859259
The text was updated successfully, but these errors were encountered: