Skip to content

Commit 7b98e4c

Browse files
committed
Support all backends
1 parent 2e9e246 commit 7b98e4c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

backend/mysql/diagnostics.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,6 @@ func (mb *mysqlBackend) GetWorkflowInstance(ctx context.Context, instanceID stri
109109
}
110110

111111
func (mb *mysqlBackend) GetWorkflowTree(ctx context.Context, instanceID string) (*diag.WorkflowInstanceTree, error) {
112-
panic("unimplemented")
112+
itb := diag.NewInstanceTreeBuilder(mb)
113+
return itb.BuildWorkflowInstanceTree(ctx, instanceID)
113114
}

backend/redis/diagnostics.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ func (rb *redisBackend) GetWorkflowInstance(ctx context.Context, instanceID stri
8080

8181
func (rb *redisBackend) GetWorkflowTree(ctx context.Context, instanceID string) (*diag.WorkflowInstanceTree, error) {
8282
itb := diag.NewInstanceTreeBuilder(rb)
83-
8483
return itb.BuildWorkflowInstanceTree(ctx, instanceID)
8584
}
8685

backend/sqlite/diagnostics.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,6 @@ func (sb *sqliteBackend) GetWorkflowInstance(ctx context.Context, instanceID str
109109
}
110110

111111
func (sb *sqliteBackend) GetWorkflowTree(ctx context.Context, instanceID string) (*diag.WorkflowInstanceTree, error) {
112-
panic("unimplemented")
112+
itb := diag.NewInstanceTreeBuilder(sb)
113+
return itb.BuildWorkflowInstanceTree(ctx, instanceID)
113114
}

0 commit comments

Comments
 (0)