Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Store created date and last updated date as part of a CouchDB model when saving/updating #1879

Closed
jackcmeyer opened this issue Mar 4, 2020 · 0 comments 路 Fixed by #1880
Closed
Assignees
Labels
馃殌enhancement an issue/pull request that adds a feature to the application
Projects
Milestone

Comments

@jackcmeyer
Copy link
Member

jackcmeyer commented Mar 4, 2020

馃殌 Feature Proposal

For auditing purposes, we would like to save the created date and last updated date for CouchDB models.

These should be stored as unix timestamps.

Created date should only be updated on object create.
Last Updated should be displayed anytime the model is updated.

Motivation

Auditing

Example

{
	// .... other fields in patient
	createdDate: ${unix timestamp},
	lastUpdatedDate: ${unixTimestamp}, 
}
@jackcmeyer jackcmeyer transferred this issue from HospitalRun/hospitalrun Mar 4, 2020
@jackcmeyer jackcmeyer self-assigned this Mar 4, 2020
@jackcmeyer jackcmeyer added the 馃殌enhancement an issue/pull request that adds a feature to the application label Mar 4, 2020
@jackcmeyer jackcmeyer added this to To do in Version 2.0 via automation Mar 4, 2020
@jackcmeyer jackcmeyer added this to the v2.0.0 milestone Mar 4, 2020
Version 2.0 automation moved this from To do to Done Mar 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
馃殌enhancement an issue/pull request that adds a feature to the application
Projects
Version 2.0
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant