chore(backend): drop pre-Reader metric-value code#42
Merged
Conversation
Removes the dead CSV/outlier helpers in core/metric_values.py and all of core/outliers.py, plus AnnotatedScalarValue from models.py. These were superseded by climate_ref.results.Reader and had no production caller left, only mock-based tests. Keeps the tests that cover live code: TestParseIdList and the build_scalar_from_reader/build_series_from_reader tests.
✅ Deploy Preview for climate-ref canceled.
|
📝 WalkthroughWalkthroughRemoved legacy outlier detection and annotated scalar-value helpers, deleted their tests, changed invalid ID parsing error propagation, and updated the changelog. ChangesLegacy metric-value cleanup
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
lewisjared
marked this pull request as ready for review
July 20, 2026 03:26
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.
Removes the dead metric-value helpers left behind by the results-reader adoption in #39.
core/metric_values.pytoMetricValueTypeandparse_id_list, the only symbols the routes still use.core/outliers.pyand theAnnotatedScalarValuemodel. Outlier detection now happens inside the reader viaOutlierPolicy.MetricValueCollectionbuilder tests still cover the live reader path.Net -1147 lines with no behaviour change. Direct tests for
core/reader_values.pyare planned as a follow-up.Summary by CodeRabbit
Removed Features
Bug Fixes
Chores