Aims to resolve #25. Dependent upon #27 being merged first.
Adds a new Audit page, showing a history of activity for the project:
Change requests (shown in their original state, before any subsequent edits)
Change request audit logs
Action logs
Config logs
Includes form for filtering by user, compute group (if applicable), log type, status and date
On load a max of 5 records are shown, with the option to show more using the 'load more' button
The page will also check for and refresh if new data (e.g. a new change request is submitted by another user)
Once a view event page is added, this will require some updating to include appropriate links
Implementation Detail
Adds a new model AuditLogList that handles retrieving and filtering the logs
Each log type has its own partial, card_description and defined json format (for use by the load more function)
This should allow for reasonably straightforward addition of new log forms in the future, by ensuring it follows the same conventions
A future improvement (with more time) would be to have the 'load more' button hit an endpoint that uses a js.erb file to generate and add the additional cards based on the partials, rather than needing to replicate and populate blank versions stored in the main page. https://github.com/openflighthpc/cluster-hub/pull/68 includes an example of this principle
Alternatively this may be a good candidate for generation using React (would require more investigation & React integration)
Aims to resolve #25. Dependent upon #27 being merged first.
Audit
page, showing a history of activity for the project:Implementation Detail
AuditLogList
that handles retrieving and filtering the logscard_description
and defined json format (for use by the load more function)