jbfaden / esdc-hapi

Prototype HAPI Java server plug-in for ESDC
0 stars 0 forks source link

availability sets has repeat records #8

Open jbfaden opened 8 months ago

jbfaden commented 8 months ago

This dataset would return multiple repeat records: String id= "availability/solo_L2_mag-rtn-normal"; String t= "2023-01-01T00:00Z/2023-01-03T00:00Z";

This is because the TAP response has both solo_L2_mag-rtn-normal and solo_L2_mag-rtn-normal-1-minute, and the TAP query uses "LIKE".

The code now checks that it is an exact match, but there is probably a better way to form the query.

jbfaden commented 8 months ago

See https://github.com/jbfaden/esdc-hapi/blob/59169da4d07a0d48c919e90f44efe8ec17667a15/src/org/esdc/hapi/EsdcAvailabilityHapiRecordSource.java#L45 for how to the TAP request is formed.