Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Apr 26, 2024
Merged

Conversation

kwasniew
Copy link
Contributor

About the changes

Pre-live is not just development but also anything else that is not production.

Important files

Discussion points

Copy link

vercel bot commented Apr 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Apr 26, 2024 10:23am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Apr 26, 2024 10:23am

@@ -134,7 +134,7 @@ export class FeatureLifecycleService extends EventEmitter {
}
if (env.type === 'production') {
await this.stageReceivedMetrics(features, 'live');
} else if (env.type === 'development') {
} else if (env.type !== 'production') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird, this is just else clause.

Also I think pre-live is also production, but toggle turned off.

So I would do

await this.stageReceivedMetrics(features, 'pre-live');
if (env.type === 'production') {
    await this.stageReceivedMetrics(features, 'live');
} 

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means, any metrics will put it to pre-live, any metrics in production puts it in production.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice idea

@kwasniew kwasniew merged commit 1739f8e into main Apr 26, 2024
7 checks passed
@kwasniew kwasniew deleted the pre-live-non-production branch April 26, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants