Skip to main content

Download all definitions

This page is for an administrator who wants every definition on their install in one file: to keep a copy, or to send it to someone reviewing their configuration.

The file holds your organization's names. It is every definition exactly as written: the people a reporting line names (by their key in your directory), the values a classification lists, the text of every context document, and the email address of each administrator who wrote or activated a revision. Share it as you would your staff directory.

Where it happens. On Admin → Definitions. Download all definitions is under the list in Your definitions. It needs a super administrator.

What the file holds​

Download all definitions saves one JSON file named prism-definitions-<date>.json. It holds every definition and every revision of it: active, draft and withdrawn. Each revision has:

  • its kind, other words (aliases) and summary;
  • its content exactly as stored, and the stream it is written against;
  • its revision number and state (active, draft or withdrawn);
  • who wrote it and when, and who activated or withdrew it and when;
  • the counts it was given when it was counted: a reporting line's headcount, a classification's members.

Each download is recorded in the audit log, with how many definitions and revisions the file held. The log never records a definition's name.

Reading a file from another install​

Read the file says what importing a file from Download all definitions would do on this install. It stores nothing, and this release does not import the file.

  1. Open Import from a file on Admin → Definitions and choose Definitions exported from Prism.
  2. Choose the file and press Read the file. The table says what an import would do with each definition:
    • new draft: this install has no definition of that name;
    • next revision, a draft: it has one;
    • no change, skipped: this install's newest revision already says exactly what the file does;
    • withdrawn there, skipped: the definition was withdrawn on the install the file came from;
    • made by its ownership table, skipped: an ownership table compiled this population on the install the file came from;
    • refused: with the reason.

A file holds at most 10,000 definitions and 24 MB, and one whose reading would need more memory than Prism allows a read is refused before it is read (Limits); a file of real definitions under those caps fits within it. One definitions file is read at a time: a second, while one is being read, is refused with "another definitions file is being read; try again in a moment." Read the file reads only files saved by Download all definitions. A CSV of one kind of definition is imported from that kind's own entry under Import from a file.