-
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
#111 | Phone Number Validations and Other Validations Have Been Fixed #114
Conversation
@agitrubard , @Rapter1990 @skayikci Mecburen Veritabanında değişiklik yapmak zorunda kaldım koaly bir şekilde işin halledilebilmesi için, Bir sıkıntı var ise haber edersiniz. |
This reverts commit 2ded962.
LineNumber kısmı 11 hanelide hata vermeye başladığı için, Onu String, ve veri tabanı kısmında Varchar(10) yaptım, |
@ilkerCelimli branch standartlarına uyması açısından bundan sonraki geliştirmelerde branch açtığın zaman aşağıdaki branch standartlarına uygun olacak şekilde açabilir misin? Naming Conventions of Branchs
Naming Conventions of Pull Requests
|
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.
Benzer geliştirmeleri AdminUserEntity
içerisinde de yapmalıyız. Ek olarak Admin Kayıt ve Kullanıcı Kayıt akışındaki requestlerde bulunan AysPhoneNumber
objesi içerisinde de bu kısıtlamaları yapmalıyız. Fakat burada neden String kullanma ihtiyacımız olduğunu tam olarak anlayamadım. @Range
anotasyonu ile kısıtlayabiliyoruz, veritabanında da INTEGER(10)
olarak uzunluğunu belirtebiliyoruz.
changed LINE_NUMER big int -> varchar(5)
Veritabanı tarafını bilemem, MYSQL pek kullanmadım, String kullanılma sebebi, Her bir character'in 1 byte olması ve varchar(10) durumunda bellekte sadece 10 byte alan açılması,bu da performans artışı sağlar, BIGINT 2^63 tü sanırsam kadar default olarak alan açtığı için, buda veri boyutunu büyük oranda arttırır. Bir başka String kullanma sebebi ise, telefon no'ları için konuşmak gerekirse String üzerinde işlem yapması daha basit olacağı için, @range anotasyonu için konuşmak gerekirse,Açıkcası hiç kullanmamıştım onu , o yüzden yorum yapamıcam, |
@ilkerCelimli uygun olduğunda birlikte inceleyelim mi? |
@ilkerCelimli ek olarak aşağıdaki yorum içerisinde yazdığım standartları gözden geçirebilir misin? |
Standartlara uygun olarak olarak değiştirdim PR ismini, Tabi müsait ikimizde müsait olduğumuzda bakalım,Ama şuan bir sıkıntı olmaması gerek. |
changed LINE_NUMER varchar(10) -> INTEGER(10)
@agitrubard Gerekli düzenlemeyi yaptım, Bi kontrol edebilirseniz sevinirim. |
src/test/java/com/ays/admin_user/service/impl/AdminUserRegisterServiceImplTest.java
Show resolved
Hide resolved
src/main/java/com/ays/admin_user/service/impl/AdminUserRegisterServiceImpl.java
Outdated
Show resolved
Hide resolved
CountryCode ve LineNumber alanları için bazı uyumsuzluklar mevcut.
Kaynaklar: |
@agitrubard değiliklikleri yaptım, Ama 13 'e 7 yapsak daha iyi olucak sanırsam |
@ilkerCelimli Selamlar, Naming Conventions of Pull Requests
|
@ilkerCelimli bu konuda standart bu şekildeyse böyle güncelleyebiliriz, fakat çalışmama gibi bir problem ile karşılaşmamak için detaylı testlerini yapmamız sağlıklı olur. Unit test'ten bahsetmiyorum, bunun dışındaki manuel http request ile yapılan testlerden bahsediyorum. Ek olarak uzunluk ile ilgili de bir unit test case yazarak bu geliştirmeyi en doğru şekilde cover etmiş oluruz. |
…o phone-number-length-limited
@ilkerCelimli eline sağlık, |
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.
LGTM!
PULL REQUEST TEMPLATE
Description
Phone Number Validations and Other Validations Have Been Fixed
Related Issue
As we defined lineNumber and countryCode as Long, we have some problems to handle with so that we can convert all these variables to String
Proposed Changes
Please provide a brief and descriptive title for your pull request, summarizing the changes or features introduced. It
should be in English and clearly indicate the purpose of the pull request. Optionally, you can provide a more detailed
description of what you have done.
Additional Information
If there's any additional information or context that the reviewers should know, please provide it here.
Checklist
Please check the following before submitting your pull request:
board or milestone. However, if there is no issue, the pull request should be associated with the appropriate project
board (BE Board, In Review column) and milestone to track the progress.
Reviewers
The default project maintainers and team members will be automatically assigned as reviewers for this pull request.