-
-
Notifications
You must be signed in to change notification settings - Fork 1k
refactor(person): refine usage of PersonEntryDefinitions #3259
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
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for fakerjs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #3259 +/- ##
==========================================
- Coverage 99.97% 99.97% -0.01%
==========================================
Files 2995 2995
Lines 236324 236347 +23
Branches 941 943 +2
==========================================
+ Hits 236267 236287 +20
- Misses 57 60 +3
🚀 New features to boost your workflow:
|
|
I understand wanting to keep this PR small but I think it's difficult to decide if this is the right approach without reviewing what locale files will need to be updated too. To clarify with this approach would we require the "generic", "female" and "male" options never have any items in common? |
|
Team Decision We will change the sexType method to return all SexType values. ST-DDT: Will create a stacked PR for the locale changes.
|
@xDivisionByZerox Currently, the person files aren't sorted, so this by itself causes a massive diff. (Maybe start with only sorting first, because the cleanup PR will use the list for filtering: See #3266 (comment)) |
|
Read for review |
|
Looks good to me, but I think let's wait till after 10.2.0 is released to merge it. Then this as well as the follow on locale changes can be part of 10.3.0. |
|
Thanks for the input @matthewmayer 👍 |
|
Happy for this to merge now 10.2 is out, targeting 10.3 release along with associated cleanup of the locale data. |
900ce83
Shinigami92
left a comment
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.
Approving this in the hope that includeGeneric will become someday default true, for political reasons, diversity and a better world I can live in.
|
We might want to follow up with a draft PR that changes the default of Also, this PR will not show up in the changelog due to being a "refactor". We might want to rephrase the title to "feat(person): add optional parameter includeGeneric to sexType" or something similar. What do you think? |
I can do this/take this. However I think we have a lot of time for that, as I'm not sure when we will start thinking about v11.
👍 really good idea Edit: I will open a Issue/PR when this PR here got merged |
Fixes #3058
genericprefixes #3058Next steps: #3266
Meeting-Notes: 2024-11-07
This PR tries to lay the foundation of what is considered generic and what is specifically sexed:
Dr.)Mrs./Mr.)It also changes the way how definitions are selected:
Please check whether the definitions/jsdoc are clear regarding their intentions and if you consider this definition to be correct.
We will clean up the locale data in separate PRs as this might affect lots of files/locales.