Repository navigation
fix: Use the LabelView labeler field in majority vote resolution - #7213
ShivamSharma43 wants to merge 2 commits into
Conversation
_resolve_majority_vote hardcoded the labeler column. With another labeler_field, the resolved row named one of the labelers or lost the column, and a label called labeler was overwritten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Shivam Sharma <192242476+ShivamSharma43@users.noreply.github.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
There was a problem hiding this comment.
🔍 Devin Review: 2 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7213 +/- ##
==========================================
+ Coverage 54.10% 54.13% +0.02%
==========================================
Files 467 467
Lines 58940 58940
Branches 8688 8688
==========================================
+ Hits 31890 31907 +17
+ Misses 24892 24865 -27
- Partials 2158 2168 +10
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
What this PR does / why we need it:
MAJORITY_VOTEresolution ofLabelViewlabels hardcodes the"labeler"column instead of using the view'slabeler_field.resolve_conflictsreceiveslabeler_fieldbut only passes it on forLABELER_PRIORITY.With the default
labeler_field="labeler", the resolved row getslabeler = "majority_vote". Withlabeler_field="annotator":annotatoris resolved like a label, so the row is attributed to whoever wrote the most rows. In the new test, that isalice, who wrote one of the two winning labels and the losing one.feature_name_columns, theannotatorcolumn is missing from the result.labeleris overwritten with"majority_vote".This affects the UI server's
/list-labelsand/label-qualityendpoints, which pass the view'slabeler_field. The resolver now marks that column instead. Views with the default field behave as before.Which issue(s) this PR fixes:
No issue filed; found while reading the labeling code.
Checks
git commit -s)Testing Strategy
Unit tests
Integration tests
Manual tests
Testing is not required for this change
New
sdk/python/tests/unit/test_label_conflict_resolver.py: on master 3 of its 5 cases fail, with the fix all pass. The other two cover the defaultlabelerfield and pass both ways.test_label_view.pypasses. The UI server endpoints were not run.ruff check,ruff formatandmypy feast/labeling/are clean.Misc
This change was prepared with AI assistance (Claude Code), which also ran the tests listed above.
🤖 Generated with Claude Code