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: Env vars to skip SMS and email sending #1355

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

arkadyan
Copy link
Collaborator

@arkadyan arkadyan commented Sep 7, 2023

Step 1/2 of Turn off email and SMS sending on dev-blue

We could already configure which modules to use by environment (so test can use a different module than prod). This adds the ability to override via an environment variable. This allows us to turn off email and SMS sending from a single (dev-blue) server.

We could already configure which modules to use by environment (so test
can use a different module than prod). This adds the ability to override
via an environment variable. This allows us to turn off email and SMS
sending from a single (dev-blue) server.
Helper functions for defining runtime configuration.
"""

@spec module_from_string_or_default(String.t() | nil, module()) :: module()
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this isn't being called anymore

Copy link
Collaborator Author

@arkadyan arkadyan Sep 7, 2023

Choose a reason for hiding this comment

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

Good catch! I forgot to remove those but did now.

Copy link
Contributor

@ErinLMoore ErinLMoore left a comment

Choose a reason for hiding this comment

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

👍🏻

@arkadyan arkadyan merged commit e6e19e4 into main Sep 7, 2023
7 checks passed
@arkadyan arkadyan deleted the mss-env-overridable-modules branch September 7, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants