Docs · Concepts
Versions
Every change to a Check is kept as a version, named from what changed. Open one, compare it with the Check as it stands, or put it back.
A Check's Versions tab lists every state the Check has been in, newest first. Mosaic makes a version each time somebody changes the Check and names it from what changed: Query of “Store POS” changed, Aggregation “POS ↔ ERP” added, Rules of “POS ↔ ERP” changed. Nobody has to save one or name it.
Each row says who made the change, when, and how many runs ran on that version. The version the Check is now is marked Current.
#What a version holds
Everything that decides what the Check computes and shows:
- its name, description, tags, parameters and columns, and its limits for automatic investigations;
- its data sources: their queries, connections, normalising and exclusions;
- its aggregations: keys, measures, sources and Rules;
- its drilldowns and investigations.
Not in a version: schedules, whether the Check is published, the models it may use, and the folder it is filed in. Where a box was dragged on a canvas is kept, but moving one never makes a version on its own.
Passwords are never in a version. Where a data source has one, the version holds a mask, as the editor shows it.
#When a version is made
After any change to the Check or one of its parts, Mosaic compares the Check with its latest version, and makes a new one only if they differ. A change that reaches the Check another way, such as an agent or an import, is caught at the next run.
Quick edits by one person are folded into one version: a Rule typed and corrected a minute later is one change, not two. Edits stop folding after ten minutes, when somebody else edits, or once a run has used the version. If the edits put the Check back exactly as the version before, the folded version is removed.
A Check made before versions existed gets its first version, Versions start here, the first time anybody opens the tab or changes it.
A Check keeps its last 200 versions.
#Reading a version
Select a version to open it beside the list:
- What changed in it shows each setting that changed against the version before, as lines: removed with a minus, added with a plus. Long runs of unchanged lines are folded.
- Since then shows what has changed between that version and the Check as it stands.
A stored run says which version it ran on, under the Check's name. When the Check has changed since, the warning across the run's page says so too.
#Restoring a version
Restore this version puts the Check back as that version had it. The confirmation lists what will happen: the settings put back, the parts removed because they were made later, and the parts that come back.
- A restore is a new version, named Restored version 4. The Check as it was stays in the list, so a restore can itself be undone.
- The Check keeps its address, schedules, runs and folder.
- Parts made after the version are removed, with their run history and marked rows.
- Parts removed since come back with the ids they had, so whatever pointed at them points at them again.
- A data source keeps the password it has now. One that comes back has none, and Mosaic says which ones need a password typed again.
Anyone who can read the Check can read its versions. Restoring one needs the Editor role. Every restore is recorded in the audit log.