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

Method ArchiveChatByID

coderd/database/querier.go:59–59  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

57 // AllUserIDs returns all UserIDs regardless of user status or deletion.
58 AllUserIDs(ctx context.Context, includeSystem bool) ([]uuid.UUID, error)
59 ArchiveChatByID(ctx context.Context, id uuid.UUID) ([]Chat, error)
60 // Archiving templates is a soft delete action, so is reversible.
61 // Archiving prevents the version from being used and discovered
62 // by listing.

Callers 15

TestUnarchiveChatFunction · 0.65
TestSubmitToolResultsFunction · 0.65
patchChatMethod · 0.65
TestChatPinOrderQueriesFunction · 0.65
ArchiveChatByIDMethod · 0.65
TestPurgeChatDebugRunsFunction · 0.65
TestDeleteOldChatFilesFunction · 0.65
ArchiveChatByIDMethod · 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 12

TestUnarchiveChatFunction · 0.52
TestSubmitToolResultsFunction · 0.52
TestChatPinOrderQueriesFunction · 0.52
TestPurgeChatDebugRunsFunction · 0.52
TestDeleteOldChatFilesFunction · 0.52
TestChatsMethod · 0.52
TestUnarchiveChildChatFunction · 0.52