1
0
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:
Mateusz Kwasniewski 2025-10-29 11:57:47 +01:00 committed by GitHub
parent b4208d2cf2
commit eb87acd35a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -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;

View File

@ -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<