mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-09 15:40:03 +08:00
feat: added versions to workflow tempaltes.
update: updated logic to get workflow template executions stats to be a single query.
This commit is contained in:
12
pkg/types.go
12
pkg/types.go
@@ -62,6 +62,7 @@ type WorkflowTemplate struct {
|
||||
Name string
|
||||
Manifest string
|
||||
Version int32
|
||||
Versions int32 `db:"versions"`
|
||||
IsLatest bool
|
||||
IsArchived bool `db:"is_archived"`
|
||||
ArgoWorkflowTemplate *wfv1.WorkflowTemplate
|
||||
@@ -70,11 +71,12 @@ type WorkflowTemplate struct {
|
||||
}
|
||||
|
||||
type WorkflowExecutionStatisticReport struct {
|
||||
Total int32
|
||||
LastExecuted time.Time
|
||||
Running int32
|
||||
Completed int32
|
||||
Failed int32
|
||||
WorkflowTemplateId uint64 `db:"workflow_template_id"`
|
||||
Total int32
|
||||
LastExecuted time.Time `db:"last_executed"`
|
||||
Running int32
|
||||
Completed int32
|
||||
Failed int32
|
||||
}
|
||||
|
||||
type WorkflowExecutionStatistic struct {
|
||||
|
Reference in New Issue
Block a user