gigascience / gigadb-website

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

curation log issues #2055

Open only1chunts opened 1 month ago

only1chunts commented 1 month ago

related to #2044

The curation log is not behaving as expected, in addition to the spurious addition of Curator assigned (#2044) there are also additions of "Status changed to" when you click save after NOT making any status change.

The change that I made was to the dataset size value, which was NOT logged in the curation log as being changed.

Eventually we need to go over the actions to ensure all changes are logged and that things that are NOT changed are NOT logged. But that is basically the work in Milestone "I", so not urgent. For now, can we just stop it adding spurious entries when things are NOT changed.

User story

As a curator
I want changes I make not related to changing status to not add a "Status changed to" curation log entry So that I can trust the curation log reflects the change I make

Acceptance criteria

Given I am on the admin page for a dataset
When I edit a field (not the status) and save Then the changes are saved And a curation log entry saying "Changes made to the dataset's fields: \<changed fields>" is added

Given I am on the admin page for a dataset
When I change the dataset upload status to \<status> Then the changes are saved And a curation log entry saying "Status changed to \<status>" is added

Additional Info

Product Backlog Item Ready Checklist

Product Backlog Item Done Checklist

rija commented 1 month ago
Screenshot 2024-10-17 at 11 41 14

I spotted a species name that needed to be italicised (102584). Did it, minted it, added a log. 4 other logs have been added - curator assigned (we know about that) and then 'status changed to'.