Skip to content

BadRequest exception handling was added#1894

Merged
anton-abushkevich merged 2 commits intomasterfrom
issue-1890-added_handling_for_bad_request_exception
Jun 15, 2021
Merged

BadRequest exception handling was added#1894
anton-abushkevich merged 2 commits intomasterfrom
issue-1890-added_handling_for_bad_request_exception

Conversation

@ssuvorov-fls
Copy link
Contributor

Some translations were changed
fixes #1890

Some translations were changed(#1892)
"numberOfPatients": "* 환자 수",
"numberOfPatientsPlaceholder": "숫자 입력",
"numberOfPatientsEmpty": "환자 수는 양의 정수여야 합니다",
"numberOfPatientsEmpty": "Number of patients must be a positive integer between 1 and 500",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a korean translation here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we need translations, but I can't get them now. Besides there're some other untranslated constants

"numberOfPatients": "*患者数量",
"numberOfPatientsPlaceholder": "输入一个数字",
"numberOfPatientsEmpty": "患者数量必须正整数",
"numberOfPatientsEmpty": "Number of patients must be a positive integer between 1 and 500",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, should this be translated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we need translations, but I can't get them now. Besides there're some other untranslated constants

@@ -2621,7 +2621,7 @@
"sampleNameEmpty": "Sample name cannot be empty",
"numberOfPatients": "* Number of patients",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add text "(from 1 to 500)" to numberOfPatients. To all translations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@chrisknoll chrisknoll self-requested a review June 14, 2021 13:57
Copy link
Collaborator

@chrisknoll chrisknoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the information. This looks good to me, but defer to any other concerns that others raise.

@anton-abushkevich anton-abushkevich merged commit 4c53959 into master Jun 15, 2021
@delete-merged-branch delete-merged-branch bot deleted the issue-1890-added_handling_for_bad_request_exception branch June 15, 2021 10:09
ssuvorov-fls added a commit that referenced this pull request Jun 15, 2021
* BadRequest exception handling was added
Some translations were changed(#1892)

* Some translations were changed(#1890)

Co-authored-by: Sergey Suvorov <sergey.suvorov@odysseusinc.com>
(cherry picked from commit 4c53959)
m0nhawk pushed a commit to uc-cdis/WebAPI that referenced this pull request Nov 1, 2021
* BadRequest exception handling was added
Some translations were changed(OHDSI#1892)

* Some translations were changed(OHDSI#1890)

Co-authored-by: Sergey Suvorov <sergey.suvorov@odysseusinc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BadRequestException: sample parameter size must fall in the range (1, 500)

3 participants