gbif / pipelines

Pipelines for data processing (GBIF and LivingAtlases)
Apache License 2.0
40 stars 28 forks source link

"protocol" field set incorrectly #935

Closed MattBlissett closed 8 months ago

MattBlissett commented 10 months ago

https://api.gbif-uat.org/v1/occurrence/896499154/verbatim — note protocol: EML, when it should be DWC_ARCHIVE.

The dataset has both endpoints: https://api.gbif-uat.org/v1/dataset/e3b959d6-fcbe-4a28-a166-e4a807c340a0

The code looks clear: https://github.com/gbif/pipelines/blob/97a73fe754e56b6f175e64533af1a2b3d6245463/sdks/core/src/main/java/org/gbif/pipelines/core/interpreters/metadata/MetadataInterpreter.java#L57-L60 so I don't know why this is happening.

(Fairly low priority, this is not a particularly useful field. Bug is also present in prod.)

Record deleted for some reason, so https://www.gbif-uat.org/occurrence/search?protocol=EML&advanced=1

muttcg commented 8 months ago

API: Implemented message body validation and improved error messaging UI: Introduced a "Use latest attempt" checkbox