gigascience / gigadb-website

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

Hard coded dataset types in home page HTML E678 #383

Open only1chunts opened 4 years ago

only1chunts commented 4 years ago

User story

As a site administrator I want the GigaDB.org homepage list of dataset types to include the same list of dataset types as we have in the curator admin pages So that the website is kept upto date with any changes we make to the list of dataset types in the admin pages

Acceptance criteria

Given a dataset type is in the admin pages When a user visits the gigadb.org home page Then they can see a link in the Dataset types section to that type

Given I update a dataset type name in the admin pages When a user visits the gigadb.org home page Then they see the updated dataset type in the dataset type section of that page.

Additional Info

Describe the functionality The home page contains a summary of the number of datasets of each particular dataset type. It appears it has been created using the textual names of the dataset types rather than actually looking in the database to find the names of the dataset types! This means that if we want to change the dataset type name (e.g. Proteomic to Proteomics) it crashes the GigaDB.org home page.

To Reproduce

  1. Go to http://gigadb.org/adminDatasetType/admin change one of the dataset type names & save changes.
  2. Goto http://gigadb.org
  3. see a database error message

Expected behavior If the dataset name is changed in the admin pages the change should be reflected on the homepage (as well as each of the datasets using that dataset type).

Additional context It is expected that the number of different dataset types will grow, currently we have 21 is use in the database, only 20 of those are displayed on the home page. Presumably thats because the homepage HTML code needs to be changed whenever a new dataset type is added and it wasn't! The home page should be using all dataset types from the database and automatically update when a new dataset type is added. NB - the count of datasets using each particular type shown on the home page should only be those datasets set to PUBLIC status. The count in the admin pages should include all statuses

Product Backlog Item Ready Checklist

Product Backlog Item Done Checklist

This Story is part of Epic #678

only1chunts commented 3 years ago

probably part of same Epic as #288

rija commented 2 years ago

Use this spreadsheet as source for the dataset type: https://docs.google.com/spreadsheets/d/1shH-QK-UT9HD88ysWFHVq5xUenxAmcbg/edit?usp=sharing&ouid=113349048176711233698&rtpof=true&sd=true

only1chunts commented 1 year ago

I think this can be decoupled from Epic #678 as its about the display on the home page not the use of the SRAO in the database. The only point of consideration related to the SRAO is the fact that there will be more dataset types to be displayed in the future.