Add a staging mode and scope values to the selected MIP era - #87
Merged
Conversation
Adds a staging mode, driven by the `ENVIRONMENT` setting that `/api/v1/utils/about` now reports. A staging deployment carries a banner naming it as one, and drops the sample-size floor so a chart is drawn even when only one or two models have results. The MIP era a reader selects now reaches the values query rather than only the charts drawn from it. Outlier detection pooled CMIP6 and CMIP7 into one IQR group, so the selected era did not decide which values were flagged, and pagination counted both eras. The scalar and series value tabs carry the era selector too, so a table shows one era at a time. Also drops the model-family grouping behind the sparse-sample warning. The warning now counts distinct `source_id` values.
✅ Deploy Preview for climate-ref ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reachedNext included review available in 8 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (28)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Adds a staging mode, and fixes the MIP era selection so it reaches the values query rather than only the charts drawn from it.
Staging mode
/api/v1/utils/aboutnow reportsenvironment, taken from the existingENVIRONMENTsetting.ENVIRONMENT=staging.MIP era filtering
The era picker only split charts in the browser, so the backend never saw it.
/valuesnow takesmip_eraand scopes to that era's executions, plus any execution no era can be settled for, so unattributed values are not lost.Sparse-sample warning
Drops the model-family grouping. The warning now counts distinct
source_idvalues, so a chart drawn from fewer than ten models is flagged whatever centres they came from. The note on the era bar about the two eras not being comparable is gone as well.Checked against the fixture data: the banner renders, single-model charts plot on staging, and the scalar tab shows seven CMIP6 rows with nothing under CMIP7.