gigascience / gigadb-website

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

Migrate dataset images from CNGB deployment to AWS deployment #1295

Closed rija closed 10 months ago

rija commented 1 year ago

User story

As a website user I want to see the dataset images So that the dataset page looks more engaging

Acceptance criteria

Given a dataset has an image associated on the CNGB deployment
When I navigate to the corresponding dataset pages on the AWS deployment
Then I can see the dataset images

Additional Info

Loop through all datasets:
   If there is no custom image on the AWS deployment, try scrape the custom image thumbnail from `old.gigadb.org`
   if there is a custom image found from `old.gigadb.org`, save it in the cloud and use it in the AWS deployment
   if there no custom image found from `old.gigadb.org`, use generic image
end loop
report list of dataset that use generic images

Curators will manually update ~100 of the most viewed datasets as soon as possible after the new server is deployed live. Curators will manually add dataset thumbnail images to new datasets as they are generated.

Product Backlog Item Ready Checklist

Product Backlog Item Done Checklist

kencho51 commented 11 months ago

Test image flow for public dataset in the following cases:

Test image flow for private dataset, given PR #1578 has been merged

The above cases have been tested on my dev and staging gigadb website, the case are all passing.

kencho51 commented 10 months ago

Test image flow for public dataset On upstream staging, eg: 100295

pli888 commented 10 months ago

I tested dataset image upload and deletion functionality on https://beta.gigadb.org/dataset/100295. This dataset initially had the generic image on beta site.

Screenshot 2023-12-19 at 11 34 56 AM

Notes:

rija commented 10 months ago

@pli888 has confirmed it works on beta, so closing this ticket