You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfalse, fmt.Sprintf("Cannot deploy this version because required version %s failed to deploy. Please retry deploying version %s or check for new updates.", currentVersion.VersionLabel, currentVersion.VersionLabel), nil
returnnil, errors.Wrap(err, "failed to get current downstream version")
78
+
}
79
+
ifcurrentVersion!=nil&&
80
+
currentVersion.Status==storetypes.VersionFailed&&
81
+
currentVersion.IsRequired {
82
+
// none of the upstream available updates are deployable if current version is required and failed to deploy
83
+
fori:=rangeavailableUpdates {
84
+
availableUpdates[i].IsDeployable=false
85
+
availableUpdates[i].NonDeployableCause=fmt.Sprintf("Cannot deploy this version because required version %s failed to deploy. Please retry deploying version %s or check for new updates.", currentVersion.VersionLabel, currentVersion.VersionLabel)
returnnil, errors.Wrap(err, "failed to get current downstream version")
153
+
}
154
+
ifcurrentVersion!=nil&&
155
+
currentVersion.Status==storetypes.VersionFailed&&
156
+
currentVersion.IsRequired {
157
+
// none of the airgap available updates are deployable if current version is required and failed to deploy
158
+
fori:=rangeupdates {
159
+
updates[i].IsDeployable=false
160
+
updates[i].NonDeployableCause=fmt.Sprintf("Cannot deploy this version because required version %s failed to deploy. Please retry deploying version %s or check for new updates.", currentVersion.VersionLabel, currentVersion.VersionLabel)
NonDeployableCause: "Cannot deploy this version because required version 0.0.0 failed to deploy. Please retry deploying version 0.0.0 or check for new updates.",
346
+
},
347
+
{
348
+
VersionLabel: "0.0.1",
349
+
UpdateCursor: "1",
350
+
ChannelID: "channel-id",
351
+
IsRequired: false,
352
+
UpstreamReleasedAt: &testTime,
353
+
ReleaseNotes: "release notes",
354
+
IsDeployable: false,
355
+
NonDeployableCause: "Cannot deploy this version because required version 0.0.0 failed to deploy. Please retry deploying version 0.0.0 or check for new updates.",
356
+
},
357
+
},
358
+
wantErr: false,
359
+
expectedSelectedChannelId: "channel-id",
360
+
},
361
+
{
362
+
name: "current version is failed but not required - updates unaffected",
0 commit comments