Add methods for self-service API#305
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: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ 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 |
|
PR builder started |
|
PR builder completed |
This pull request refactors the consent validation and authorization logic in the
UserConsentServiceclass to delegate user validation directly to theConsentManagerlayer, and updates the dependency version for the consent management module. The main changes simplify the service layer by removing redundant validation code and ensuring that user-specific operations are handled at the manager level.Key changes:
Refactoring validation and authorization logic:
consentManager.getReceiptWithExtendedSchemaand related methods to include thesubjectIdparameter, allowing the manager to handle user validation directly instead of performing ownership and authorization checks in the service layer.validateOwnership,validateAuthorizer, and related helper methods fromUserConsentService, streamlining the code and reducing duplication of validation logic.Dependency update:
carbon.consent.mgt.versionproperty inpom.xmlfrom2.9.10to2.9.14to align with the new validation approach and ensure compatibility.