gigascience / gigadb-website

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

comments in readme files #1265

Open only1chunts opened 1 year ago

only1chunts commented 1 year ago

User story

As a curator I want to know that if I rerun the readme-generator script on a dataset that already has a readme file, then the comments section is maintained in the new readme from the original readme So that we do not lose bespoke comments previously added

Acceptance criteria

Given a dataset exists And it contains a readme_123456.txt file with text in the comment section When I rerun the readme generator script Then the newly generated readme_123456.txt file includes the original comment section

Given legacy comments exist When I run a migration script Then the legacy comments are stored in the database using the new model

Additional Info

This is related to #1153 This is related to #154 The solution to this issue maybe to include the "comment" text within the database somewhere? There is already a DATASET_ATTRIBUTES table that could include the 'comment' attribute (from ATTRIBUTE table) and the value for that could be the text in the comment field of the readme_123456.txt file?

UI for generate a comment

In the dataset admin form, add a comment text field above "URL to redirect" field and ensure it is saved as the value of in dataset_attributes table with attribute id (325) from the attribute table's comment. Add a little (i) icon (and maybe hovering tool tip) to explain what that field is for.

Migration of existing readme file with comments:

Product Backlog Item Ready Checklist

Product Backlog Item Done Checklist

rija commented 1 year ago

Remember to add an entry in the dataset log table when the readme file is updated in the database from the migration script