What's new
- Edits go into a draft. Saving a checklist's questions no longer changes what operators see. Each checklist has one draft, saved as you go, and operators keep the current version until the draft is published. A checklist's name, description and Active switch still change straight away.
- A Contributor's save no longer goes live. A Contributor prepares the draft, and the publish bar then reads "Ready for a manager to publish". An Administrator or the Account Owner publishes it with Publish version, adding a note if they like.
- Every machine moves at once. Every machine using the checklist moves to the new version as soon as it's published. Past checks keep theirs.
- Each pre-start check records its version. A check's page and its PDF name it, for example "Heavy Equipment Pre-Start · version 2", so a past check always shows the questions as they were asked.
- When a check arrived. A check's page shows when PreStartGo received it, beside the time it was done, whenever the two are more than two minutes apart, as for a check done offline and synced later.
- The Versions tab. It lists every version with who published it, their note and what changed. Compare shows the changes between any two, and Make current again publishes an old version's questions as the next number.
- No silent overwrites. If someone else changed the draft, or published a version, since you opened it, your save or publish is refused with a message to reload.
- Checks done offline. A check done on an older version after a newer one was published (a phone that was offline and hadn't picked up the new version) is kept and marked for review, and a question made critical since is still treated as critical. A check is judged on the version that was current when it was sent from the phone, even if the phone was offline and syncs later.
- A checklist in use can't be deleted. Deleting a checklist that groups, machines, plant inductions or open services use is refused with a list of what uses it. Move them to another checklist first.
- New checklists. A checklist an Administrator or the Account Owner creates is published as version 1 at once. One a Contributor creates starts as a draft: it isn't sent to phones and can't be set as a default until it's published.
Coming in the next app update
- A pre-start finishes on the version it started on. If a new version is published while an operator is part-way through a pre-start, they finish on the version they started. If the new version added a critical question, that pre-start is marked for review and fails on it. The app then fetches the new version straight away, so the operator's next pre-start uses it.
- New and Changed tags. The first time an operator does a pre-start on a new version, its new and changed questions are tagged New and Changed.
In the API
PATCH /api/v1/checklists/:idwithsectionsorungroupedItemssaves the draft. It needs the draft'sdraftRevisionandbaseVersionNumber, fromGET /api/v1/checklists/:id/draft. Without them it answers422(checklist.draft_revision_required), and with an out-of-date one409(checklist.draft_changedorchecklist.version_superseded). Other fields, such as the name, apply at once, as before.- New endpoints:
GETandDELETE /api/v1/checklists/:id/draft,POST /api/v1/checklists/:id/publish,GET /api/v1/checklists/:id/versions,GET /api/v1/checklists/:id/versions/:versionNumber,POST /api/v1/checklists/:id/versions/:versionNumber/make-currentandGET /api/v1/checklists/:id/compare. - An API key never publishes. Publishing and making a version current again answer
403(api_key.person_required) to an API key. A key withchecklists:writecan still edit the draft, and its edits, which failed with a server error, now save. - A checklist in use.
DELETE /api/v1/checklists/:idon a checklist in use answers409(checklist_template.in_use, orchecklist_template.in_use_servicewhen it's only a default service checklist), and itsdetailscarry the counts and the groups and machines that use it.
What changes on release day
- Your checklists keep their numbers. Each checklist's current questions become its current version, under the number it already shows. Earlier versions were overwritten when they were edited, so the Versions tab lists them as "From before versioning", without their questions.
- Earlier checks. Pre-start checks done before release show "recorded before versioning".
- Contributors' edits wait. From release day, a Contributor's change to a checklist reaches operators only once an Administrator or the Account Owner publishes it.
See Working with Checklist Templates for how checklists work.