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

Better Error Message In Submit Entity Level Endpoint #1011

Open
Buwujiu opened this issue Jun 7, 2023 · 0 comments
Open

Better Error Message In Submit Entity Level Endpoint #1011

Buwujiu opened this issue Jun 7, 2023 · 0 comments

Comments

@Buwujiu
Copy link
Contributor

Buwujiu commented Jun 7, 2023

Describe the bug

Steps To Reproduce

  1. Submit a followup level exception:
program_name submitter_donor_id submitter_follow_up_id schema requested_core_field requested_exception_value
ALEXIS-INTL Pat-1 FL-1 treatment treatment_intent Not applicable
ALEXIS-INTL Pat-1 FL-1 donor primary_site Not applicable
  1. API response is
{
    "success": false,
    "message": "Cannot create exceptions for entity in program 'ALEXIS-INTL'. Validation errors in exceptions file.",
    "errors": [
        {
            "recordIndex": 1,
            "field": "schema",
            "result": "INVALID",
            "message": "Schema in field does not match file upload."
        },
        {
            "recordIndex": 2,
            "field": "schema",
            "result": "INVALID",
            "message": "Schema in field does not match file upload."
        }
    ]
}

Expected behaviour

Update the error message "Schema in field does not match file upload." to Cannot create exceptions, only specimen and followup schemas are allowed..

@Buwujiu Buwujiu added bug Something isn't working clinical exceptions and removed bug Something isn't working labels Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant