gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
9 stars 15 forks source link

Change of submitter not logged #335

Open only1chunts opened 5 years ago

only1chunts commented 5 years ago

User story

As a curator I want a curation log entry to be created when I change the submitter So that we have an audit of whenever the submitter of the dataset is being changed

Acceptance criteria

Given a dataset is associated with an incorrect submitter When I am on the dataset admin form And I select a different submitter in the Submitter list And I save the form Then a new curation log entry Is added with "Created By" field set to the currently logged admin And the "Comments" field mentions the previous value for the submitter as well as the new value

Describe the bug when I change the submitter in the admin pages there is nothing saved to the curators log.

To Reproduce

  1. Go to http://gigadb.org/dataset/update/id/440
  2. Change the "Submitter" ID
  3. Click Save
  4. See curators log at bottom of screen, there is no new entry

Expected behavior A new entry in the curators log to say Submitter updated from

ChrisArmit commented 4 years ago

The new log should contain the following details:

Creation Date: Created by: Action: Comments: Last Modified Date: Last Modified By: