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

Support generators with parameters #31

Merged
merged 3 commits into from
Jun 22, 2024
Merged

Conversation

Bardin08
Copy link
Owner

@Bardin08 Bardin08 commented Jun 20, 2024

This PR allows the use of all current Bogus library generators. The DB Seeder utility uses the following flow to generate the field value:

  1. Get column metadata ( name, type, constraints (not all supported yet));
  2. Fetch the list of Bogus generators metadata. BogusGeneratorDescriptor is used to describe the generator's metadata;
  3. Then, the best generator is chosen using cols type, name, and the Levenshtein distance,
  4. Column data is generated with the chosen generator.

image

@Bardin08 Bardin08 linked an issue Jun 20, 2024 that may be closed by this pull request
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@Bardin08 Bardin08 merged commit b06f8b9 into master Jun 22, 2024
1 of 2 checks passed
@Bardin08 Bardin08 deleted the vbardin/improve-data-generator branch June 22, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TODO: Implement generators with params
1 participant