gigascience / gigadb-website

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

Use tmp folder to store temp uploaded logos in project admin form #2092

Open luistoptal opened 18 hours ago

luistoptal commented 18 hours ago

Pull request for issue: #376

IMPORTANT: this PR depends on this other PR: https://github.com/gigascience/gigadb-website/pull/2070 , which should be merged first

This is a pull request for the following functionalities:

The logo upload process involves:

This PR simplifies the process by saving the logo in the /tmp folder of the server machine and is suppposed to rely in whatever auto clean up config is setup in the server. The rest of the steps are unchanged

How to test?

You will need to re-run ./up.sh and follow the instructions in https://github.com/gigascience/gigadb-website/pull/2070 to setup the storage to work local dev. Then, if you follow the same instructions to test in the mentioned PR, nothing should change from a frontend perspective.

Also, the playwright tests should pass when you run:

cd playwright
npm install
npm run test:single admin-project-logo-upload.spec.js

How have functionalities been implemented?

Any issues with implementation?


Any changes to automated tests?