Commit 2d0dc3b
Forward user_id as query param on holmes_feedback
Holmes' POST /api/feedback reads user_id from request.query_params, not
the JSON body (mirrors /api/chat's resolution path used by the relay).
Posting it in the body returns 400 "missing user_id". Pull user_id out
of the action params and forward it via the URL query string.
- Declare user_id: Optional[str] on HolmesFeedbackParams so it's
discoverable; pop it before constructing the request body.
- Update tests to assert user_id is on params= and not in the body.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8ce1a18 commit 2d0dc3b
3 files changed
Lines changed: 12 additions & 0 deletions
File tree
- src/robusta/core
- model
- playbooks/internal
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
448 | 451 | | |
| 452 | + | |
449 | 453 | | |
450 | 454 | | |
451 | 455 | | |
452 | 456 | | |
| 457 | + | |
453 | 458 | | |
454 | 459 | | |
455 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| 267 | + | |
| 268 | + | |
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| |||
0 commit comments