data-portal icon indicating copy to clipboard operation
data-portal copied to clipboard

PXD-341 ⁃ form submission incorrectly linking to projects by submitter_id instead of code

Open frickjack opened this issue 6 years ago • 0 comments

from @cgmeyer

#tried submitting this from "use form submission" AFTER removing the quotes from the integer "4":

{
  "type": "family",
  "melanomas_in_family": 4,
  "projects": [
    {
      "submitter_id": "genomel-wsi-fammel-leiden"
    }
  ],
  "submitter_id": "Leiden-256"
}

# and get this:



[
    {
        "action": "update",
        "errors": [
            {
                "keys": [],
                "message": "Cannot link entity to project test under wsi-fammel-leiden endpoint",
                "type": "INVALID_PERMISSIONS"
            },
            {
                "keys": [],
                "message": "Cannot link entity to project NCI-CMMUSA under wsi-fammel-leiden endpoint",
                "type": "INVALID_PERMISSIONS"
            },
            {
                "keys": [],
                "message": "Cannot link entity to project wsi-fammel-brisbane under wsi-fammel-leiden endpoint",
                "type": "INVALID_PERMISSIONS"
            },
            {
                "keys": [],
                "message": "Cannot link entity to project wsi-fammel-stockholm under wsi-fammel-leiden endpoint",
                "type": "INVALID_PERMISSIONS"
            },
            {
                "keys": [],
                "message": "Cannot link entity to project wsi-fammel-barcelona under wsi-fammel-leiden endpoint",
                "type": "INVALID_PERMISSIONS"
            },
            {
                "keys": [],
                "message": "Cannot link entity to project wsi-fammel-penn under wsi-fammel-leiden endpoint",
                "type": "INVALID_PERMISSIONS"
            },
            {
                "keys": [],
                "message": "Cannot link entity to project wsi-fammel-sydney under wsi-fammel-leiden endpoint",
                "type": "INVALID_PERMISSIONS"
            },
            {
                "keys": [
                    "projects"
                ],
                "message": "More than one link destination found for projects",
                "type": "INVALID_LINK"
            }
        ],
        "id": "23ab48dd-2c2e-4c53-bc0b-9606bf9ebe5b",
        "related_cases": [],
        "type": "family",
        "unique_keys": [
            {
                "project_id": "genomel-wsi-fammel-leiden",
                "submitter_id": "Leiden-256"
            }
        ],
        "valid": false,
        "warnings": []
    }
]

frickjack avatar Mar 06 '18 17:03 frickjack