(ctx context.Context, wrID uuid.UUID)
| 402 | } |
| 403 | |
| 404 | func (r *WorkflowRunRepo) GetBundle(ctx context.Context, wrID uuid.UUID) ([]byte, error) { |
| 405 | ctx, span := otelx.Start(ctx, workflowRunRepoTracer, "WorkflowRunRepo.GetBundle") |
| 406 | defer span.End() |
| 407 | |
| 408 | att, err := r.data.DB.Attestation.Query().Where(attestation.WorkflowrunID(wrID)).First(ctx) |
| 409 | if err != nil { |
| 410 | if ent.IsNotFound(err) { |
| 411 | return nil, biz.NewErrNotFound(fmt.Sprintf("attestation for workflow run with id %s not found", wrID)) |
| 412 | } |
| 413 | return nil, err |
| 414 | } |
| 415 | return att.Bundle, nil |
| 416 | } |
| 417 | |
| 418 | func (r *WorkflowRunRepo) MarkAsFinished(ctx context.Context, id uuid.UUID, status biz.WorkflowRunStatus, reason string) error { |
| 419 | ctx, span := otelx.Start(ctx, workflowRunRepoTracer, "WorkflowRunRepo.MarkAsFinished") |
nothing calls this directly
no test coverage detected