(ctx context.Context, value string)
| 8116 | } |
| 8117 | |
| 8118 | func (q *querier) UpsertChatPlanModeInstructions(ctx context.Context, value string) error { |
| 8119 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
| 8120 | return err |
| 8121 | } |
| 8122 | return q.db.UpsertChatPlanModeInstructions(ctx, value) |
| 8123 | } |
| 8124 | |
| 8125 | func (q *querier) UpsertChatRetentionDays(ctx context.Context, retentionDays int32) error { |
| 8126 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected