fix : added max length guard to achievement unlock array items (issue #1404) - #1409
Conversation
|
Warning Review limit reached
Next review available in: 57 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?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 reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. 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, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
Comment |
|
Thank you for your contribution! To keep reviews manageable and maintain repository quality, contributors may have a maximum of 3 open Issues and 3 open Pull Requests at any given time. Please wait until one of your existing submissions is reviewed or closed before opening additional ones. If you believe this was closed by mistake, feel free to contact the maintainers. |
Summary of What Has Been Done
Added a
.max(100)guard to theunlockedAchievementsarray item strings insavedAchievementsSchemainbackend/Input_validators/ValidateAchievement.js.Changes Made
backend/Input_validators/ValidateAchievement.js: Added.max(100, "Achievement ID must be at most 100 characters")to the achievement ID stringbackend/tests/achievementValidator.maxLength.unit.test.js: 6 unit tests covering max-length boundary casesImpact it Made
Closes #1404
Note: Please assign this PR to the
tmdeveloper007account.