1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

feat: pre-live is non production not just dev (#6946)

This commit is contained in:
Mateusz Kwasniewski 2024-04-26 12:43:10 +02:00 committed by GitHub
parent 66ec9a2f2f
commit 1739f8e11d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ test('can insert and read lifecycle stages', async () => {
await environmentStore.create({
name: 'my-dev-environment',
type: 'development',
type: 'test',
} as IEnvironment);
await environmentStore.create({
name: 'my-prod-environment',

View File

@ -138,10 +138,9 @@ export class FeatureLifecycleService extends EventEmitter {
if (!env) {
return;
}
await this.stageReceivedMetrics(features, 'pre-live');
if (env.type === 'production') {
await this.stageReceivedMetrics(features, 'live');
} else if (env.type === 'development') {
await this.stageReceivedMetrics(features, 'pre-live');
}
} catch (e) {
this.logger.warn(

View File

@ -136,6 +136,7 @@ test('should return lifecycle stages', async () => {
stage: 'initial',
enteredStageAt: expect.any(String),
},
{ stage: 'pre-live', enteredStageAt: expect.any(String) },
{
stage: 'live',
enteredStageAt: expect.any(String),