feat(runs,events,ui): identify workflows by immutable UUID (#2125)

This commit is contained in:
sam committed 2026-11-24 05:20:18 +11:00
1 parent 21d1d2e8bf
commit 67ce2901a5
46 files changed
+1284 -512

No files matched your search

+2 -2
View File
@@ -144,10 +144,10 @@ func (o *operations) Wait() {
// installStarter puts the workflow that ships with the binary in place. It
// belongs to the organisation, so it waits until setup has created one.
func installStarter(ctx context.Context, engine *runs.Engine) error {
if _, err := engine.Install(ctx, orgID, "investigate", runs.InvestigateDocument(), string(governance.SystemID)); err != nil {
if _, err := engine.InstallShipped(ctx, orgID, "investigate", runs.InvestigateDocument(), string(governance.SystemID)); err != nil {
return fmt.Errorf("install the investigate workflow: %w", err)
}
if _, err := engine.Install(ctx, orgID, runs.ProposalWorkflow, runs.ProposalDocument(), string(governance.SystemID)); err != nil {
if _, err := engine.InstallShipped(ctx, orgID, runs.ProposalWorkflow, runs.ProposalDocument(), string(governance.SystemID)); err != nil {
return fmt.Errorf("install the proposal workflow: %w", err)
}
return nil