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

Assert environment variables upon starting #98

Merged
merged 5 commits into from
Jul 26, 2024

Conversation

sfc-gh-cnivera
Copy link
Collaborator

@sfc-gh-cnivera sfc-gh-cnivera commented Jul 26, 2024

Addresses #92.

It's easy to overlook the required environment variable setup to run this app. Additionally, it was a bit confusing that in the UI we showed the option to edit the credentials, but this didn't actually take effect.

Since these environment variables are unlikely to change significantly run to run, I'm removing them entirely from the UI, and adding a step on app startup that asserts that all of the required vars are set. If one is missing, there is a more clear error shown and instructions provided.

CleanShot 2024-07-26 at 13 48 23@2x

Testing

Omit one of the required environment variables from the setup instructions, and observe that you see a popup.

Copy link
Collaborator

@sfc-gh-yayin sfc-gh-yayin left a comment

Choose a reason for hiding this comment

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

tested it locally, lgtm!

@sfc-gh-cnivera sfc-gh-cnivera merged commit 239696b into main Jul 26, 2024
3 checks passed
@sfc-gh-cnivera sfc-gh-cnivera deleted the cnivera/assert-env-var branch July 26, 2024 21:25
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