Skip to content
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

FakeContentTableSeeder now adds meaningfull data in ContactFields #1340

Merged
merged 5 commits into from
May 25, 2018

Conversation

kidk
Copy link

@kidk kidk commented May 15, 2018

This was added for #1284 as I needed meaningful data to test with.

Copy link
Member

@asbiin asbiin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should consider getting the contact_field_type_id from ContactFieldType and get the right data form depending on the name in ContactFieldType ?

@kidk
Copy link
Author

kidk commented May 20, 2018

Thanks @asbiin I now retrieve a random row from ContactFieldType and generate according to that.

What do you think about adding a fake phone number and fake email by default, but still randomly generating the others? This would match the real usage of the tool more I think.

@kidk kidk force-pushed the feature/contact-seed-improvements branch from 0997aa6 to db16508 Compare May 20, 2018 13:11
@asbiin
Copy link
Member

asbiin commented May 24, 2018

@kidk "What do you think about adding a fake phone number and fake email by default, but still randomly generating the others? This would match the real usage of the tool more I think." Well it's interesting to have also cases of contacts without any ContactField as well. So your solution is elegant, I will merge it.

@kidk
Copy link
Author

kidk commented May 25, 2018

Ok for me. Thanks 👍

@asbiin asbiin merged commit fe6c055 into monicahq:master May 25, 2018
@github-actions
Copy link

github-actions bot commented Feb 8, 2021

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants