Skip to content

Keep test and production in step, step by step

See exactly what differs between two environments, package what you built as a solution, and bring changes across with a preview first, so production only ever gets what was tried in test.

8 steps·5 min read·Deployment and Data

See exactly what differs between test and production, package what you built, and bring changes across with a preview first.

What it is

  • Compare environments, on Builder → Monitoring → Reconciler: Export to compare on one side, Load to compare on the other.
  • The result counts and lists what is Only in the file, Different (property by property), Only here, The same and Code-defined.
  • Tick items, then Make a solution here (this side to the other) or Import from the file (the other side to this one, previewed at once).
  • A solution is exported as a zip, imported on Builder → Solutions, previewed, applied only when clean, and can be rolled back.

Good to know

  • Comparing and previewing never change your configuration; only Apply does, and importing never deletes anything.
  • Both environments must belong to the same organization. With a single environment, a compare of its own export shows everything as the same.
  • Records, people, keys and secret values, settings that belong to one environment and scheduled jobs never travel in a solution.

Before you start

  • An office usually builds and tries changes in a test environment and works for real in production. Both are instances of the same organization. This guide keeps them in step: find what differs, package it, and bring it across with a preview first.
  • The example is a real comparison: a file exported from production, loaded on the development environment. Development had the office's working hours (three business settings) that production lacked, and a few settings differed between the two. We package the working hours as the solution Office hours and preview one difference in the other direction. Nothing is applied in this guide.

Part 1. Compare the two environments

1On each side: Builder → Monitoring → Reconciler, Compare environments

Open Reconciler under Monitoring in the Builder. The Compare environments card has two buttons:

  1. On the environment you compare against (production here), press Export to compare. It downloads one zip of everything built there: tables, fields with their whole format, choices, views, forms, scripts, roles, workflows and settings, among others.
  2. On the other environment (test or development), press Load to compare and pick that zip. Codossier Office compares it with what is here at once and opens the result.

A compare reads; it never changes either environment. Each loaded file is kept under Brought in on Builder → Solutions, so you can open the result again later.

Keep test and production in step, step 1: On each side: Builder → Monitoring → Reconciler, Compare environments (On the other side first; Here: pick its zip)
1On the other side first2Here: pick its zip

2Read the result: only there, different, only here

The comparison opens with five counts:

  • Only in the file: in the other environment, missing here.
  • Different: on both sides, with at least one property that differs.
  • Only here: built here, missing there.
  • The same: identical on both sides (here 4,471 items).
  • Code-defined: differences in what Codossier Office itself makes; they arrive with a Codossier Office release, not with a solution.

This comparison was made from a production file of October 22: open a result again any time from Brought in, and load a fresh export when you need today's picture.

Keep test and production in step, step 2: Read the result: only there, different, only here (There, not here; On both, not equal; Here, not there; Comes with a release)
1There, not here2On both, not equal3Here, not there4Comes with a release

3Open a difference, property by property

Below the counts, each group lists its items with their kind (here business_setting) and their name. An item that differs has a link such as 1 difference(s): click it to see each property with its value here and in the file. Here the setting that holds back low-confidence drafted replies has a different display name on each side. Two more differences are left out of this picture.

Read every difference before you carry anything: the side you bring it to takes the other side's value.

Keep test and production in step, step 3: Open a difference, property by property (Open or close it; This environment's value; The other side's value)
1Open or close it2This environment's value3The other side's value

Part 2. Carry what you ticked, either way

4Tick what to carry, name the solution, make it

Tick the items you want, one by one or a whole group with its header's box (Tick all and Tick none do every group). Here we tick the three Only here settings: the working days and the opening and closing times. Then choose the direction:

  • Make a solution here (from this side to the other): type the new solution's unique name (lower-case letters, digits and dashes; office-hours) and press it. Codossier Office makes the solution with exactly the ticked items that exist here and opens it. The count on the button says how many.
  • Import from the file (from the other side to this one): takes the ticked items that the file holds, Only in the file or Different, as the file has them, and previews them here at once (step 7).
Keep test and production in step, step 4: Tick what to carry, name the solution, make it (Tick the group; Its unique name; This side to the other; The other side to this)
1Tick the group2Its unique name3This side to the other4The other side to this

5The solution it made: check it, then Export

The new solution opens with the ticked items grouped by type (Business settings, 3). Codossier Office names it after the unique name you typed and notes in its description which compare it came from; this one was then given a readable name and description, so the other environment knows what it carries. Tick an item and press Remove to take it out of the package (the setting itself is untouched).

Press Export: Codossier Office writes office-hours_ plus the date and time .zip, keeps a copy on the solution and downloads it. last exported shows when. Export signed is for Codossier Office's own packages.

Keep test and production in step, step 5: The solution it made: check it, then Export (What you ticked; Download the zip)
1What you ticked2Download the zip

6On the other environment: Builder → Solutions → Import

Sign in to the environment that should receive the change, open Builder → Solutions and press Import. Pick the zip. Codossier Office loads it and previews it straight away: nothing is written until you apply it, and the file stays in Brought in with its result.

A solution lands only in an environment of the same organization, never in another office's database.

Keep test and production in step, step 6: On the other environment: Builder → Solutions → Import (Pick the zip)
1Pick the zip

7The preview, then Apply, then roll back if you need to

Every import is previewed first. Each item gets one action: Create (new here), Update (here but different, with each property's value now and after), Unchanged, Skipped (made by Codossier Office's code) or Blocked (it cannot land as it is, with the reason). Here, the one setting ticked under Different and brought in with Import from the file: its display name would change from this environment's wording to production's. A preview with nothing blocked is Clean.

Apply is offered only after a clean preview and is refused if this environment changed since: press Preview again first. The apply runs in the background as you, and every write is kept in the import's trace. If anything fails, the whole import is rolled back at once; to undo one that worked, press Roll back on it. Importing never deletes anything. This preview was not applied.

Keep test and production in step, step 7: The preview, then Apply, then roll back if you need to (Nothing blocked; Now, and after; Check again; Lands it (not pressed))
1Nothing blocked2Now, and after3Check again4Lands it (not pressed)

8Compare again: nothing left to carry

After the move, compare again: export on one side, load on the other. When the two environments match, every count but The same is 0 and the list says No differences outside what code makes.

This is also what you see if you have only one environment and load its own export, as here: a file compared with the environment it came from.

Keep test and production in step, step 8: Compare again: nothing left to carry (Everything matches; Nothing to carry)
1Everything matches2Nothing to carry

What next