-
Notifications
You must be signed in to change notification settings - Fork 1
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
Property values returned by the API are inconsistent, as list or single value. #86
Comments
@tloubrieu-jpl I'll re-test against the latest imminent version of the API software, as the underlying data is consistent.
[
"urn:nasa:pds:mars2020_mastcamz_ops_raw:data::5.0",
[
"Raw",
"Calibrated"
],
"urn:nasa:pds:mars2020_mastcamz_ops_raw:browse::5.0",
[
"Raw",
"Partially Processed",
"Calibrated",
"Derived"
],
"urn:nasa:pds:msl_apxs_raw:extras::3.0",
[
"Raw"
],
"urn:nasa:pds:lro_diviner_raw:data_raw1::1.0",
[
"Raw"
],
"urn:nasa:pds:lro_lola_edr:data_raw::2.0",
[
"Raw"
],
"urn:nasa:pds:lro_diviner_raw:data_raw2::3.0",
[
"Raw"
],
"urn:nasa:pds:a17hfe_raw_arcsav:document::1.0",
[
"Raw"
],
"urn:nasa:pds:a16lsm_raw_arcsav:document::1.0",
[
"Raw"
],
"urn:nasa:pds:a12sws_raw_arcsav:document::1.0",
[
"Raw"
],
"urn:nasa:pds:a15hfe_raw_arcsav:data::1.0",
[
"Raw"
]
] Latest state of |
Example failing product on geo:
Running sweepers locally now to check whether this may be due to disabled sweeper. |
There are products in the geo database having Not sure why this would be the case with geo, but if it's necessary to ensure that this is not the case for other nodes, this can be fixed by incrementing the repairkit version to ensure repairkit is run on all products again. If it's okay to spot-fix if this is seen again, this ticket can be closed. @tloubrieu-jpl @jordanpadams please advise. |
@jordanpadams @tloubrieu-jpl the issue is in the specification for Currently, array-enforcement repairs are made to properties matching either of the following regex expressions:
so it's expected that |
@alexdunnjpl @jordanpadams for non ops properties we have a patch in the registry-api which transform single values in lists but that only works on application/json format. See for example: curl --get 'https://pds.nasa.gov/api/search/1/classes/collections' I made that development 2 years ago and I also missed the non json serialization of the results in this patch, reason why it does not work in my examples. I think I would transfer ticket to registry-api and make the fix there to be consistent with what has already been done for the application/json format. We can discuss that at the breakout. |
@tloubrieu-jpl roger that - sounds like there's some requirements to untangle |
@tloubrieu-jpl sounds good. I do remember you making that fix, so this all track why we kept running into this even after the fact. |
Checked for duplicates
No - I haven't checked
🐛 Describe the bug
When I did this request in production:
The response is:
The brackets inside the quote should be fixed by as soon as NASA-PDS/registry-api#381 is deployed in production.
But the fact that some values don't have brackets is unexpected since we have registry-sweeper cleaning these data.
Note that the same happens for field example "pds:Time_Coordinates/pds:start_date_time" and I guess a lot of other fields.
🕵️ Expected behavior
I expected [...]
📜 To Reproduce
...
🖥 Environment Info
...
📚 Version of Software Used
No response
🩺 Test Data / Additional context
No response
🦄 Related requirements
🦄 #xyz
⚙️ Engineering Details
No response
The text was updated successfully, but these errors were encountered: