-
-
Notifications
You must be signed in to change notification settings - Fork 920
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
refactor(person)!: flatten jobs definitions #2505
refactor(person)!: flatten jobs definitions #2505
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #2505 +/- ##
==========================================
- Coverage 99.57% 99.56% -0.01%
==========================================
Files 2815 2846 +31
Lines 249845 249892 +47
Branches 1064 1055 -9
==========================================
+ Hits 248777 248815 +38
+ Misses 1068 1048 -20
- Partials 0 29 +29
|
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.
Keep in mind that the prebuild faker instances contain more locale data than the actual locale. You should itterate over the local objects instead in your generation script. This should also reduce the diff significantly (due to current false positives).
My bad I thought rawDefinitions was for that. Will fix for the locales that were previously inheriting. |
I noticed that the |
If the files are just plain copies, we can remove them now and the users wouldnt get any breakages. IMO We dont have to wait for v9 with that. |
Please fix the "merge conflicts" (although I think it will most likely merge locally without issues). |
if this won't be merged until v9 is it worth bothering to fix merge conflicts until we are ready to start on v9? |
No, there is no need to fix them now. I just left a comment to go along with the needs rebase label for improved visibility. |
OK :D 90% of my notifications for this project are about merge commits, so i wont bother adding to the volume for now! |
I wished there was a way to turn them off (or get them merged 😉)... |
# Conflicts: # src/locales/en/person/index.ts # src/locales/es/person/index.ts # src/locales/fr/person/index.ts # src/locales/fr/person/title.ts # src/modules/person/index.ts # test/all-functional.spec.ts
Ready for review |
3943cc9
3 approving reviews. Enabling auto-merge. |
Currently the definitions for jobArea, jobDescriptor and jobType methods
are nested inside a title.ts file. This causes undesired errors (ref #2503 ) when some
of the job definitions are supplied but not others (e.g. in fr, ur, ar).
This removes the special cases, and just makes job_area, job_descriptor
and job_title simple string arrays like other definitions.
The bulk locale changes were done with a simple script followed by linting.
This changes definition files but we generally don't consider those breaking changes when only accessed via faker.helpers.fake? Could be deferred until 9.0 if considered breaking.