-
Notifications
You must be signed in to change notification settings - Fork 0
Audit Events for Items and Statistics
Lietze edited this page Jan 5, 2023
·
1 revision
In order to calculate statistics data about the change history of items is saved in audit_events.
When more actions on items are added it is important to add the new audits for those events. In order to do this in the audit_event.rb model another event_type has to be added and in the audit_event_helper a new funktion has to be added.
Audited events are:
- create item
- request lend
- accept lend
- request return
- accept return
- deny return
- add to waitlist
- leave waitlist
Using these audits for statistics will be possible through the use of funktions in the statistics_helper.rb. When writing new statistic methods pleas name them beginning with "statistics_".