OnTakt: Audit Log

From Knowledge Base
Revision as of 18:55, 20 February 2023 by Andy (talk | contribs)

The audit log tracks changes made to objects in the database and records the user who made the change, when the change was made, and what was changed.

Limitations

The audit log exists to make undoing accidental changes easier, and is not intended to replace regular database backups.

When undoing a deletion, dependents of the object will not be restored. For example, deleting a machine also deletes all of its programs, parts, events, etc., but restoring a machine restores only the machine itself.

Only the object types listed in audited object types are audited.

Change types

  • Created (INSERT): the object was added to the database. The initial state of the object is displayed as "after".
  • Edited (UPDATE): the object was modified. A table will be displayed with a side-by-side comparison of the "before" and "after" states of the object, highlighting the differences.
  • Deleted (DELETE): the object was deleted. The state of the object prior to deletion is displayed as "before". Learn more about the audit log of deleted objects below: Trash.

Audited object types

  • Machines
  • Parts
  • Events
  • Programs
  • Users
  • Tools
  • Tool assemblies
  • Inventory items
  • Inventory points
  • Notification channels
  • Dimensions
  • Maintenance items
  • Maintenance entries
  • Maintenance issues

Trash

The trash tab of the settings window shows the last 10 audited objects that have been deleted from the database.

To view the details of an item that has been deleted, expand it by clicking the down arrow in the actions column.

To restore an item that has been deleted, click the undo button in the actions column.

Viewing the audit log for an object

Machines

  1. Go to the machines page
  2. Expand the machine's card
  3. Click the Edit button
  4. Switch to the Info tab of the machine editor
  5. Under the Management section, click the Audit Log button

Parts

  1. Open the part editor (by clicking on a charted part, clicking Edit on a scrapped part listed under the production chart, etc.)
  2. Switch to the Manage tab
  3. Click the Audit Log button

Programs

  1. Open the Programs page
  2. Expand the drop-down next to a program's edit button
  3. Click Audit Log

Tools

  1. Open the Tools page
  2. Expand the drop-down next to a tool's replace button
  3. Click Audit Log

Tool Assemblies

  1. Open the Tool Assemblies page
  2. Expand the drop-down next to an assembly's history button
  3. Click Audit Log