- Notifications
You must be signed in to change notification settings - Fork1k
Open
Labels
Description
Summary
We need a backend endpoint to collect and storeuser feedback related to tasks.
This data should be integrated into ourtelemetry system — transmitted to Coder via existing telemetry mechanisms — while also being storedlocally for admins to analyze internally.
Endpoint
POST /api/v2/experimental/tasks/<task-id>/feedback
Behavior
- Records user feedback for a given task.
- Theuser is determined from the current authenticated session.
- Thetask_id is passed via the URL.
- Feedback istransmitted via telemetry.
Payload
{"rate":"good"| "regular" | "bad" | 1–10,"comment":"string","task_id":"uuid","user_id":"uuid"// derived from session}
Note:
Therate
field supports both ENUM values (good
,regular
,bad
) and numeric values (1–10) for flexibility and potential integration with success metrics such asNPS.
UI Reference
The frontend will use the following UI to collect and send feedback:
