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:
parent
66ec9a2f2f
commit
1739f8e11d
@ -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',
|
||||
|
@ -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(
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user