specs/models/M_ACTIVITY

Activity Record

Activity records are generated by certain types of changes to a model in the system. They are immutable, and can be retrieved in a reverse chronological timeline to give an audit log of actions.

Fields

All activity records have these fields:

NameDescription
User IDThe unique identifier of the logged in user who made the change
DateA timestamp of when the action occured

The fields saved on the activity record also have access to additional fields based on the model and change type. Every record also contains a reference to the ID of that model. Activity record types in the system:

Activity Records for Users:

Change TypeAdditional Fields
Created
Deactivated
Reactivated
Role changedPrevious role
New role

Activity Records for Apps:

Change TypeAdditional Fields
Approval of a certain type disabledApproval type
Approval of a certain type enabledApproval type
Changed app groupPrevious app group
New app group
Created
Deleted
Exported
Imported
RenamedPrevious name
New name
Restored
User permission addedUser added ID
Permission type
User permission changedUser added ID
Previous permission type
New permission type
User added as approver of a certain type to an appUser added ID
Approval type
User removed as approver of a certain type to an appUser removed ID
Approval type

Activity Records for App Versions:

Change TypeAdditional Fields
Version submitted for approval
Approval submission cancelled
Version published (all approvals made)List of approvers and associated approval types
Approval Type acceptedApproval type
Approver ID
Approval Type declinedApproval type
Approver ID

Activity Records for App Groups:

Change TypeAdditional Fields
Changed app groupPrevious app group
New app group
Created
Deleted
Exported
Imported
RenamedPrevious name
New name
Restored

Activity Records for Dashboards:

Change TypeAdditional Fields
Created

Activity Records for Shop Floor:

Change TypeAdditional Fields
Added gateway to stationGateway
Station
Added station app assignmentApp assignment
Station
Assigned display device to stationDisplay device
Station
Changing timezone of stationPrevious timezone
New timezone
Station
Created stationStation
Created station groupStation group
Deleted stationStation
Deleted station groupStation group
Removed display deviceDisplay device
Removed gatewayGateway
Removed station app assignmentApp assignment
Station
Removed station gatewayGateway
Station
Renamed stationPrevious name
New name
Renamed station groupPrevious name
New name
Replaced display device for stationNew display device
Previous display device
Station
Updated station app assignmentNew assignment
Previous assignment
Station

Tests

IDName
QA-T126News Feed - Activity History and Activity Records

Requirements

No requirements