nasa / earthdata-search

Earthdata Search is a web application developed by NASA EOSDIS to enable data discovery, search, comparison, visualization, and access across EOSDIS' Earth Science data holdings.

Home Page:https://search.earthdata.nasa.gov

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Search for a collection that has multi-file granules and click on it to load granules (NSIDC-0481 Prod environment)
  2. Click on the download icon in the list view and observe that multiple files appear
  3. Switch to table view using the toggle in the top-right of the granules panel
  4. Click on the download icon in the table view and observe that nothing happens

Acceptance Criteria

  1. Search for a collection that has multi-file granules and click on it to load granules (NSIDC-0481 in Prod)
  2. Click on the download icon in the list view and observe that multiple files appear
  3. Confirm that clicking on those links downloads the intended file
  4. Switch to table view using the toggle at the top of the granules panel
  5. Click on the download icon in the table view and observe that multiple files appear
  6. 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:

Screen Shot 2020-10-03 at 10 56 59 AM

Notice that from the 'card view' when I click the granule download button it shows a drop down
Screen Shot 2020-10-03 at 10 54 59 AM

But when I am looking at the 'table view' it does not.
Screen Shot 2020-10-03 at 10 56 10 AM

I actually tried that but getting this error in it for some reason:
image

I did npm install and npm start

Edit:
Forgot to log warnings in above screenshot. Getting cors error
image

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.
image

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!

serverless offline did solve the network errors but this error is still there and I still can't see the results directly.
image

Ah! I got it -- try now.

yay working now :D