plantbreeding / brapi-Java-TestServer

BrAPI Java Test Server
https://brapi.org
MIT License
6 stars 7 forks source link

CrossParents are null in GET plannedcrosses #43

Closed chaneylc closed 3 years ago

chaneylc commented 3 years ago

This POST works: https://test-server.brapi.org/brapi/v2/plannedcrosses

  {
    "additionalInfo": {
      "additionalProp1": "string",
      "additionalProp2": "string",
      "additionalProp3": "string"
    },
    "crossType": "BIPARENTAL",
    "crossingProjectDbId": "19489e27-955c-4757-bd5c-319ef643ba3e",
    "crossingProjectName": "Virtual Hackathon Test",
    "externalReferences": [],
    "parent1": {
      "germplasmDbId": "germplasm3",
      "germplasmName": "Tomatillo Fantastico",
      "observationUnitDbId": "cb60e4f3-27d8-4b99-bb69-642b543fd438",
      "observationUnitName": "testM",
      "parentType": "MALE"
    },
    "parent2": {
      "germplasmDbId": "germplasm2",
      "germplasmName": "Tomatillo Fantastico",
      "observationUnitDbId": "6af79609-357f-44e4-bcad-0c924b18ecc1",
      "observationUnitName": "testF",
      "parentType": "FEMALE"
    },
    "plannedCrossName": "ab"
  }
]

Afterwards, I get the following result:

"result": {
    "data": [
      {
        "additionalInfo": {},
        "crossType": "BIPARENTAL",
        "crossingProjectDbId": "19489e27-955c-4757-bd5c-319ef643ba3e",
        "crossingProjectName": "Virtual Hackathon Test",
        "externalReferences": [],
        "parent1": {
          "germplasmDbId": "germplasm3",
          "germplasmName": "Tomatillo Fantastico",
          "observationUnitDbId": "cb60e4f3-27d8-4b99-bb69-642b543fd438",
          "observationUnitName": "testM",
          "parentType": "MALE"
        },
        "parent2": {
          "germplasmDbId": "germplasm2",
          "germplasmName": "Tomatillo Fantastico",
          "observationUnitDbId": "6af79609-357f-44e4-bcad-0c924b18ecc1",
          "observationUnitName": "testF",
          "parentType": "FEMALE"
        },
        "plannedCrossName": "ab",
        "plannedCrossDbId": "b3fa62b3-18ba-426a-a287-71c0c5e43cd1"
      }
    ]
  }

Next, when I try GET https://test-server.brapi.org/brapi/v2/plannedcrosses The cross parents show up as null:

{
    "additionalInfo": {},
    "crossType": "BIPARENTAL",
    "crossingProjectDbId": "19489e27-955c-4757-bd5c-319ef643ba3e",
    "crossingProjectName": "Virtual Hackathon Test",
    "externalReferences": [],
    "parent1": null,
    "parent2": null,
    "plannedCrossName": "ab",
    "plannedCrossDbId": "b3fa62b3-18ba-426a-a287-71c0c5e43cd1"
  }
BrapiCoordinatorSelby commented 3 years ago

oops, ok I'll take a look this morning