Skip to content
ModuleM8 — Package and promote
After this session you canShip a multi-module suite from test to production as a versioned package, with a plan for everything a package does not carry.
TimeFacilitated: 45 min · On your own: 45 min
Before you startM7-S2: the suite is complete and secured. Signed in as yourself, a system Admin of your practice space.
Go deeperExport, import and install apps · Packaging & distribution · Environments and promotion

◆ Orientation (1 min) — From working here to working there

Section titled “◆ Orientation (1 min) — From working here to working there”

Meridian’s quality team asked to move from test to production without rebuilding (R-17). The suite now spans two modules, two Functions, reactions that call each other across modules, views that programs depend on, and settings that differ between environments. A careless move breaks seams silently. In this session you package the suite so that it can be installed and later updated, rehearse the import, and write down what must be done by hand on the other side.

▤ Concept (5 min) — Files, packages, and what travels

Section titled “▤ Concept (5 min) — Files, packages, and what travels”
A file (export, then import)A package with versions
Good forA one-off move or a copyAn application you keep improving and ship again
In the targetEditable copiesAn installed application that can be updated to later versions; its parts are locked so updates apply cleanly
WherePackages › Build › ExportsPackages › Build › Packages

Exporting and building packages needs Developer access to the modules; importing and seeing Installed needs a system administrator of the target space.

A package carries the design: modules, entities and fields, views, queries, relations, reactions, reports, pages, buttons, lists, summaries, counters, functions, announcements and aggregates, plus a copy of the records the design points at (a step’s owner group, for example). It does not carry the records people entered, archived entities, users, groups or organization units (in the target you match each to an existing one, or create it), and never a function’s secret values, only their names. Function secrets are part of the development line (Since dev), not of 1.10: on a 1.10 deployment a function has no secrets to fill in, and this row of the promotion plan stays empty.

A module belongs to one package. The package’s Contents tab lists Modules, Referenced records, Pages and Depends on, and before you create a version it lists any External dependencies: things the package uses but does not contain. Whoever installs it must map each one to something of their own, so resolve them first: move the resource into one of the package’s modules, or make the other package a dependency. This is where your architecture pays off: modules that meet only through proxies, external actions and shared lists package cleanly.

Create version takes a snapshot: choose Small fix, New features or Big change, write Release notes, optionally mark it Pre-release. A version is fixed once created; to change anything, create another. Download gives the file the target installs with Install from file; an installed application shows Update available for a newer version, and an update preserves the target’s own added fields and names for views and pages.

Install from file shows each resource as New or Existing and asks for a Strategy: Manual (you decide each existing one), Merge (new only) or Overwrite all, where overwriting removes anything not in the file. For each referenced record (users, groups, organization units) you choose Keep, Remap, Clear or Auto Create; Review suggested matches accepts exact matches. Mapped fields whose source is missing are tagged Choose a field. Import Completed with Errors lists what failed; Retry re-attempts only those, and a resource skipped because something it needs failed is Cascade Skipped.

The promotion plan lists what someone does by hand in the target:

ItemWhy it does not travelIn the target
API tokens and application usersUsers never travelNew Careers Site user, its token, its view grants
View ids in client configurationViews are recreated with new idsRead them after install; update the client’s configuration
Webhook address in Notify payroll of a hireIt is a value in the reactionChange to production payroll’s address and key
Function secretsValues never travelFill them in; check every function reaches Provisioned
OAuth test clientClients are registered by the operatorRegister the production client and its redirect addresses
Human verification, sensitive grants to groupsThey depend on the target’s groups and settingsCheck each after install

⛏ Lab (32 min) — Version 1.0.0 of the Recruitment suite, and an import rehearsal

Section titled “⛏ Lab (32 min) — Version 1.0.0 of the Recruitment suite, and an import rehearsal”

Goal. A package Meridian Recruitment Suite holding both modules, with no external dependency, version 1.0.0 downloaded, an import rehearsed, and a promotion plan written.

Before you start. Signed in as yourself.

The package

  1. Open Administration › Packages › Build, stay on the Packages tab, and select Create package. Name it Meridian Recruitment Suite; choose the Modules Recruitment System and Employee Onboarding.
  2. Open the package. On Contents, read Modules, Referenced records (the groups and people your steps and grants name) and Depends on.
  3. Write the README: what the suite does, its two modules, and “see the promotion plan”.
  4. Select Create version. Choose New features, accept 1.0.0, and write Release notes: First release: recruitment with onboarding, offer calculation, application check, payroll notice.
  5. Read External dependencies. If one is listed, note what it is, cancel, move it into one of the two modules (or explain why it must stay outside), and try again. Then select Create version and keep the dialog open until it finishes.
  6. Select Download on version 1.0.0 and keep the file.

Screenshot pending The Contents tab of Meridian Recruitment Suite, listing the two modules, the referenced records and no external dependencies What to notice: the referenced records are what the target will ask you to match; the empty dependency list is what your architecture bought.

The import rehearsal

  1. Open the Employee Onboarding module’s actions and choose Export a copy…, then download that export when it reads Export ready.
  2. Open Administration › Packages › Installed and select Install from file. Drop the export. The page says it is a plain export, and lists every resource as Existing, because they are already here.
  3. Choose Merge (new only): nothing existing will change. Select Review suggested matches and read each referenced record’s choice (Keep for IT).
  4. Select Execute Import. It reports Import Complete, with nothing created or overwritten.

The promotion plan

  1. Write Meridian’s promotion plan: the package version to install, the strategy, how each referenced record is decided, and every row of what a package cannot carry with an owner and a check.

Check.

  • Meridian Recruitment Suite holds both modules and has a README.
  • Version 1.0.0 exists with release notes and no external dependency, and is downloaded.
  • The rehearsal showed every resource as Existing and completed with Merge (new only) without changes.
  • Your plan decides every referenced record and names who does each manual step.
  • Your plan covers tokens, view ids, the webhook address, function secrets, the OAuth client and the protected-field grants.

Pass condition. A colleague could install version 1.0.0 in production and make the suite work from your package and plan alone, without asking you anything.

If something goes wrong

What you seeWhat to do
An external dependency you cannot moveIt may belong in another package: add that package as a dependency instead. Or it is a direct cross-module reference your architecture should not have.
A module cannot be added to the packageIt already belongs to another package, or it was installed from one.
The import shows Choose an action for every referenced recordGive each highlighted record Keep, Remap, Clear or Auto Create.
The export lists locked itemsItems installed from another package cannot be exported as a copy; leave them out.
Import Completed with ErrorsRead each error, fix the cause, then Retry; Cascade Skipped items follow when what they need lands.
Model answer

Promotion plan, version 1.0.0.

  1. Production prerequisites (operator): function builder set up; encryption keys set up; the OAuth client for the wall screen registered with production’s redirect address.
  2. Production prerequisites (tenant administrator): groups HR, IT, Interview Panel; the working-hours schedules; the lists if not created by the package; the people who own steps.
  3. Install 1.0.0 with Install from file; referenced groups and the schedule: Keep where the same exists, Remap to production’s equivalents otherwise; people named as owners: Remap to the production HR officer and HR manager; never Auto Create a person.
  4. After install: both functions reach Provisioned (no secrets in 1.0.0); Notify payroll of a hire gets production payroll’s address and key; Careers Site user, token and grants to production’s Careers feed and Careers intake, whose new ids go into the site’s configuration; Human Verification on the public view; Sensitive and Encrypt grants checked for HR.
  5. Smoke test: the acceptance script’s hire path with a test candidate, then archive the test records.

Later changes ship as 1.1.0 and arrive as Update available; production’s own fields and view names survive the update.

◇ Worked scenario (1 min) — The import that half-worked

Section titled “◇ Worked scenario (1 min) — The import that half-worked”

A colleague installed an earlier version of another team’s suite and got Import Completed with Errors: the onboarding views failed, and the Start onboarding reaction shows Cascade Skipped. Diagnose before reading on.

Why the views failed. They were granted to a group IT Service Desk that does not exist in production, and the colleague chose Clear for it. The views’ access referred to nothing. Fix: Fix Mappings, Remap the group to production’s IT, then Retry.

Why the reaction was skipped. It creates checklists in an entity that failed for the same reason; what depends on a failed resource is skipped rather than imported broken. Fix: nothing of its own: Retry lands it once its entity lands.

The lesson. Decide referenced records before the import, in the plan, not on the import page.

✓ Practice (5 min) — Check your shipping

Section titled “✓ Practice (5 min) — Check your shipping”
PracticeChoose one answer.

Production must receive later improvements to the suite as updates, while production adds its own fields. Which way of moving it fits?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a plain export makes editable copies with no update path. See two ways.

  2. Explanation for B

    ✓ Correct

    Correct: an installed package shows Update available, and updates keep the target’s own fields. See versions.

  3. Explanation for C

    ✗ Incorrect

    Not this one: overwriting removes anything not in the file, production’s fields included. See the import.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

After installing the suite in production, the careers site gets 403 on every call. The package installed cleanly. What was missed?

  1. Explanation for A

    ✗ Incorrect

    Not this one: views are part of the design, and the design travels in a package. See what travels.

  2. Explanation for B

    ✓ Correct

    Correct: users and tokens never travel, and recreated views have new ids. See what a package cannot carry.

  3. Explanation for C

    ✗ Incorrect

    Not this one: the client is one artifact; only its configuration changes. See M5-S3.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

A version shows an external dependency: a list owned by another team’s module. What is the best fix?

  1. Explanation for A

    ✗ Incorrect

    Not this one: it works, but every installer must now find and map it by hand. See dependencies.

  2. Explanation for B

    ✗ Incorrect

    Not this one: two copies of the same codes drift apart. See dependencies.

  3. Explanation for C

    ✓ Correct

    Correct: the installer then installs theirs first, and nothing is copied. See dependencies.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

PracticeChoose one answer.

A function uses a secret named PAYROLL_KEY. After installing the package in production, what does the function have?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a package carries a function’s secret names, but never their values. See what travels.

  2. Explanation for B

    ✓ Correct

    Correct: packages carry secret names only; an administrator of the target fills the value. See what travels.

  3. Explanation for C

    ✗ Incorrect

    Not this one: the name travels, so only its value is missing. See what travels.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

You packaged a multi-module suite with no external dependency, rehearsed an import, and wrote the plan for everything a package cannot carry. After Module 8 you can apply packaging and modules discipline: ship a suite from test to production as a versioned package, and update it later.

Next. Module 9 is the capstone: you extend, prove and defend the suite you built.