-
-
Notifications
You must be signed in to change notification settings - Fork 153
chore: update error message on get filters #1440
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
WalkthroughReplaced timestamp-derived filter_id generation with Ulid::new() in user filter handler. Standardized missing/unauthorized error message across get, update, and delete flows. Added Ulid import. No public API signatures changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant H as UsersHTTPHandler
participant S as FilterService
participant D as DB
rect rgba(230,250,230,0.6)
note over H: Create Filter
C->>H: POST /users/{id}/filters
H->>H: Ulid::new() -> filter_id
H->>S: Create(filter_id, payload, user)
S->>D: INSERT filter
D-->>S: OK
S-->>H: Created(filter_id)
H-->>C: 201 Created (filter_id)
end
sequenceDiagram
autonumber
participant C as Client
participant H as UsersHTTPHandler
participant S as FilterService
participant D as DB
note over H: Get/Update/Delete Filter
C->>H: GET/PUT/DELETE /users/{id}/filters/{filter_id}
H->>S: Fetch/Verify(filter_id, user)
S->>D: SELECT/UPDATE/DELETE
alt not found or unauthorized
S-->>H: Err
H-->>C: 404/403 "Filter does not exist or user is not authorized"
else success
S-->>H: OK
H-->>C: 200/204
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (3)
Comment |
Summary by CodeRabbit