mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-27 11:02:16 +01:00
fix: release plan write model (#10772)
This commit is contained in:
parent
ce2ef4fe6f
commit
d5a91a60e1
@ -1,5 +1,8 @@
|
||||
import { ulid } from 'ulidx';
|
||||
import type { ReleasePlanMilestone } from './release-plan-milestone.js';
|
||||
import type {
|
||||
ReleasePlanMilestone,
|
||||
ReleasePlanMilestoneWriteModel,
|
||||
} from './release-plan-milestone.js';
|
||||
import { CRUDStore, type CrudStoreConfig } from '../../db/crud/crud-store.js';
|
||||
import type { Row } from '../../db/crud/row-type.js';
|
||||
import type { Db } from '../../db/db.js';
|
||||
@ -16,11 +19,6 @@ const fromRow = (row: any): ReleasePlanMilestone => {
|
||||
};
|
||||
};
|
||||
|
||||
export type ReleasePlanMilestoneWriteModel = Omit<
|
||||
ReleasePlanMilestone,
|
||||
'id' | 'startedAt' | 'transitionCondition'
|
||||
>;
|
||||
|
||||
export class ReleasePlanMilestoneStore extends CRUDStore<
|
||||
ReleasePlanMilestone,
|
||||
ReleasePlanMilestoneWriteModel,
|
||||
|
||||
@ -10,3 +10,8 @@ export interface ReleasePlanMilestone {
|
||||
strategies?: ReleasePlanMilestoneStrategy[];
|
||||
progressionExecutedAt?: string;
|
||||
}
|
||||
|
||||
export type ReleasePlanMilestoneWriteModel = Omit<
|
||||
ReleasePlanMilestone,
|
||||
'id' | 'startedAt' | 'transitionCondition' | 'progressionExecutedAt'
|
||||
>;
|
||||
|
||||
@ -124,7 +124,6 @@ import {
|
||||
} from './internals.js';
|
||||
import SessionStore from './db/session-store.js';
|
||||
import metricsHelper from './util/metrics-helper.js';
|
||||
import type { ReleasePlanMilestoneWriteModel } from './features/release-plans/release-plan-milestone-store.js';
|
||||
import type { ReleasePlanMilestoneStrategyWriteModel } from './features/release-plans/release-plan-milestone-strategy-store.js';
|
||||
import type { IChangeRequestAccessReadModel } from './features/change-request-access-service/change-request-access-read-model.js';
|
||||
import { EventStore } from './db/event-store.js';
|
||||
@ -188,6 +187,7 @@ import { defineImpactMetrics } from './features/metrics/impact/define-impact-met
|
||||
import type { IClientInstance } from './types/stores/client-instance-store.js';
|
||||
import EnvironmentStore from './features/project-environments/environment-store.js';
|
||||
import ProjectStore from './features/project/project-store.js';
|
||||
import type { ReleasePlanMilestoneWriteModel } from './features/release-plans/release-plan-milestone.js';
|
||||
|
||||
export async function initialServiceSetup(
|
||||
{ authentication }: Pick<IUnleashConfig, 'authentication'>,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user