EDSC-2895: Direct download button not working for multi-file granules in list view
mreese84 opened this issue · comments
Description
Some collections consist of granules that are "multi-file" granules. In this case, clicking the "Download single granule data" button should display a dropdown of the available files to download. This is not working when a user is in the table view on the granules panel.
Reproduction Steps
- Search for a collection that has multi-file granules and click on it to load granules (NSIDC-0481 Prod environment)
- Click on the download icon in the list view and observe that multiple files appear
- Switch to table view using the toggle in the top-right of the granules panel
- Click on the download icon in the table view and observe that nothing happens
Acceptance Criteria
- Search for a collection that has multi-file granules and click on it to load granules (NSIDC-0481 in Prod)
- Click on the download icon in the list view and observe that multiple files appear
- Confirm that clicking on those links downloads the intended file
- Switch to table view using the toggle at the top of the granules panel
- Click on the download icon in the table view and observe that multiple files appear
- Confirm that clicking on those links downloads the intended file
Hi, I would like give it a try
Go for it! Good luck.
Hi, I did the frontend setup locally and I can see collections but when I open them to load granules, I'm getting error.
Do I have to setup backend and database as well? Is there any way where I can paste sample data (for testing purpose)? Thank you.
Edit:
I'm stuck on an error in migrateDatabase command. I created database edsc_dev
with user postgres
but when I run it with sudo -u postgres serverless invoke --function migrateDatabase
I get permission denied errors. And when I run it with root, then I get password authentication failed for root.
Good morning!
Thankfully, you do not need a database or any backend for this issue.
If you search for NSIDC-0481
you'll see a couple of collections come up, here is a direct link to the first one: http://localhost:8080/search/granules?p=C1923703805-NSIDC_ECS&pg[0][gsk]=-start_date&q=NSIDC-0481&m=1.4210854715202004e-14!0!0!1!0!0%2C2&tl=1585925509!4!!
You can switch between the card view and table view using the small switcher:
Notice that from the 'card view' when I click the granule download button it shows a drop down
That’s odd. Try starting serverless offline (instructions are in the readme) and see if that helps.
Ok yay I found a workaround. So clicking on timeline below brought some results but font awesome icons didn't load. So Injected fontawesome in console and I can see a the dropdown part and table view icons now.
I think this is enough to get it working for now.
That’s odd. Try starting serverless offline (instructions are in the readme) and see if that helps.
Yup I'll check this too and let you know. Thank you for the help!
Ah! I got it -- try now.
yay working now :D