Conversation
`collections_app_url` carries the collection's ID and locale only; the title and the scenario IDs are no longer part of it. Responses include `scenarios`, listing every scenario in the order it is shown and pairing each with the saved scenario it came from. It is read-only, so `scenario_ids` and `saved_scenario_ids` remain the way to change what a collection holds. `interpolation_params.end_years` comes from the collection's saved scenarios rather than from the collection's own `end_year` field, so the note describing it now says which of the two values comes from where. The transition path example shows a collection whose scenarios are all saved scenarios. Adds notes on who may read a collection, and on transition paths: they hold one saved scenario per end year, this endpoint does not interpolate, and a client setting `interpolation` must pass no more than one scenario per end year, all in a single area.
This was referenced Sep 8, 2026
aaccensi
marked this pull request as ready for review
September 8, 2026 12:01
louispt1
reviewed
Sep 9, 2026
louispt1
left a comment
Member
There was a problem hiding this comment.
I believedata/api/collections.js needs adjusting as well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
The Collections URL worked by defining the
etenginesession ids and the title (a link could be hand-crafted to show any scenarios under any heading). The current wish is to have the URL contain the collection id instead and then fetch the corresponding session ids with themy-etmAPI; yet keep the previous behaviour alive for compatibility with older links.Implemented changes
collections_app_urlcarries the collection's ID and locale only; the title and the scenario IDs are no longer part of it.scenarios, listing every scenario in the order it is shown and pairing each with the saved scenario it came from. It is read-only, soscenario_idsandsaved_scenario_idsremain the way to change what a collection holds.interpolation_params.end_yearscomes from the collection's saved scenarios rather than from the collection's ownend_yearfield, so the note describing it now says which of the two values comes from where. The transition path example shows a collection whose scenarios are all saved scenarios.interpolationmust pass no more than one scenario per end year, all in a single area.Related
This is part of a 3 PRs effort:
Checklist