Skip to content

Adverse Actions - GET endpoint for backend to generate 'synthetic' history events  #770

@landonshumway-ia

Description

@landonshumway-ia

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

  • TODO
  • Automated tests
  • API Docs
  • Postman collection
  • PR opened with labels / reviewers / assignee / linked-issue

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions