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

AYS-644 | Allow Only Country Code 90 for User Registration #439

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

gunesakkayaa
Copy link
Contributor

@gunesakkayaa gunesakkayaa commented Feb 2, 2025

Checklist

Before submitting your pull request, ensure the following:

  • Title and Branch Naming Conventions:

  • Local Testing:

    • I have tested my changes locally on Postman, and they are working as expected.
  • Code Quality:

    • The code is formatted according to the project's coding guidelines and style.
    • The code has been reviewed to ensure its quality.
    • The code does not contain any issues flagged by SonarLint.
  • Documentation:

    • Necessary documentation has been added or existing documentation has been updated, specifically detailing changes made in Postman.
  • Testing:

    • Relevant unit tests have been written and included.
    • Relevant integration tests have been written and included.
  • Reviewers and Assignees:

    • Default reviewers have been assigned to this pull request.
    • Assignees have been added if necessary.
  • Labels and Associations:

    • No specific actions are required in the Labels and Associations section for this pull request.

@agitrubard
Copy link
Collaborator

@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.")
Copy link
Collaborator

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 ✅

Copy link
Collaborator

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?

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tamamdır 👍

@gunesakkayaa gunesakkayaa reopened this Feb 3, 2025
@@ -12,6 +13,8 @@
*/
class PhoneNumberValidator implements ConstraintValidator<PhoneNumber, AysPhoneNumberRequest> {

@Pattern(regexp = "90", message = "Currently, only 90 country code is allowed.")
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tamamdır, ilgileniyorum

@agitrubard agitrubard marked this pull request as draft February 9, 2025 12:03
sarpkan00
sarpkan00 previously approved these changes Feb 9, 2025
// Verify
Mockito.verify(adminRegistrationCompleteService, Mockito.never())
.complete(Mockito.anyString(), Mockito.any());
}
Copy link
Collaborator

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

@agitrubard agitrubard marked this pull request as ready for review February 11, 2025 15:25
…y Evacuation Application should not have a value other than "90"
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.

5 participants