-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fields parameter does not return values if more than one value is requested for CSV format #162
Comments
The lidvids are also replicated with the default response format, see request:
|
@tloubrieu-jpl does this work if you put all the values in the same |
it almost seems like specifying multiple |
also, it looks like the documentation states to do |
@al-niessner FYI ☝️ |
This behaves as expected:
While this does not:
and if we look into the logs we find that curl did this:
which is not equivalent to I tried this
It should look like this for it to work:
This suggests that Hope this helps. |
Hi @al-niessner , I looked a bit more into this issue and put aside the usage of --data-urlencode. I am thinking the problem is on 'complex' fields such as So far I am also seeing the issue only with response format See this request as example: curl -X GET 'https://pds.nasa.gov/api/search/1.0/products?limit=1000&q=pds%3AIdentification_Area.pds%3Aproduct_class%20eq%20%22Product_Observational%22&fields=pds:Science_Facets.pds:discipline_name,lidvid,ops:Harvest_Info.ops:node_name' --header 'Accept:text/csv' Do you remember there is a trick with the property name Thanks, |
Yes, I can easily replicate:
|
Good, thanks @al-niessner |
Works now
|
@gxtchen this should be tested from: the latest stable version of the registry-api (1.0.2) which can be deployed using the latest stable registry docker compose (1.0.2) |
@jimmie I am using registry-api-service 1.0.2, I am not getting the ops:Data_File_Info.ops:creation_date_time |
This has been addressed via #173 and will be deployed in version 1.0.3 as I understand it. |
🐛 Describe the bug
Request with fields parameter and response format CSV does not return multiple fields.
In addition, in our test example, the lidvid in the response are replicated
📜 To Reproduce
🕵️ Expected behavior
All the three fields value should be returned.
The lidvid should not be replicated.
📚 Version of Software Used
version 1.0.1 in production.
🩺 Test Data / Additional context
🏞Screenshots
🖥 System Info
🦄 Related requirements
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: