Skip to content

Tasks: see a rule's history and undo a change

Who does this: anyone who may see the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. reads their history. Going back needs the right to deploy, which the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. gives: restoring and undoing are deploys of their own (Take a change to main).

Every change that reaches main is kept, by file: deploys, approved draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it., deleted rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., restores and undos, and the rules that mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. the table proposed. Nothing on main is ever erased; going back is one more change on top.

Changing a rule’s history does not change past cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.: each cut keeps the results of the rules it was evaluated with. A version restored today counts from the next cut.

  1. Open the field’s file in the editor (from the Explorer, or a ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.’s Id on the Rules page).
  2. Choose History.

You should see History of Email.yaml, with Open drafts first and then Approved changes on main, newest first. Each change shows a short code, the account that made it, its date and time, and a line saying what it was, such as catalog: edit customers/Email.yaml. Open one to see the file before and after it, Side by side or Unified.

The global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. have a history of their own, from ◆ Global rules. The ⎇ beside the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. in the Explorer opens the dataset’s: its mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields.’s changes and the draftsDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. of the whole dataset.

  1. In the field’s history, open the change whose version you want back.
  2. Choose Restore this version. It is offered on every change but the newest, which is the version on main already.
  3. Read the dialog as for a deploy: errors, warnings, which rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. change, and the change line by line. Choose Deploy.

You should see Version deployed to main., and the restore at the top of the history.

An earlier version is checked against the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. as it is now. If it names a field the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. no longer has, or a named ruleNamed rule A check written once in a dataset's global rules, with everything but its id and field; a field's rule starts from it with extends. the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset. no longer declare, the dialog shows the error and it cannot be deployed: open the file, restore the rest by hand and deploy.

  1. In the field’s history, open the newest change.
  2. Choose Undo this change and confirm with Deploy.

The file goes back to how it was before that change. Undoing the file’s very first change leaves it with no rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. Only the newest change has Undo this change: to go back further, use Restore this version on the change before the one you want gone.

Delete rule is a deploy of the file without the rule, so it is in the field’s history like any change. If it is the newest, Undo this change brings the rule back; if not, Restore this version on the change just before it. Other changes made since are lost with the restore, so check the line-by-line view before you deploy.

  • No view says who last changed each line of a file: open the changes one by one.
  • History is by file: there is no history of one ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. across files, nor of every field at once.
  • Who deployed, approved, discarded or restored is also in the audit trailAudit trail The record of who did what and when: changes, runs, and every view of a source's values. Read with the auditor policy., which the auditor policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. reads (Personal data and the audit trail).
What you see What it means and what to do
No Restore this version or Undo this change Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. lets you read the history, not deploy. Or the change is the newest (only Undo).
No changes on main. The file has never been on main: it is new, or only a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. has it.
2 errors: it cannot be deployed, in the dialog The version does not fit the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. as it is now; see above.
The file changed on main since you opened it: open it again. Someone deployed this file meanwhile: close the history, reload the page and look again.

Government Data · Guide v0.8.1