Skip to content

Tasks: take a change to main

Who does this: a data steward, with 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., deploys and approves. 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. author whose policy lets them edit rules but not approve them saves 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.. Writing the change itself is in Write, change and test a rule.

Only 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. on main, the approved version, are evaluated. A change gets there in one of two ways:

  • Deploy: whoever may approve takes a file straight to main, after reading what the linterLinter The checker that reads a rules file as it is typed, without data, and marks its errors, which block saving and deploying, and its warnings. (the checker) says and what changes.
  • A draft: whoever may only edit saves the change apart, as a draft; someone who may approve reviews it, then approves or discards it.
  1. Rule author

    1. 1Save as a draftThe change is kept apart; main does not move
  2. Approver

    1. 2ReviewHistory, Open drafts, Review: the changes and any errors
    2. 3ApproveThe draft goes into main; or Discard it
  3. Automatic

    1. 4Next cutEvaluated with the rules on main
From a draft to main: the author saves the change as a draft, an approver reviews it from the field's history and approves or discards it, and the next cut is measured with what is on main. Whoever may approve goes straight to main with Deploy, after the same check.
To… The 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. needs Among the ready-made policies
Open, read and test 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. View rules All of them
Save as a draft, Save on the draft Edit rules quality-steward
Deploy, Approve, Delete rule, restore, undo, import Approve rules and mappings and Manage datasets quality-steward
Discard 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. Manage datasets quality-steward

quality-steward gives all of them, so a steward deploys. On a file opened from main, whoever may deploy sees Deploy, never Save as a draft. For authors whose changes someone else approves, an administrator makes a policy of their own (New policy, under Policies) that allows Edit rules, View rules and View datasets, but not Approve rules and mappings.

Nothing stops an approver from approving a draft they saved themselves: review by someone other than the author is not built yet.

  1. With the file open from main and your change made, choose Deploy.
  2. Read the dialog Deploy Email.yaml to main: the errors that block it, the warnings to look at, 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. it adds, removes or changes, and the change line by line (Side by side or Unified).
  3. Choose Deploy.

You should see Deployed to main: the rules are under their field now. The change is in the field’s history, under your account. It counts from the next cutCut 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. (Run and schedule cuts).

  1. With your change made, choose Save as a draft.
  2. You should see Saved on the draft., the tab marked draft, and the head saying You are editing a draft: what you save stays on it until it is approved. Version shows the draft chosen instead of main.
  3. Go on changing the file and choose Save on the draft as often as you like; each save is kept.
  4. Tell whoever approves which datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. and field: nothing warns them of a new draft yet.

A draft changes one field’s file, or 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.. To change another field, open its file from main and save a draft of its own. A field can have several open drafts; to go back to one, open the field’s file and choose it under Version.

  1. Open the field’s file in the editor and choose History. While the field has drafts, the button shows how many.
  2. Under Open drafts, each draft shows its id, the account that saved it and the date. Choose Review.
  3. Read it in its two tabs:
    • Changes: the draft as a line of saves, newest first, down to Left main. The whole draft shows everything it changes against main; a save shows what that save changed.
    • Files: 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., marked Reads or not, and each 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. file with No errors or its errors. Edit opens the file on the draft.

A draft of the whole datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., such as one made by Split by field, is reviewed the same way from the ⎇ beside the dataset in the Explorer.

  • Approve takes the draft into main. It is greyed with To approve it, 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. must read and 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. must have no errors. until both hold. You should see Draft approved: main now has the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. customers., and the change in the field’s history.
  • Discard deletes the draft without it reaching main, after Discard this draft? It is deleted without going into main. You should see Draft discarded.

Either way the draft leaves Open drafts. An approved change counts from the next cutCut 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..

What you see What it means and what to do
2 errors: it cannot be deployed, in the dialog The file has errors: Cancel, fix them, deploy again.
The linter found errors: nothing was deployed. The same, found as it was sent.
The file changed on main since you opened it: open it again. Someone deployed this file meanwhile. Keep a copy of your change, reload the page, and make it again on the file as it is now.
Not saved: the file has errors. 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. is not saved with errors either: fix them first.
This draft is another column’s: open the file from main to start this one’s. A draft holds one field’s file: open this field’s file from main and save a draft of its own.
main changed this dataset since it was proposed: discard it and propose again. The field’s file (or, for a draft of the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., the dataset) changed on main after the draft was made, for example by another approved draft. Discard it and make the change again from main.
It conflicts with main: discard it and propose again. The same remedy.
The mapping does not read or the rules have errors. Fix the file on the draft (Edit), save, and approve again.
You may not do this. 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. does not let you approve, or discard.
That draft is no longer there. Someone approved or discarded it meanwhile.

See a rule’s history and undo a change, and Run and schedule cuts to measure with what is now on main.

Government Data · Guide v0.8.1