Skip to content

Locking & archiving

DASH protects the schema that a Quality Person (QP) has attested by signature. Once a certificate built on a definition is signed, that definition is locked, so nothing can change underneath the signed record. To change the schema after that, you create a new version. A definition you no longer need can be deleted if nothing depends on it, or archived if something does.

The banner at the top of the definition record tells you which state it is in:

  • Definition Editable: “This definition stays editable until a certificate built on it is signed; unsigned draft certificates don’t lock it.” Certificates that are Draft or Awaiting Approval don’t lock the definition.
  • Definition Locked: a signed certificate is built on it. Its name, active standing, properties and structure can’t be changed, and it can’t be deleted. In the Definitions list, a lock icon appears next to its name.
  • Definition Archived: it is archived and read-only until you unarchive it.
A definition with only unsigned certificates built on it shows the Definition Editable banner
A definition with only unsigned certificates built on it shows the Definition Editable banner

When the definition is locked, there’s no Save button, the name, standing and property controls are disabled, and Delete is greyed out.

A locked definition: the Definition Locked banner, no Save button, and disabled editing controls
A locked definition: the Definition Locked banner, no Save button, and disabled editing controls

A locked definition is still fully usable: you can keep creating certificates with it.

The lock follows the signature. If a signed certificate’s source file is replaced, its signatures are voided (see Void on change). Once no signed certificate is built on the definition any more, the lock is released and the definition is editable again. If another signed certificate still uses it, it stays locked.

flowchart LR
  A[Definition Editable] -->|a certificate built on it is signed| B[Definition Locked]
  B -->|that signature is voided and no other signed certificate uses it| A
  B -->|New Version| C[Next version, editable]

Change a locked definition with a new version

Section titled “Change a locked definition with a new version”
  1. Open the locked definition.
  2. Select New Version next to the version list. DASH creates the next version with the same name and opens it.
  3. Build the new version’s properties. The new version starts empty: add properties by hand or import an example XML file. See Add & manage properties and Import properties.
  4. Link the new version to its materials with Add Material, and create a definition map for it. See Create a definition map.
A second definition with the same name opens as Version v2; the version list keeps v1
A second definition with the same name opens as Version v2; the version list keeps v1

Use the version list on the record to switch between versions. Each entry shows its number and whether it is locked or archived; the one you’re viewing is marked (current). Existing certificates keep the version they were built on.

You can delete a definition only when:

  • it isn’t locked by a signed certificate, and
  • no definition map is built on it.
  1. On the definition record, select Delete. Or, in the Definitions list, open the row’s ⋯ menu and select Delete.
  2. In the Delete Definition dialog, confirm with Delete. This can’t be undone.
The Delete Definition confirmation for a definition that nothing depends on
The Delete Definition confirmation for a definition that nothing depends on

When deletion isn’t allowed, Delete is disabled and its tooltip explains why:

  • “This definition is locked by a signed certificate and cannot be deleted. Archive it instead.”
  • “This definition has maps built on it and cannot be deleted. Archive it instead.”

In the list’s row menu, the disabled Delete reads “Locked by a signed certificate — archive instead” or “Has definition maps — archive instead”.

On a locked definition, Delete is disabled and its tooltip points to Archive
On a locked definition, Delete is disabled and its tooltip points to Archive

If you select several definitions and use Delete selected, DASH skips any that are locked or have maps and tells you to archive those instead.

Archiving hides a definition from the default lists without deleting it. Nothing about it changes, and you can reverse it at any time. It is the way to retire a locked definition.

  1. On the definition record, select Archive. Or, in the list, open the row’s ⋯ menu and select Archive. You can also tick several rows and use Archive selected.
  2. The definition leaves the default list. To see it, select Filter → Show archived definitions.
A locked definition after archiving, listed under Show archived definitions with its counts intact
A locked definition after archiving, listed under Show archived definitions with its counts intact

To bring it back, open it from the archived list and select Unarchive, or use Unarchive in its row menu.