[BI-1632] - Unknown Pedigree not displaying for BrAPI-server programs#217
[BI-1632] - Unknown Pedigree not displaying for BrAPI-server programs#217
Conversation
davedrp
left a comment
There was a problem hiding this comment.
Test Failed:
PROGRAM TYPE: breedbase or BrAPI
Scenario 1: Female Parent is "0" and Male Parent is a known Entry Number
Expected Results: Male Parent should be displayed in Import Confirmation Page, All Germplasm Table, and Germplasm Details page.
Actual Result: Male Parent is <BLANK> in Import Confirmation Page, All Germplasm Table, or Germplasm Details page.
PROGRAM TYPE: breedbase or BrAPI
Scenario 2: Female Parent is <BLANK> and Male Parent is "0" (UNKNOWN)
Expected Results: Male Parent should be displayed as "UNKNOWN" in Import Confirmation Page, All Germplasm Table, and Germplasm Details page.
Actual Result: Male Parent is <BLANK> in Import Confirmation Page, All Germplasm Table, or Germplasm Details page.
Presently we're not supporting pedigree combinations with only male parent or unknown female/known male. Only "Unknown Female", "Unknown Female/Unknown Male", "Known Female/Unknown Male" are supported. |
Description
Story: BI-1632 - Unknown Pedigree not displaying for BrAPI-server programs
Only valid GIDs can be stored in the backend, so in the case of Unknown or Unknown/Unknown pedigrees, what is stored in the backend for pedigree is null, with the Unknown information being stored in additionalInfo and retrieved upon display. However, BrAPIGermplasmDAO:processGermplasmForDisplay only sets pedigree values, including GERMPLASM_PEDIGREE_BY_NAME, when the pedigree stored is not null. This is not a problem in Breedbase because what is returned is always “NA/NA” so the logic to set pedigree string always triggers. For BrAPI, null was being returned in the case of pedigrees with only Unknown germplasm, so the display pedigree values were not being set.
This change removes the clause checking for non-null pedigree (as it effectively was already always true in the Breedbase case) to enable setting pedigree display values in Unknown and Unknown/Unknown cases.
Dependencies
bi-web/develop
Testing
For BB and BrAPI programs
Checklist: