Error when generation passport without specifying locale#282
Merged
panilya merged 2 commits intoAug 9, 2022
Conversation
Contributor
|
Hmm, if you change the default locale, not a single test breaks? Cause if that's the case, I'd say go for it |
Collaborator
Author
|
This change has side effects, so I will not change the default locale to |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #282 +/- ##
============================================
- Coverage 94.83% 94.78% -0.06%
+ Complexity 1879 1878 -1
============================================
Files 194 194
Lines 3777 3777
Branches 379 379
============================================
- Hits 3582 3580 -2
- Misses 99 100 +1
- Partials 96 97 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@bodiam Now it seems okay, is it a good approach to solve this bug? |
Contributor
|
I think so, I see no issue with this, and it's much better than what we had before, so let's use this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There is "passport.valid resulted in null expression" error when generating passport number without specifying Locale.
Edit:
There is
Locale.ENGLISH-public static final Locale ENGLISH = createConstant("en", "");without specifying country and there isLocale.US-public static final Locale US = createConstant("en", "US");. Datafaker usesLocale.ENGLISHand there are a lot of problems involving this choice, for example: incorrect resolving ofphone_numberformats. When changingFakertoLocale.USeverything works fine. Should I change defaultLocaletoLocale.USinFaker?