gigascience / gigadb-website

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

Fix bug that admin changes made to sample 'species' and 'sample ID' are not saved #2088

Open molcretb opened 1 week ago

molcretb commented 1 week ago

User story

As a curator I want to be able to modify the sample 'species' and 'sample ID' fields in the 'Update sample' window So that the changes are saved

Acceptance criteria

Given I am on a dataset admin page e.g. https://gigadb.org/adminSample/update/id/187935 When I modify the fields 'Species *' or 'Sample ID' AND click to the 'Save' button Then the modifications are saved AND I can see the new values in the Sample admin browser e.g. https://gigadb.org/adminSample/admin

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Admin/Samples' and search sample ID 'test_for_bug_Species_sampleID_tryToRemoveThis'
  2. Click on 'update'
  3. Remove the '_tryToRemoveThis' part of the Sample ID field and click on 'Save'
  4. See error (modification is not saved)

Expected behavior

I want the modified fields 'Species' and 'Sample ID' to be saved after modification.

Screenshots

Image Image Image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.