The server now sends actor information the TUI does not display. Everything below is additive/omitempty, so the TUI's parsing is unaffected and nothing breaks; it just shows no actor.
Server fields to mirror (internal/api/types.go, internal/api/client.go)
IncidentEvent on assigned events (where user_id is the assignee): actor_user_id, actor_username, actor_service_account_id, actor_service_account_name. Absent for assignments made before v0.39.0.
New event types archived and unarchived (actor in user_id/service_account_id as for the other events).
Rendering
Incident view: "acknowledged by" falls back to the service-account name when acknowledged_by is empty.
Timeline: an event's actor is the user, else the service account, else nobody (the server acted). assigned reads "Assigned to X by Y" when an actor is present; add archived / unarchived lines.
The web UI's actorLabel / assignerLabel / eventText in terdut-server internal/web/static/js/incident.js is the reference.
No server version bump needed to detect this: the fields are simply absent against an older server.
The server now sends actor information the TUI does not display. Everything below is additive/omitempty, so the TUI's parsing is unaffected and nothing breaks; it just shows no actor.
## Server fields to mirror (`internal/api/types.go`, `internal/api/client.go`)
From terdut-server#25 (v0.37.2):
- `Incident`: `acknowledged_by_service_account_id`, `acknowledged_by_service_account`
- `IncidentEvent`: `service_account_id`, `service_account_name`
From terdut-server#35 (v0.39.0):
- `IncidentEvent` on `assigned` events (where `user_id` is the **assignee**): `actor_user_id`, `actor_username`, `actor_service_account_id`, `actor_service_account_name`. Absent for assignments made before v0.39.0.
- New event types `archived` and `unarchived` (actor in `user_id`/`service_account_id` as for the other events).
## Rendering
- Incident view: "acknowledged by" falls back to the service-account name when `acknowledged_by` is empty.
- Timeline: an event's actor is the user, else the service account, else nobody (the server acted). `assigned` reads "Assigned to X by Y" when an actor is present; add `archived` / `unarchived` lines.
- The web UI's `actorLabel` / `assignerLabel` / `eventText` in terdut-server `internal/web/static/js/incident.js` is the reference.
No server version bump needed to detect this: the fields are simply absent against an older server.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The server now sends actor information the TUI does not display. Everything below is additive/omitempty, so the TUI's parsing is unaffected and nothing breaks; it just shows no actor.
Server fields to mirror (
internal/api/types.go,internal/api/client.go)From terdut-server#25 (v0.37.2):
Incident:acknowledged_by_service_account_id,acknowledged_by_service_accountIncidentEvent:service_account_id,service_account_nameFrom terdut-server#35 (v0.39.0):
IncidentEventonassignedevents (whereuser_idis the assignee):actor_user_id,actor_username,actor_service_account_id,actor_service_account_name. Absent for assignments made before v0.39.0.archivedandunarchived(actor inuser_id/service_account_idas for the other events).Rendering
acknowledged_byis empty.assignedreads "Assigned to X by Y" when an actor is present; addarchived/unarchivedlines.actorLabel/assignerLabel/eventTextin terdut-serverinternal/web/static/js/incident.jsis the reference.No server version bump needed to detect this: the fields are simply absent against an older server.