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

Create utility function to generate N random users for component testing #17

Open
antoniolofiego opened this issue Jul 29, 2020 · 3 comments · Fixed by #24
Open

Create utility function to generate N random users for component testing #17

antoniolofiego opened this issue Jul 29, 2020 · 3 comments · Fixed by #24
Assignees
Labels
enhancement New feature or request

Comments

@antoniolofiego
Copy link
Collaborator

antoniolofiego commented Jul 29, 2020

Reasoning

While the backend APIs are a WIP, we can have a function that easily generates mock data for users in the shape we need to develop the frontend.

Basic functionality

It should return a JSON file that includes a user-specified number of profiles, including links to a profile image and all the data that the regular profile API would return.

What could work

Unsplash for random user images, Mockaroo or casual for data generation. Given that this should be programmatic, casual might work best.

@antoniolofiego antoniolofiego added the enhancement New feature or request label Jul 29, 2020
@antoniolofiego antoniolofiego added this to the Full component suite milestone Jul 29, 2020
@antoniolofiego antoniolofiego self-assigned this Jul 29, 2020
@antoniolofiego
Copy link
Collaborator Author

random-profile-generator is a suitable package that could be tweaked for our use case.

@antoniolofiego
Copy link
Collaborator Author

antoniolofiego commented Jul 29, 2020

StyleGAN-based plugin or LoremPicsum for profile image generation.

@quinceleaf
Copy link

@antoniolofiego I've used Faker for many projects in the past, dial up whatever type of data you want. The repo I linked to is for python (since that's what I've used before) but it was preceded/inspired by Faker modules for several other langs, too

@Bruck1701 Bruck1701 linked a pull request Jul 30, 2020 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants