From f660dee34f1e07b18cdec9da6c4c284d877176ac Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Thu, 18 Jul 2024 16:58:18 -0400 Subject: [PATCH] Schema refresh 2 adds parent id for infrastructure stacks --- models_gen.go | 4 ++++ schema/schema.graphql | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/models_gen.go b/models_gen.go index f7e6d90..cda19c0 100644 --- a/models_gen.go +++ b/models_gen.go @@ -1810,6 +1810,8 @@ type InfrastructureStack struct { Definition *StackDefinition `json:"definition,omitempty"` // a cron to spawn runs for this stack Cron *StackCron `json:"cron,omitempty"` + // the service this stack was created w/in + Parent *ServiceDeployment `json:"parent,omitempty"` // the actor of this stack (defaults to root console user) Actor *User `json:"actor,omitempty"` CustomStackRuns *CustomStackRunConnection `json:"customStackRuns,omitempty"` @@ -4201,6 +4203,8 @@ type StackAttributes struct { ActorID *string `json:"actorId,omitempty"` // the project id this stack will belong to ProjectID *string `json:"projectId,omitempty"` + // the parent service this stack was created w/in + ParentID *string `json:"parentId,omitempty"` // id of an scm connection to use for pr callbacks ConnectionID *string `json:"connectionId,omitempty"` // the id of a stack definition to use diff --git a/schema/schema.graphql b/schema/schema.graphql index cd81e52..beff83b 100644 --- a/schema/schema.graphql +++ b/schema/schema.graphql @@ -1118,6 +1118,9 @@ input StackAttributes { "the project id this stack will belong to" projectId: ID + "the parent service this stack was created w\/in" + parentId: ID + "id of an scm connection to use for pr callbacks" connectionId: ID @@ -1359,6 +1362,9 @@ type InfrastructureStack { "a cron to spawn runs for this stack" cron: StackCron + "the service this stack was created w\/in" + parent: ServiceDeployment + "the actor of this stack (defaults to root console user)" actor: User