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

Method GetChatDebugRunsByChatID

coderd/database/dbauthz/dbauthz.go:2915–2924  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetChatDebugRunsByChatIDParams)

Source from the content-addressed store, hash-verified

2913}
2914
2915func (q *querier) GetChatDebugRunsByChatID(ctx context.Context, arg database.GetChatDebugRunsByChatIDParams) ([]database.ChatDebugRun, error) {
2916 chat, err := q.db.GetChatByID(ctx, arg.ChatID)
2917 if err != nil {
2918 return nil, err
2919 }
2920 if err := q.authorizeContext(ctx, policy.ActionRead, chat); err != nil {
2921 return nil, err
2922 }
2923 return q.db.GetChatDebugRunsByChatID(ctx, arg)
2924}
2925
2926func (q *querier) GetChatDebugStepsByRunID(ctx context.Context, runID uuid.UUID) ([]database.ChatDebugStep, error) {
2927 run, err := q.db.GetChatDebugRunByID(ctx, runID)

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65

Tested by

no test coverage detected