Skip to content

Commit 898ad56

Browse files
committed
fix(frontend): fix Campaigns create subscription data
Include missing campaign_mechanism fields in the subscription to prevent empty values in table rows. Signed-off-by: ArnelaL <arnela.lisic@secomind.com>
1 parent a106d0b commit 898ad56

2 files changed

Lines changed: 95 additions & 0 deletions

File tree

frontend/src/pages/DeploymentCampaigns.tsx

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,83 @@ const CAMPAIGN_CREATED_SUBSCRIPTION = graphql`
9595
id
9696
name
9797
}
98+
campaignMechanism {
99+
__typename
100+
... on DeploymentDeploy {
101+
maxFailurePercentage
102+
maxInProgressOperations
103+
requestRetries
104+
requestTimeoutSeconds
105+
release {
106+
id
107+
version
108+
application {
109+
id
110+
name
111+
}
112+
}
113+
}
114+
... on DeploymentStart {
115+
maxFailurePercentage
116+
maxInProgressOperations
117+
requestRetries
118+
requestTimeoutSeconds
119+
release {
120+
id
121+
version
122+
application {
123+
id
124+
name
125+
}
126+
}
127+
}
128+
... on DeploymentStop {
129+
maxFailurePercentage
130+
maxInProgressOperations
131+
requestRetries
132+
requestTimeoutSeconds
133+
release {
134+
id
135+
version
136+
application {
137+
id
138+
name
139+
}
140+
}
141+
}
142+
... on DeploymentDelete {
143+
maxFailurePercentage
144+
maxInProgressOperations
145+
requestRetries
146+
requestTimeoutSeconds
147+
release {
148+
id
149+
version
150+
application {
151+
id
152+
name
153+
}
154+
}
155+
}
156+
... on DeploymentUpgrade {
157+
maxFailurePercentage
158+
maxInProgressOperations
159+
requestRetries
160+
requestTimeoutSeconds
161+
release {
162+
id
163+
version
164+
application {
165+
id
166+
name
167+
}
168+
}
169+
targetRelease {
170+
id
171+
version
172+
}
173+
}
174+
}
98175
}
99176
}
100177
}

frontend/src/pages/UpdateCampaigns.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,24 @@ const CAMPAIGN_CREATED_SUBSCRIPTION = graphql`
9595
id
9696
name
9797
}
98+
campaignMechanism {
99+
__typename
100+
... on FirmwareUpgrade {
101+
maxFailurePercentage
102+
maxInProgressOperations
103+
requestRetries
104+
requestTimeoutSeconds
105+
forceDowngrade
106+
baseImage {
107+
id
108+
name
109+
baseImageCollection {
110+
id
111+
name
112+
}
113+
}
114+
}
115+
}
98116
}
99117
}
100118
}

0 commit comments

Comments
 (0)