Closed dlebauer closed 4 years ago
Let me look into this along with Max. I haven't done much with any deployed instances in a while so I am not sure if and when anything was changed.
this was related to a discussion we had about the timing out of large queries because of the massive number of observations. observations are only included when you specify a specific observationUnitDbId (i.e. plotname).
https://brapi.workbench.terraref.org/brapi/v1/observationunits?studyDbId=6000000010&observationUnitDbId=MAC%20Field%20Scanner%20Season%204%20Range%2051%20Column%208%20E try that one, for example
for readability, I just added to your URL:
&observationUnitDbId=MAC Field Scanner Season 4 Range 51 Column 8 E
Is there a better way to handle this? It seems like this choice not to return data because it is too big may cause confusion down the line, as it has for @KristinaRiemer and I when trying to use this endpoint ...
For example, could we reduce the issue w/ large results if we return jsonb?
also:
will take a look, should be able to quickly address duplication at least, should have time tomorrow.
I was just trying to download our traits via brapi … the observationsunits endpoint, e.g. https://terraref.org/brapi/v1/observationunits?studyDbId=6000000010, is very different from the example in the api documentation https://terraref.org/brapi/v1/ui/#/ , e.g. it doesnt have the observation elements etc. I think these used to be there … do you know what happened or am I hitting the wrong endpoint?
e.g. this is the example from the documentation:
and this is the result that I am getting:
cc @KristinaRiemer @robkooper @Chris-Schnaufer @max-zilla