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

Extend IsProd with divert #4

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

thekondor
Copy link
Contributor

@thekondor thekondor commented Oct 29, 2024

The change is to extend production environment with divert value.
No IsDivert introduced to keep a behavior for diverts the same as for production builds.

Ticket: https://remerge.atlassian.net/browse/CORE-755

@thekondor thekondor requested a review from a team as a code owner October 29, 2024 09:46
@remerge-hal
Copy link

This comment ensures that the correct Slack channel is notified after the team/project label CORE has been added to this pull request.

See this comment for details.

@thekondor thekondor self-assigned this Oct 29, 2024
func IsProd() bool {
return Env == "production" || Env == "prod"
return Env == "production" || Env == "prod" || Env == "divert"
Copy link
Contributor

Choose a reason for hiding this comment

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

Wow. I was not even aware that we need a whole package to deal just with one environment variable.

I think the idea long time ago was to have smth like https://github.com/bkeepers/dotenv .

The downside of this pr is that is adds some custom Env specific for Remerge - divert - but it is a public repo actually =)

I think we need to make it private and in the long term maybe shut it down completely - we do not use it as intended.

WDYT @itszootime ?

Copy link
Contributor

Choose a reason for hiding this comment

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

If there will be no response - merge it, I have approved it.
I think it is not critical anyway

@thekondor thekondor merged commit 9be5e02 into master Nov 5, 2024
4 checks passed
@thekondor thekondor deleted the CORE-755__introduce-divert branch November 5, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants