M8-S1 — Package and promote the suite
Section titled “M8-S1 — Package and promote the suite”| Module | M8 — Package and promote |
| After this session you can | Ship a multi-module suite from test to production as a versioned package, with a plan for everything a package does not carry. |
| Time | Facilitated: 45 min · On your own: 45 min |
| Before you start | M7-S2: the suite is complete and secured. Signed in as yourself, a system Admin of your practice space. |
| Go deeper | Export, 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”Two ways to move an application
Section titled “Two ways to move an application”| A file (export, then import) | A package with versions | |
|---|---|---|
| Good for | A one-off move or a copy | An application you keep improving and ship again |
| In the target | Editable copies | An installed application that can be updated to later versions; its parts are locked so updates apply cleanly |
| Where | Packages › Build › Exports | Packages › Build › Packages |
Exporting and building packages needs Developer access to the modules; importing and seeing Installed needs a system administrator of the target space.
What travels, and what does not
Section titled “What travels, and what does not”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.
Dependencies and the one-package rule
Section titled “Dependencies and the one-package rule”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.
Versions
Section titled “Versions”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.
The import, read carefully
Section titled “The import, read carefully”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.
What a package cannot carry
Section titled “What a package cannot carry”The promotion plan lists what someone does by hand in the target:
| Item | Why it does not travel | In the target |
|---|---|---|
| API tokens and application users | Users never travel | New Careers Site user, its token, its view grants |
| View ids in client configuration | Views are recreated with new ids | Read them after install; update the client’s configuration |
| Webhook address in Notify payroll of a hire | It is a value in the reaction | Change to production payroll’s address and key |
| Function secrets | Values never travel | Fill them in; check every function reaches Provisioned |
| OAuth test client | Clients are registered by the operator | Register the production client and its redirect addresses |
| Human verification, sensitive grants to groups | They depend on the target’s groups and settings | Check 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
- 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.
- Open the package. On Contents, read Modules, Referenced records (the groups and people your steps and grants name) and Depends on.
- Write the README: what the suite does, its two modules, and “see the promotion plan”.
- 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.
- 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.
- 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
- Open the Employee Onboarding module’s actions and choose Export a copy…, then download that export when it reads Export ready.
- 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.
- Choose Merge (new only): nothing existing will change. Select Review suggested matches and read each referenced record’s choice (Keep for IT).
- Select Execute Import. It reports Import Complete, with nothing created or overwritten.
The promotion plan
- 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 see | What to do |
|---|---|
| An external dependency you cannot move | It 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 package | It already belongs to another package, or it was installed from one. |
| The import shows Choose an action for every referenced record | Give each highlighted record Keep, Remap, Clear or Auto Create. |
| The export lists locked items | Items installed from another package cannot be exported as a copy; leave them out. |
| Import Completed with Errors | Read each error, fix the cause, then Retry; Cascade Skipped items follow when what they need lands. |
Model answer
Promotion plan, version 1.0.0.
- Production prerequisites (operator): function builder set up; encryption keys set up; the OAuth client for the wall screen registered with production’s redirect address.
- 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.
- 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.
- 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.
- 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”Production must receive later improvements to the suite as updates, while production adds its own fields. Which way of moving it fits?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
After installing the suite in production, the careers site gets 403 on every call. The package
installed cleanly. What was missed?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
A version shows an external dependency: a list owned by another team’s module. What is the best fix?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
A function uses a secret named PAYROLL_KEY. After installing the package in production, what
does the function have?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
↺ Recap (1 min) — After Module 8
Section titled “↺ Recap (1 min) — After Module 8”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.