Parsware
All articles

Platform Shell

Switch between environments

In Parsware every environment has its own web address, so moving from Development to Test is opening Test's address, not choosing from a menu. Bookmark each one, and two browser tabs can never be confused about which environment they are in.

The Parsware Platform Shell in dark mode listing the apps in the Development environment, with Development named in the top bar, next to the title "Switch between environments"

An organisation using Parsware usually has several environments: Development where apps are built, Test where they are tried, Production where the real work happens, and sometimes one per department. Each keeps its own data, so a record in Test never appears in Production.

In Parsware you don't switch environments with a menu. Every environment has its own web address, and you move between them by opening another address. This article shows where the addresses come from and what happens when you open one.

We used a tenant with two environments, Development and Test. Every picture is the real product.

Every environment has an address

An administrator sees each environment's address in the Admin Control Center. The home page shows the one that is open, with a button to open it and one to copy it:

The Admin Control Center's home page: Welcome to Parsware, and the Test environment's address test.localhost:5180 with an open button and a copy button

Environments lists them all:

The Environments list: Test at test.localhost:5180 and Development at its own development address, each with its tier and Active status

We are running on one machine, so the addresses end in localhost:5180. On a real deployment they look like acme-test.parsware.com and acme.parsware.com. Your administrator gives you the ones you need, usually along with your account.

The address decides which environment you are in

Open an environment's address and the Platform Shell opens in that environment. The top bar names it, and the apps list says whose apps these are:

The Platform Shell with Development in the top bar and Apps in Development: Asset Tracker, Training, Room Bookings, Capital planning and more

The name in the top bar is a label, not a menu. There is nothing to choose, because the address has already said which environment this is.

Moving to another one

To go to Test, open Test's address, in the same tab or a new one. Each address signs you in on its own, so the first time you open one you see the sign-in page:

The Sign in to Parsware page, with the email already filled in

Sign in with the same account, and you are in Test, with Test's apps:

The Platform Shell with Test in the top bar and Apps in Test: Organisation, Support desk and Support overview

The two lists are different because the environments are different: each has the apps that have been imported into it. You only see an environment's apps if your security role in that environment gives you them.

Being let into an environment

Signing in with the same account in Test works only if you are a member of Test. Each environment keeps its own list of who may enter it, and at what level, so being able to use Development says nothing about Production. An administrator decides, per environment:

Level What it allows in that environment
Environment User Signing in to its Shell and running its apps; what you then see is up to your security roles
Environment Maker Everything a user can do, plus building: tables, forms, views, apps, processes, reports and scripts
Environment Admin Everything a maker can do, plus its settings, members, teams, security roles and solution imports

Above the environments sits the tenant administrator, who can do everything in every environment without being listed, and who creates and deletes environments. That role exists so that somebody can always add the first member to a new environment, or recover one whose only administrator has left.

So a typical company ends up with something like this:

Person Development Test Production
A maker building the app Maker Maker User
The person testing it User
An administrator Admin Admin Admin
Everybody who uses the app User

The maker can try changes in Development and Test, but in Production they can only use the app like everybody else. A change reaches Production only by an Environment Admin importing the solution, which is exactly the step a company wants a second pair of eyes on. If you open an environment's address and you are not a member, the Shell says so plainly, instead of showing an empty apps list that looks like a fault.

Members and security roles

Membership and security roles answer two different questions, one after the other:

  1. Membership: may this person enter this environment at all, and as a user, a maker or an administrator?
  2. Security roles: once inside, what may they do with each table's records, and which apps open for them?

Both are per environment. A person who is a member of Production but holds no security roles there gets in and sees no apps, because nothing has been shared with them yet. Security in Parsware goes through roles, and Your first app, shared with the people who need it shows an app arriving on somebody's apps list.

What is separate, and what is shared

Two environments in the same tenant share some things and keep others apart.

Separate in each environment Shared by the whole tenant
Every record, in its own database schema Your account and password
Apps, tables, forms, views, processes and reports Two-step sign-in
Security roles and teams Your profile and photo
The organisation chart The tenant's branding
Who is a member, and at what level Object storage buckets
The audit log App registrations, which name the environments they may reach

The left column is why an environment can be trusted with a rehearsal. A record deleted in Test is not deleted anywhere else, an organisation chart reshaped in Test does nothing to Production's approvals, and a test role that is too generous only lets people see test data. Environments that are actually separate explains how the separation is built.

Working in two environments at once

Because each environment is an address, you can have two open side by side: Production in one tab for the real work, Test in another to try the new version an administrator just imported. A few habits keep that safe:

  • Name your bookmarks with the environment, Acme - Production and Acme - Test, so the tab title tells you which is which.
  • Read the top bar before you delete anything. The environment's name is always there.
  • Use different themes if it helps: light in Test and dark in Production, or the other way round. The theme is remembered per address in your browser, so each environment keeps its own.
  • Don't copy records between them by hand. Configuration that should be the same in both travels in a solution, as Seed data that travels with a solution explains.

Questions that come up

Why do I have to sign in again for the second environment? Each address keeps its own session, which is the point: a session in Test is no use to anybody trying to reach Production. Your account and password are the same in both.

Why is an app in Development but not in Test? It hasn't been imported into Test yet. Apps reach an environment in a solution, and only when somebody imports it.

Can I see every environment I can use? An administrator sees them all under Environments in the Admin Control Center. Ask yours for the addresses you need.

Why an address and not a menu

A menu makes the environment a hidden setting, and hidden settings cause mistakes:

  • Two tabs. With a menu, two tabs on the same address could be working in Test and Production. With an address, you can tell them apart at a glance.
  • Bookmarks. A bookmark to an address brings you back to that environment. A bookmark with a menu would open whichever one you picked last.
  • Links. A link to a record means the same record for whoever you send it to, because the environment is part of the link.

So bookmark each environment you use, with its name in the bookmark. Production is the one you should never reach by accident, and a separate bookmark makes sure you don't.

Next: handing a record to somebody else, or to a team.