Allow rescorings to same category again#467
Conversation
Useful to allow commenting on findings without re-rating. Signed-off-by: Philipp Heil (zkdev) <philipp.heil@sap.com>
|
Warning Review limit reached
More reviews will be available in 59 minutes and 8 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. 📝 WalkthroughWalkthrough
ChangesCustom rescoring comment requirement refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/rescoring.js (1)
3659-3661:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winUpdate stale filtering text to match selection-based submission.
allowedRescoringsnow filters by explicit selection, but the inline comment and footer tooltip still describe the old “categorisation did not change” rule. That is misleading now that same-category/comment-only rescorings are valid.Suggested copy update
- // only rescorings are allowed iff their severity has changed OR they allow a custom due date - // input and the due date has changed + // only selected rescorings that are still visible after filtering are submitted return ( selectedRescorings.find((r) => rescoringIdentity(r) === rescoringIdentity(rescoring)) )- `${filteredOutRescoringsLength} ${pluralise('rescoring', filteredOutRescoringsLength, 'is', 'are')} - filtered out or the categorisation did not change` + `${filteredOutRescoringsLength} ${pluralise('rescoring', filteredOutRescoringsLength, 'is', 'are')} + currently filtered out`Also applies to: 3857-3861
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/rescoring.js` around lines 3659 - 3661, The inline comment at src/rescoring.js lines 3659-3661 and the footer tooltip at src/rescoring.js lines 3857-3861 both describe an outdated filtering rule about categorization changes. Since allowedRescorings now filters by explicit user selection rather than automatically excluding unchanged-category rescorings, update both the inline comment and footer tooltip text to accurately reflect that the filtering is selection-based and that same-category or comment-only rescorings are valid when explicitly selected by the user.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@src/rescoring.js`:
- Around line 3659-3661: The inline comment at src/rescoring.js lines 3659-3661
and the footer tooltip at src/rescoring.js lines 3857-3861 both describe an
outdated filtering rule about categorization changes. Since allowedRescorings
now filters by explicit user selection rather than automatically excluding
unchanged-category rescorings, update both the inline comment and footer tooltip
text to accurately reflect that the filtering is selection-based and that
same-category or comment-only rescorings are valid when explicitly selected by
the user.
Now that rescorings to the very same category are allowed again, we cannot rely on the severity-did-change semantic any longer to control validation. Instead, only validate those which are selected and intended to be sent to backend. Signed-off-by: Philipp Heil (zkdev) <philipp.heil@sap.com>
What this PR does / why we need it:
Useful to allow commenting on rescorings, without actually applying a re-rating.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:
Rescorings can now be rescored to the very same category, allowing "comment-only" rescorings.