Open rija opened 3 years ago
This story looks like it's a good opportunity to move away from the legacy stack and use the new stack as described in the systems architecture diagram (Yii2 API endpoints)
One point of note - "Curation logs" are and should be different to audit logs, I agree an audit log should be un-editable and permanent, but a curation log entry should be both editable and deletable. The prupose of a curation log is maintain the notes, comments and thought of the curators to aid in consistent curation and passing over of datasets to different curators during the curation process, so perhaps these should be renamed to "Curation Notes" instead. There is a type of audit log already in place called "History" on the public datasets, this should automatically log any changes made to published datasets. It should NOT include any changes made to datasets whilst they are not published, i.e. the dataset "History" only starts when a dataset is published, the first entry for a dataset will always be the "dataset was set to public" entry.
One point of note - "Curation logs" are and should be different to audit logs, I agree an audit log should be un-editable and permanent, but a curation log entry should be both editable and deletable. The prupose of a curation log is maintain the notes, comments and thought of the curators to aid in consistent curation and passing over of datasets to different curators during the curation process, so perhaps these should be renamed to "Curation Notes" instead. There is a type of audit log already in place called "History" on the public datasets, this should automatically log any changes made to published datasets. It should NOT include any changes made to datasets whilst they are not published, i.e. the dataset "History" only starts when a dataset is published, the first entry for a dataset will always be the "dataset was set to public" entry.
Thank you for clarifying this important difference between curation and audit logs.
User story
Acceptance criteria
Additional Info
This is the first step toward implementing what's described in #701
Suggested schema for Curation Log
UX
I suggest two screens were log entries can be entered as part of this story:
Non functional requirements
I suggest curation log entries of compliance type:
all below is for compliance type:
They are logs, they are meant for auditing, so they are write only. I also suspect that, in a future not too far, some government will want to have a look at this table's record and would frown upon it being modifiable.
For that reason, I have added the Action Type "6. Correction to previous entry" to support the case were there is a mistake made in an entry that need correcting in a new entry (that's how it's done in accounting journals, where new entries are added to compensate for the error instead of editing the erroneous entry).
Product Backlog Item Ready Checklist
Product Backlog Item Done Checklist