MCPcopy Index your code
hub / github.com/coder/coder / TouchChatDebugRunUpdatedAt

Method TouchChatDebugRunUpdatedAt

coderd/database/querier.go:1145–1145  ·  view source on GitHub ↗

Overrides updated_at on the parent run without touching any other column. Used by tests that need to stamp a run with a specific timestamp after the InsertChatDebugStep CTE has already bumped it to NOW(), so stale-row finalization paths can be exercised deterministically. The chatdebug service itsel

(ctx context.Context, arg TouchChatDebugRunUpdatedAtParams)

Source from the content-addressed store, hash-verified

1143 // TouchChatDebugStepAndRun, and step creation updates the parent
1144 // run via the InsertChatDebugStep CTE.
1145 TouchChatDebugRunUpdatedAt(ctx context.Context, arg TouchChatDebugRunUpdatedAtParams) error
1146 // Atomically bumps updated_at on both the step and its parent run
1147 // in a single statement. This prevents FinalizeStale from
1148 // interleaving between the two touches and finalizing a run whose

Callers 4

TestChatsMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 2

TestChatsMethod · 0.52