mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
feat: read milestone progressions from snapshot (#10886)
This commit is contained in:
parent
b4208d2cf2
commit
eb87acd35a
@ -100,7 +100,14 @@ export const ConsolidatedProgressionChanges: FC<{
|
||||
|
||||
if (progressionChanges.length === 0) return null;
|
||||
|
||||
const basePlan = currentReleasePlan;
|
||||
const firstChange = progressionChanges[0];
|
||||
const releasePlan =
|
||||
(changeRequestState === 'Applied' || !currentReleasePlan) &&
|
||||
firstChange.payload.snapshot
|
||||
? firstChange.payload.snapshot
|
||||
: currentReleasePlan;
|
||||
|
||||
const basePlan = releasePlan;
|
||||
|
||||
if (!basePlan) {
|
||||
return null;
|
||||
|
||||
@ -288,10 +288,12 @@ type ChangeRequestChangeMilestoneProgression = {
|
||||
sourceMilestone: string;
|
||||
targetMilestone: string;
|
||||
transitionCondition: { intervalMinutes: number };
|
||||
snapshot?: IReleasePlan;
|
||||
};
|
||||
|
||||
type ChangeRequestDeleteMilestoneProgression = {
|
||||
sourceMilestone: string;
|
||||
snapshot?: IReleasePlan;
|
||||
};
|
||||
|
||||
export type ChangeRequestAddStrategy = Pick<
|
||||
|
||||
Loading…
Reference in New Issue
Block a user