(detail *TaskDetailRecord)
| 4043 | } |
| 4044 | |
| 4045 | func renderTaskDetailToon(detail *TaskDetailRecord) (string, error) { |
| 4046 | taskBlock, err := taskBundle(&detail.Task).toon() |
| 4047 | if err != nil { |
| 4048 | return "", err |
| 4049 | } |
| 4050 | return renderHumanBlocks( |
| 4051 | taskBlock, |
| 4052 | renderToonArray( |
| 4053 | "task_children", |
| 4054 | []string{ |
| 4055 | "id", |
| 4056 | taskIdentifierKey, |
| 4057 | taskScopeKey, |
| 4058 | taskWorkspaceIDKey, |
| 4059 | taskStatusKey, |
| 4060 | taskOwnerKey, |
| 4061 | taskTitleKey, |
| 4062 | }, |
| 4063 | taskChildToonRows(detail.Children), |
| 4064 | ), |
| 4065 | renderToonArray( |
| 4066 | "task_dependencies", |
| 4067 | []string{taskTaskIDKey, "depends_on_task_id", taskKindKey, taskCreatedAtKey}, |
| 4068 | taskDependencyToonRows(detail.Dependencies), |
| 4069 | ), |
| 4070 | renderToonArray( |
| 4071 | "task_runs", |
| 4072 | []string{ |
| 4073 | "id", |
| 4074 | taskStatusKey, |
| 4075 | taskAttemptKey, |
| 4076 | taskSessionIDKey, |
| 4077 | taskClaimedByKey, |
| 4078 | taskNetworkChannelKey, |
| 4079 | taskCoordinationChannelIDKey, |
| 4080 | taskQueuedAtKey, |
| 4081 | taskStartedAtKey, |
| 4082 | taskEndedAtKey, |
| 4083 | taskErrorKey, |
| 4084 | }, |
| 4085 | taskRunToonRows(detail.Runs), |
| 4086 | ), |
| 4087 | renderToonArray( |
| 4088 | "task_events", |
| 4089 | []string{"id", "event_type", taskRunIDKey, "actor", taskOriginKey, taskTimestampKey}, |
| 4090 | taskEventToonRows(detail.Events), |
| 4091 | ), |
| 4092 | ), nil |
| 4093 | } |
| 4094 | |
| 4095 | func taskRunBundle(item TaskRunRecord) outputBundle { |
| 4096 | return outputBundle{ |
no test coverage detected