NASA-PDS / doi-ui

The web interface for the PDS DOI Service providing the ability management PDS archive DOIs. See the DOI Service for more details on the available capabilities. https://nasa-pds.github.io/doi-service/
Apache License 2.0
0 stars 4 forks source link

when a single result is searched it does not show in the list ? #122

Closed tloubrieu-jpl closed 2 years ago

tloubrieu-jpl commented 2 years ago

๐Ÿ› Describe the bug

In a local deployment I am getting this result for a search:

image

The API search request is: http://localhost:8080/PDS_APIs/pds_doi_api/0.2/dois?ids=*insight_cameras%3A%3A5.0*

gives the following result:

[
  {
    "doi": "10.13143/a2t9-za69",
    "identifier": "urn:nasa:pds:insight_cameras::5.0",
    "node": "eng",
    "status": "draft",
    "submitter": "loubrieu@jpl.nasa.gov",
    "title": "Laboratory Shocked Feldspars Collection #1",
    "update_date": "2022-03-11T00:38:48+00:00"
  }
]

๐Ÿ“œ To Reproduce

Steps to reproduce the behavior:

  1. Go to 'ui' search
  2. Search for a string which returns a single result
  3. See error saying 1 result is found but not showing it in the table

๐Ÿ•ต๏ธ Expected behavior

The result should show in the table.

๐Ÿ“š Version of Software Used

latest version on main branch

๐Ÿฉบ Test Data / Additional context

๐ŸžScreenshots

๐Ÿ–ฅ System Info


๐Ÿฆ„ Related requirements

โš™๏ธ Engineering Details

tloubrieu-jpl commented 2 years ago

Actually it is not because of the single result because now I can see a single result, see screenshot

image

The cause might be the status a this single result which was only reserved when I first made the search.

I am thinking the bug might be a discrepancy between the way the number of rows is counted and the rows which are actually displayed.

eddiesarevalo commented 2 years ago

@tloubrieu-jpl I wasn't able to reproduce this one. The value that you pointed out will return an empty array. When I try to to get a different single value it will show. Also to test I hard coded the response: [ { "doi": "10.13143/a2t9-za69", "identifier": "urn:nasa:pds:insight_cameras::5.0", "node": "eng", "status": "draft", "submitter": "loubrieu@jpl.nasa.gov", "title": "Laboratory Shocked Feldspars Collection #1", "update_date": "2022-03-11T00:38:48+00:00" }] And it will still show that single value.

Maybe there was a different kind of error that occured for you in that image?

eddiesarevalo commented 2 years ago

@tloubrieu-jpl l did a lot more testing but I still can't reproduce this one. Are you still getting this? If not maybe we can close this one?

tloubrieu-jpl commented 2 years ago

We are closing this ticket because we are not able to reproduce