Repository navigation
fix(ingest): a set's description names its method, not the producer's record - #1301
Merged
Merged
Conversation
… record
ingest_method_predictions wrote the producer's whole record into the
prediction set's description ("The predictions of method {'name': ...,
'driver': ..., ...}"), and the public page of the set shows that text.
The description now names the method; the record stays in meta, where
the seal reads it as identity. A record without a name reads as "an
unnamed method".
The text moves to a helper, which also keeps execute under the 60-line
limit of the smells gate.
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (83.90%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #1301 +/- ##
===========================================
- Coverage 85.69% 85.64% -0.05%
===========================================
Files 471 471
Lines 37374 37411 +37
===========================================
+ Hits 32026 32040 +14
- Misses 5348 5371 +23
🚀 New features to boost your workflow:
|
frapercan
marked this pull request as ready for review
November 24, 2026 16:57
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.
What was wrong
ingest_method_predictionswrote the producer's whole record into the prediction set's description, so the public page of the champion's set read:The change
_set_descriptionbuilds the text from the method's name: "The predictions of method own-annotations-ranked-coan-lafa-194, ingested from a file hashing to ...". A record without a name reads as "an unnamed method".meta["producer"], which the seal reads as identity. No identity field changes.executeunder the 60-line limit of the smells gate.The sets already written keep their old text until it is corrected in each store; that is a data fix, separate from this PR.
Tests
test_the_description_names_the_method_not_its_recordpins the text and that no dict is printed.tests/test_ingest_method_predictions.py,tests/test_register_ingested_method.pyandtests/test_run_lab_method.pypass.