-
Notifications
You must be signed in to change notification settings - Fork 14
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
AYS-644 | Allow Only Country Code 90 for User Registration #439
base: main
Are you sure you want to change the base?
Conversation
@gunesakkayaa checklist'in formatı bozulmuş, buna dikkat edebilir miyiz? |
@@ -17,6 +18,7 @@ public class AysPhoneNumberRequest { | |||
* The country code of the phone number | |||
*/ | |||
@NotBlank | |||
@Pattern(regexp = "90", message = "Currently, only 90 country code is allowed.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bu kısmı @PhoneNumber
validasyonunun içerisine eklersek daha iyi olabilir ✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gunesakkayaa bir de bu düzenlemeyle ilgili testler de ekleyebilir miyiz?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gunesakkayaa @PhoneNumber
validasyonuna eklediysen buradan kaldırabilirsin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tamamdır 👍
@@ -12,6 +13,8 @@ | |||
*/ | |||
class PhoneNumberValidator implements ConstraintValidator<PhoneNumber, AysPhoneNumberRequest> { | |||
|
|||
@Pattern(regexp = "90", message = "Currently, only 90 country code is allowed.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gunesakkayaa burayı diğer validasyonlardakine benzer bir formata çevirebilir
misin ve testler eksik onları da ekleyebilir misin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tamamdır, ilgileniyorum
src/main/java/org/ays/common/util/validation/PhoneNumberValidator.java
Outdated
Show resolved
Hide resolved
src/main/java/org/ays/common/util/validation/PhoneNumberValidator.java
Outdated
Show resolved
Hide resolved
// Verify | ||
Mockito.verify(adminRegistrationCompleteService, Mockito.never()) | ||
.complete(Mockito.anyString(), Mockito.any()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bu teste benzer testleri Phone Number'ın kullanıldığı başka yerlere de ekleyebilir miyiz
…k and the if check was done as desired
…y Evacuation Application should not have a value other than "90"
Checklist
Before submitting your pull request, ensure the following:
Title and Branch Naming Conventions:
standard: Pull Request Naming Conventions.
the Branch Naming Conventions.
Local Testing:
Code Quality:
Documentation:
Testing:
Reviewers and Assignees:
Labels and Associations: