PhenoApps / Field-Book

https://fieldbook.phenoapps.org
GNU General Public License v2.0
52 stars 54 forks source link

BrAPI: use externalReferences.referenceId #1070

Open mobreza opened 2 weeks ago

mobreza commented 2 weeks ago

Description

I encountered a problem with when syncing data with a BrAPI 2.1 compatible server. The app is sending the obsolete externalReferences.referenceID and expects to find id when looking up the response against the local database.

referenceID is deprecated by https://github.com/plantbreeding/BrAPI/issues/460 and referenceId should be used instead.

Type of change

This change sets externalReferences.referenceId in addition to the now obsolete referenceID (to maintain backward compatibility).

Checklist:

Changelog entry

BrAPI: Improve 2.1 compatibility