Done
Description
API v1 stores dynamics (a report's model assumptions: every parameter under gov.simulation., plus the US top-level simulation.) once per country, catalog version and content hash, with no name or description (#4325). Users need to save named dynamics and pick one per report, as they save named policies through user_policies.
What's needed
- A
user_dynamicstable built likeuser_policies, without its v1 reference,baselineandprovenance. It holds the owner (a signed-in user or a signed-out browser), the country, a dynamic stored in that country (RESTRICT), and a name and description. /v2/user-dynamicsroutes shaped like/v2/user-policies, with the same ownership rules, and the runtime role's grants.- Saved dynamics are treated like the other saved items: they're deleted with their user, move to the account at sign-in, and are listed in the account export.
v1 no longer writes saved policies (its saved-policy routes were removed on 2026-10-22), so no v1-to-v2 copy creates saved dynamics. The one-time migration of existing rows creates them.
Metadata
Metadata
Assignees
Labels
No labels
Activity