Skip to content

Commit

Permalink
feat: pre-live is non production not just dev (#6946)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Apr 26, 2024
1 parent 66ec9a2 commit 1739f8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1739f8e

Please sign in to comment.