As part of showing the history of privilege records, currently the frontend is handling filling in history events that are not stored in the database, but are useful for displaying visual events on the timeline. To simplify the frontend logic and keep event data changes from breaking the UI. This ticket involves moving that history event generation logic into a new API GET endpoint which will return the history for a privilege record.
As part of this, we need to update our 'dateOfUpdate' logic to be able to specify specific date of update timestamps when generating data events, as there are some cases where we do not want to automatically set the 'dateOfUpdate' field to the current timestamp.
Notes
Tasks
Implementation Notes
This logic was previously defined in this draft PR: #764 but the update broke many of our tests that were dependent on static json files and the needed test update was too complex to manage within the same PR it was originally introduced in. This logic can be re-used when we implement this change.
As part of showing the history of privilege records, currently the frontend is handling filling in history events that are not stored in the database, but are useful for displaying visual events on the timeline. To simplify the frontend logic and keep event data changes from breaking the UI. This ticket involves moving that history event generation logic into a new API GET endpoint which will return the history for a privilege record.
As part of this, we need to update our 'dateOfUpdate' logic to be able to specify specific date of update timestamps when generating data events, as there are some cases where we do not want to automatically set the 'dateOfUpdate' field to the current timestamp.
Notes
Tasks
Implementation Notes
This logic was previously defined in this draft PR: #764 but the update broke many of our tests that were dependent on static json files and the needed test update was too complex to manage within the same PR it was originally introduced in. This logic can be re-used when we implement this change.