-
Notifications
You must be signed in to change notification settings - Fork 19
fix: remove incorrect authorization stage #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe staging-area service removed its internal authorization processing step. The private processAuthorizationStage method and its invocation were deleted. Event processing now proceeds directly to handling the PDU and notifying clients without performing the previously embedded authorization checks. No public API signatures were changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant StagingAreaService as StagingAreaService
participant PDUHandler as PDU Handler
participant Notifier as Client Notifier
rect rgb(240,248,255)
note over StagingAreaService: Previous flow (with authorization stage)
Client->>StagingAreaService: Submit event
StagingAreaService->>StagingAreaService: Authorization stage (removed)
alt Authorization OK
StagingAreaService->>PDUHandler: Process PDU
PDUHandler-->>StagingAreaService: Result
StagingAreaService->>Notifier: Notify clients
else Authorization missing/error
StagingAreaService-->>Client: Error / postpone
end
end
rect rgb(245,255,240)
note over StagingAreaService: New flow (authorization stage removed)
Client->>StagingAreaService: Submit event
StagingAreaService->>PDUHandler: Process PDU
PDUHandler-->>StagingAreaService: Result
StagingAreaService->>Notifier: Notify clients
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
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 |
This reverts commit 21ec7b9.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #279 +/- ##
=======================================
Coverage 60.46% 60.46%
=======================================
Files 67 67
Lines 6673 6673
=======================================
Hits 4035 4035
Misses 2638 2638 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
auth is part of
handlePdu, as long as events are processed in order, auth check is done there, this method was wrong.Summary by CodeRabbit
Performance Improvements
Refactor