Conversation
|
✔️ Deploy Preview for vigilant-wescoff-04e480 ready! 🔨 Explore the source changes: 652f568 🔍 Inspect the deploy log: https://app.netlify.com/sites/vigilant-wescoff-04e480/deploys/61e4c13c519e350007f8a5c9 😎 Browse the preview: https://deploy-preview-182--vigilant-wescoff-04e480.netlify.app |
|
I will review this after 6.0.0 was released |
|
I would expect faker.date.birthday(age: number, refDate?: string | Date)
faker.date.birthday(options: { min: number, max: number }, refDate?: string | Date)So instead of providing a year, I would rather expect to provide an age... |
I have added a |
|
Please migrate all js files to ts. |
I think it was an accidental commit of |
|
I removed the older js files |
|
Have the examples files been committed intentionally? |
|
I didn't notice the example files were removed from the newer structure of the repo. I removed them from this PR too. |
|
Everything that was suggested is added. Please check |
ST-DDT
left a comment
There was a problem hiding this comment.
One last part, otherwise it looks good to me.
Thanks for your contribution.
Please note that this is scheduled for 6.1 so it might take a while before this gets merged.
luciferreeves
left a comment
There was a problem hiding this comment.
Okay, everything is fixed now. Instead of datatype.number() as suggested, I used this.faker.datatype.float({ min: 0, max: 1, precision: 0.0000000000000001 }) to replicate the Math.random() behavior.
|
General comment: you should separate zodiac signs and birthday into two separate PR, as they are totally independent. |
@pkuczynski Maybe from next time, I will target smaller issues/PRs. Too many commits have gone in this PR and it would be hard to undo those changes, split branches and redo again. |
You don't need to split branches. Just create a new one and copy 3 files from this PR regarding date, create new PR from them, and delete in this PR. We don't need the whole commit/review history. This way you increase a chance that one of them will be merged faster. |
|
I see. Although, I still fail to see the usage of 2 PRs now since this once is almost completed review and is targeted for v6.2 and won't be merged anytime soon either. A lot of PRs target multiple features/bugs and doing multiple things in the same PR is not something new. However, I will try to split the PRs if I get time. |
westernZodiacSign()
|
We might want to discuss in team if we want just |
I would prefer just having |
|
@luciferreeves if you like to, you can already at least move the method to the person module now after a rebase If you do not have time, please let me know and I can take this PR over |
|
Team decision We will start with |
|
Done. Ready for Review. I used |
westernZodiacSign()zodiacSign()
Shinigami92
left a comment
There was a problem hiding this comment.
Could you at least add german locales as well? 🙂
I will do that in a separate PR. |
This PR adds the functionality of generating random zodiac signs and birthdate
New Functions:
(Moved to a separate PR)faker.date.birthdate()faker.zodiac.sign()Usage:
faker.date.birthdate():you can also pass a mode to the birthdate object. mode can be
'age'or'year'faker.zodiac.sign():Unit tests for both the functions added.
Sorry for the repeated commit found later. Its a refactor, but I have some
zshextensions which automatically complete commands in the terminal and it picked up on the last commit message.Closes #175