Conversation
The body's user field still chose whose feed /private-api/notifications read after a code validated, so a signed-in caller could ask for another account. The account now comes only from ValidateCode, matching UnreadNotifications. A body that names someone else is ignored, and the upstream path segments stay percent-encoded. Co-authored-by: hivetrending <hiveuprss@users.noreply.github.com>
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID:
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 Summary by QodoServe notifications only for the validated account
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Deck columns mislabel notifications
|
| _ = requestedUser; | ||
| return (validatedUsername, true); |
There was a problem hiding this comment.
2. Notification changes lack a parity record 📘 Rule violation ▣ Testability
ResolveNotificationsTarget now ignores the body's user field and serves the validated account, but this endpoint has no corresponding entry in the parity divergence list. Requests that name another account now produce a different upstream path than the reference implementation, while the parity harness has no record explaining that intentional difference.
Agent Prompt
## Issue description
The notifications handler changes which account is served when the body names someone other than the validated account, but the parity harness does not document the difference from the reference implementation.
## Fix Focus Areas
- dotnet/EcencyApi/Handlers/PrivateApi.UserData1.cs[36-39]
- dotnet/parity/driver.py[273-342]
## Recommended Fix
Add a notifications entry to the parity divergence list that names the endpoint and explains the validated-account behavior versus the reference implementation. Keep the endpoint tests covering that behavior.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| _ = requestedUser; | ||
| return (validatedUsername, true); |
There was a problem hiding this comment.
1. Deck columns mislabel notifications 🔗 Cross-repo conflict ≡ Correctness
ResolveNotificationsTarget now ignores the body's user and returns the validated account with full scope. In vision-web, a notifications deck column sends its selected account as user alongside the signed-in account's code, then displays the returned feed under the selected account's name.
Agent Prompt
## Issue description
Vision-web's notifications deck requests a selected account's feed using the signed-in account's code. The API now returns the signed-in account's feed instead, which the deck labels as the selected account.
## Fix Focus Areas
- dotnet/EcencyApi/Handlers/PrivateApi.UserData1.cs[28-39]
- apps/web/src/app/decks/_components/columns/deck-notifications-column.tsx[94-115]
- packages/sdk/src/modules/private-api/requests.ts[105-139]
## Recommended Fix
Keep code-validated access restricted to its own account. Coordinate a vision-web change so cross-account deck columns use an explicitly supported restricted public feed, or disable that selection; reject mismatched `user` values in the API rather than silently returning a differently named account's feed.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
The body's user field still chose whose feed /private-api/notifications read after a code validated, so a signed-in caller could ask for another account. The account now comes only from ValidateCode, matching UnreadNotifications. A body that names someone else is ignored, and the upstream path segments stay percent-encoded.