imls-dmt / imls-dmt-api

imls-dmt-api
Apache License 2.0
1 stars 1 forks source link

Create method of capturing modifications. #44

Closed hbarrett closed 4 years ago

hbarrett commented 4 years ago

Capture "submit" for record creation, "update" for when the record is modified, and "publish" and "un-publish" and track the timestamp and user for the modification.

Psudocode def logdocumentchange(username,action) if newdoc['status'] != olddoc['status']: if newdoc["status"]==0: logdocumentchange("hbarrett","un-publish") else: logdocumentchange("hbarrett","publish")