Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frickjack opened this issue Mar 6, 2018 · 0 comments
Labels

Comments

@frickjack
Copy link
Contributor

frickjack commented Mar 6, 2018

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 frickjack added the bug label Mar 6, 2018
@philloooo philloooo changed the title form submission incorrectly linking to projects by submitter_id instead of code PXD-341 ⁃ form submission incorrectly linking to projects by submitter_id instead of code May 30, 2018
@philloooo philloooo added the bug label May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants