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

Method GetChatDebugRetentionDays

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

Chat debug run retention window in days. 0 disables.

(ctx context.Context, defaultDebugRetentionDays int32)

Source from the content-addressed store, hash-verified

359 GetChatDebugLoggingAllowUsers(ctx context.Context) (bool, error)
360 // Chat debug run retention window in days. 0 disables.
361 GetChatDebugRetentionDays(ctx context.Context, defaultDebugRetentionDays int32) (int32, error)
362 GetChatDebugRunByID(ctx context.Context, id uuid.UUID) (ChatDebugRun, error)
363 // Returns the most recent debug runs for a chat, ordered newest-first.
364 // Callers must supply an explicit limit to avoid unbounded result sets.

Callers 8

purgeTickMethod · 0.65
TestPurgeFunction · 0.65
TestMetricsFunction · 0.65
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 4

TestPurgeFunction · 0.52
TestMetricsFunction · 0.52
TestChatsMethod · 0.52