appsmith: [Bug]: Datasource Environment Selector Not Appearing in Deployed Version of App

Is there an existing issue for this?

  • I have searched the existing issues

Description

According to the docs – https://docs.appsmith.com/connect-data/how-to-guides/setup-datasource-environments#switch-environments :

In addition, users with the necessary permissions can also switch to the Staging environment configuration when accessing the app in View mode. For more information on permissions, you can refer to the [Granular Access Control](https://docs.appsmith.com/advanced-concepts/granular-access-control).

However, I don’t see any selector in the View mode for switching environments. I’m assuming that since I can Edit the app I should have the permissions to switch datasources.

Steps To Reproduce

  1. Open any app that has multiple enviornments configured
  2. Open that app in view mode
  3. There is no selector to switch environments

Public Sample App

No response

Environment

Production

Issue video log

https://www.loom.com/share/89371ffff6de43859e4e0829a99f808d

Version

Self Hosted – Appsmith v1.10

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 23 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Hey @abbudao We truly appreciate your patience while we worked on this. The issue has been fixed by enabling changing environments through the URL. You can switch environments by adding a query parameter: ?environment=production or ?environment=staging. This should help with your use case when testing environments in the deployed app’s view mode.

This change was undergoing internal testing, which is why it wasn’t immediately reflected in the changelog. However, it is now included in our latest release, v1.60, and you can find more details in the release notes.

Please give it a try and let us know if it fully resolves your use case. If you run into any issues, feel free to reopen this thread with your feedback, and we’ll be happy to revisit the solution to ensure it works effectively for all users.

cc @dzelemba @mohamedgomran @aminelaadhari @sonali-humanedge

@aminelaadhari @mohamedgomran

We truly appreciate your feedback and deeply apologize for any inconvenience this situation may have caused.

Back in February 2024, we observed limited usage of this feature and decided to retire it to reduce the maintenance overhead. Our assumption was that users could still rely on edit or preview mode in a single instance or utilize a multiple-instance strategy as a workaround. Unfortunately, we realize now that we misjudged the impact of this decision.

After carefully reviewing multiple user requests, we understand that this feature was valuable to the users who were leveraging it, and we should have considered an alternative solution for the specific use case you both mentioned before phasing it out. We did explore options like providing an admin setting to control its visibility, as mentioned by @mohamedgomran, but eventually ended up against it. We sincerely apologize for this oversight and any difficulties it may have caused.

Please be rest assured that we are actively working to resolve this issue as quickly as possible. While a complete UI-based solution requires careful consideration and will take some time, we are committed to ensuring the URL-based switching is seamless in the interim, so that you remain unblocked and can use this feature as closely as possible to your needs. We understand this is not the ideal experience, but we plan to address these inconveniences more comprehensively later in Q4, this year.

Thank you for your continued patience and support.

We have the same issue,

We always want to develop features, publish content, test the published content on staging before it’s done on prod. Some of the are not developers and we can’t give them full access to edit the apps.

at least you could allow having it by an env variable/feature flag, but not removing it completely, couldn’t you? @riteshkew @brayn003

I just wanted to highlight that switching env is almost a standard feature for similar tools. We are really disappointed by the removal of the feature because it’s was one of our main requirements when we switched from retool to appsmith. All the suggested solutions defeat the main goal of this tool, which makes building internal apps easier and convenient to use.