Jira link: https://breedinginsight.atlassian.net/browse/BI-1642
User Story
As a BrAPI user
I want to be able to define additionalInfo values for a List object stored in BreedBase
So that I can include additional contextual information about a list
Techspecs
- Create a table in the
sgn_people schema named listprop with columns:
- listprop_id - auto incrementing integer, PK, not null
- list_id - integer, FK to
list.list_id
- type_id - integer, FK to
public.cvterm.cvtermId
- value - jsonb
- rank - integer, default zero
- Create a class in
lib/CXGN/List named ListProp.pm
- class should be similar to
lib/CXGN/Stock/OrderBatch.pm
- Update
lib/CXGN/BrAPI/v2/List.pm->store to store additionalInfo via the ListProp class when storing a list
- Update
lib/CXGN/BrAPI/v2/List.pm->search to fetch additionalInfo via the ListProp class when fetching lists