Replies: 1 comment 1 reply
-
Am I wrong in thinking this is related to #471 and we just shouldn't be storing the name or synonym but allowing the user to select which is displayed? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note: This is related to the Fieldbook Observation Syncing code.
The current Observation syncing pipeline is as follows:
The issue is that Fieldbook will store internally the first synonym if available, but the GET observation response's observationVariableDBId will be the actual trait name. This does not throw an error, but rather when going to the collect screen, the observations do not show up as the names are different. This can be fixed by changing the code in the BrAPI Service classes for the getTraits function to favor the Trait name over the synonym as then the names will match and the link is made between the observation, the trait and the plot.
What would be the best way to handle this? As it stands Fieldbook cannot likely make the connection between the Variable name coming from the observation response and the name that is currently stored in the DB. Is there a preferred way to pass around a map containing all the synonyms -> stored trait name which then the observation code could just look up the stored name.
Beta Was this translation helpful? Give feedback.
All reactions