Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

As an owner, if a Heroku environment variable is missing, I should see a page with a warning and link to documentation #355

Closed
QuincyLarson opened this issue Feb 27, 2020 · 6 comments
Labels
Admin Roadmap This is an issue/feature that is on the road map for the future

Comments

@QuincyLarson
Copy link
Contributor

No description provided.

@allella
Copy link
Contributor

allella commented Feb 27, 2020

Changing this to "As an owner", since I don't know that the administrator(s) will have access to the Heroku settings.

The "owner" term was just merged in on #352

@allella allella changed the title As an admin, if a Heroku environment variable is missing, I should see a page with a warning and link to documentation As an owner, if a Heroku environment variable is missing, I should see a page with a warning and link to documentation Feb 27, 2020
@allella allella added the MVP label Mar 8, 2021
@bappyasif
Copy link

@allella hello, it seems like a good start for me to begin contributing here, of course, if this is still on table for taking, i would like to know more about this issue or guidelines to carryout this issue completion with a probable pr if everything goes right, thanks.

@allella
Copy link
Contributor

allella commented Nov 4, 2021

@bappyasif @ojeytonwilliams may have more guidance on where in the code we could check for missing .env variables.

I believe the intention is for the front-end UI to show a warning. There are already some warnings on the command line, but I think the assumption is that Heroku users may be trying to avoid the command line.

In previous conversations, we intend to use Heroku as an MVP, but I'm not sure this issue needs to be specific to only Heroku. We should probably show a warning message for any undefined variables and we can link to the .env section of our documentation and perhaps that section of the docs could link off to the Heroku specifics.

@ojeytonwilliams
Copy link
Contributor

Heroku users may be trying to avoid the command line.

I'm not 100% sure what a typical user expects when deploying to heroku. However, if I just follow their instructions I'd clone the repo and then

git push heroku main

At this point Heroku will output a bunch of logs straight to your terminal. Right now it says (amongst other things)

remote: -----> Build succeeded!

Then, when I open the app, I see a boilerplate page telling me there is an application error.

So, I think we want three things to happen.

  • the build itself should fail without the environment variables, if the install process throws an error the build will stop
  • the console should tell the owner which environment variables are missing or invalid
  • the console should link to the .env section, as Jim mentioned

By invalid, I mean that it's obviously wrong. For example, using the JWT_SECRET from the .env.example should immediately fail the build.

In principle we could create a warning page, but I think it would be better to prevent obviously broken deploys, if possible. What do you reckon, @allella?

I agree that this shouldn't be tied too closely to Heroku, but a step in the build that throws an error should stop most pipelines.

@allella
Copy link
Contributor

allella commented Nov 4, 2021

I think @Zeko369 inspired this issue, so perhaps he has comments on where to show an error for the Heroku owner of an instance.

@QuincyLarson QuincyLarson added Roadmap This is an issue/feature that is on the road map for the future and removed MVP labels Nov 12, 2021
@allella
Copy link
Contributor

allella commented Nov 15, 2021

Closing since this has been tagged "Roadmap" for post-MVP implementation.

@allella allella closed this as completed Nov 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Admin Roadmap This is an issue/feature that is on the road map for the future
Projects
None yet
Development

No branches or pull requests

4 participants