Skip to content

feat: PC-20078 show createdAt in replay list - #520

Merged
bdw-nobl9 merged 2 commits into
mainfrom
PC-20078-replay-list-createdat
Jul 28, 2026
Merged

feat: PC-20078 show createdAt in replay list#520
bdw-nobl9 merged 2 commits into
mainfrom
PC-20078-replay-list-createdat

Conversation

@bdw-nobl9

@bdw-nobl9 bdw-nobl9 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Motivation

sloctl replay list drops the createdAt field that the replay list endpoint returns for each item, because the response struct has no matching field.

Summary

Added a CreatedAt field to ReplayListItem so createdAt is decoded from the endpoint response and appears in table, JSON, and YAML output.

Testing

sloctl replay list -o json against a live environment now includes createdAt on every row. elapsedTime is present for in-progress replays and absent while queued (both unchanged by this PR):

[
  {
    "slo": "payments-latency",
    "project": "reliability-demo",
    "createdAt": "2026-07-24T09:33:01Z",
    "elapsedTime": "1h47m0s",
    "retrievedScope": "34 Day",
    "retrievedFrom": "2026-06-19T23:55:01Z",
    "status": "in progress",
    "cancellation": "possible"
  },
  {
    "slo": "search-latency",
    "project": "reliability-demo",
    "createdAt": "2026-07-24T11:20:09Z",
    "retrievedScope": "34 Day",
    "retrievedFrom": "2026-06-19T23:55:09Z",
    "status": "queued",
    "cancellation": "blocked"
  }
]

Release Notes

sloctl replay list now shows createdAt for each replay. elapsedTime reflects the value returned by the API; with the accompanying server change it measures only the real process time, excluding time spent waiting in the queue, so replay list matches the web UI.

The replay list endpoint sends createdAt for each item; surface it in the
sloctl output. The server never sent queueTime or totalTime, so those fields
are not part of the response contract.
@bdw-nobl9
bdw-nobl9 requested a review from nieomylnieja as a code owner July 24, 2026 11:54
@github-actions github-actions Bot added bug Something isn't working go patch labels Jul 24, 2026
@bdw-nobl9 bdw-nobl9 changed the title fix: show createdAt in replay list feat: show createdAt in replay list Jul 24, 2026
@github-actions github-actions Bot added enhancement New feature or request minor labels Jul 24, 2026
@bdw-nobl9 bdw-nobl9 changed the title feat: show createdAt in replay list feat: PC-20078 show createdAt in replay list Jul 24, 2026
@nieomylnieja nieomylnieja removed bug Something isn't working patch labels Jul 24, 2026
@bdw-nobl9
bdw-nobl9 enabled auto-merge (squash) July 28, 2026 07:27
@bdw-nobl9
bdw-nobl9 removed the request for review from nieomylnieja July 28, 2026 07:28
@bdw-nobl9
bdw-nobl9 merged commit 7cffb8e into main Jul 28, 2026
5 checks passed
@bdw-nobl9
bdw-nobl9 deleted the PC-20078-replay-list-createdat branch July 28, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants