Skip to content

fix: allow 0 as valid feedback rating#1000

Merged
wakonig merged 1 commit into
mainfrom
fix/feedback_zero_rating
Jul 8, 2026
Merged

fix: allow 0 as valid feedback rating#1000
wakonig merged 1 commit into
mainfrom
fix/feedback_zero_rating

Conversation

@wakonig

@wakonig wakonig commented Jul 8, 2026

Copy link
Copy Markdown
Member

No description provided.

@wakonig wakonig requested review from a team and Copilot July 8, 2026 10:27
@wakonig wakonig enabled auto-merge (rebase) July 8, 2026 10:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the FeedbackMessage schema to treat a rating of 0 as valid, which broadens accepted user feedback inputs (e.g., supporting “no rating” / “neutral” semantics) while keeping existing upper bounds intact.

Changes:

  • Updated FeedbackMessage docstring to document rating as 0–5.
  • Relaxed Pydantic validation for FeedbackMessage.rating from ge=1 to ge=0 (still le=5).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread bec_lib/bec_lib/messages.py
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wyzula-jan wyzula-jan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0!!!!

@wakonig wakonig merged commit fac3a38 into main Jul 8, 2026
55 of 57 checks passed
@wakonig wakonig deleted the fix/feedback_zero_rating branch July 8, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants