Environment Switcher Application

Last modified by Thomas Mortagne on 2024/07/05 17:57

cogAllow users to switch from a wiki page to the same exact page in another environment, for example switching from staging environment to production.
TypeXAR
CategoryApplication
Developed by

Mohamed Boussaa

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

This extension is useful when working on a project with multiple environments (dev, staging, production, …), it can be interesting to have the possibility to switch from a wiki page in production to the same exact page in dev, or on staging. The app adds a UIX that allows switching from one instance to another.

See screenshot:

environment-switcher.png
Environment switcher UI

Configuration

The Environment Switcher Application can be configured in the wiki administration, in the "Environment Switcher" section. These are the options that can be configured:

  • Environments :  In order to add environment configurations edit the page EnvironmentSwitcherCode.EnvironmentSwitcherConfiguration using object editor and attach to it objects of class EnvironmentSwitcherCode.EnvironmentClass. For each object of class EnvironmentClass fill the environment Name and URL properties.
  • Viewers : Select the group of users that are allowed to use the application.

See screenshot:

environment-switcher-configuration.png
Environment switcher configuration

Translations

The translations of the environment switcher application can be found on this page: EnvironmentSwitcherCode.Translations.

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Release Notes

v1.0.1

Fix the issue tracker and EM category on the pom.xml file.

v1.0

Get Connected