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

Console: Distinguish between different environments clearly #8835

Open
mnlbox opened this issue Aug 23, 2022 · 4 comments
Open

Console: Distinguish between different environments clearly #8835

mnlbox opened this issue Aug 23, 2022 · 4 comments
Labels
c/console Related to console estimate/L k/enhancement New feature or improve an existing feature t/product-platform

Comments

@mnlbox
Copy link
Contributor

mnlbox commented Aug 23, 2022

Is your proposal related to a problem?

Yes, it's a real story, I have my app in three environments (local development, test, and prod) and last week I just had open all of my environments in different tabs in my browser. I just wanted to test a SQL query in my localhost so I wrote my update query to update some rows and then I copied that from my editor to the SQL window in the Hasura console and clicked Run button and I realized all of the sudden that I run this script accidentally on my prod database.
Fortunately, I had a good backup that I restored. Also, my app is not so big and I did that at midnight when no user was logged in so I'm sure I'm good.
I asked my colleague and he also had the same issue before, so I think it's a common issue that may be happening to other users.

Describe the solution you'd like

As a solution I think it's good to choose a different theme or color for each environment then it's clear visually that you are in which environment. For example something like this:

Prod Env:
2022-08-23_13-48_1

Test Env:
2022-08-23_13-48

Local Env:
2022-08-23_13-49

Describe alternatives you've considered

We can add an environment variable flag or simple setting to set Hasura console as a read only mode then you can disable some dangerous features like: SQL or mutations or edit and delete button in the data viewer to prevent these actions in prod, something like this:
2022-08-23_13-57

If the feature is approved, would you be willing to submit a PR?

Unfortunately, I don't have a lot of time but I definitely try to contribute as much as I can.

Please use 👍 if you like this feature idea.

@mnlbox mnlbox added the k/enhancement New feature or improve an existing feature label Aug 23, 2022
@manasag
Copy link
Contributor

manasag commented Aug 23, 2022

Related issue for Read only Console: #5349

@seanparkross seanparkross added the c/console Related to console label Aug 25, 2022
@seanparkross seanparkross changed the title distinguish between different environments clearly Console: distinguish between different environments clearly Aug 25, 2022
@seanparkross seanparkross changed the title Console: distinguish between different environments clearly Console: Distinguish between different environments clearly Aug 25, 2022
@manasag
Copy link
Contributor

manasag commented Sep 1, 2022

Hi @mnlbox , thank you for submitting this enhancement request. This feature is currently available in our Cloud and Enterprise products. You can try it out on cloud for 30 days for free here

@mnlbox
Copy link
Contributor Author

mnlbox commented Sep 7, 2022

Thanks @manasag 👍
Any plan for adding this feature to the community edition of Hasura also?

@Pascal-Orthopy
Copy link

Can someone explain where I can find the resources to do this with the enterprise version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/console Related to console estimate/L k/enhancement New feature or improve an existing feature t/product-platform
Projects
None yet
Development

No branches or pull requests

5 participants