Skip to content

Conversation

kpamaran
Copy link
Collaborator

@kpamaran kpamaran commented Aug 29, 2025

Description

Update: This PR is being used as a loose reference to align on how to handle/unify the intermediary data structure(s) between the completion screen data, schema editor, faker script, and so on. Parts of it will be borrowed as needed

Adds a function that parses the LLM's structured output containing the fakerjs mappings that are turned into an executable factoryjs function.

The result of the Schema Editor component (tbd CLOUDP-333854) can be passed to parseFakerMappings, which may satisfy the type { fields: Array<FakerFieldMapping> } or be directly converted to it.

Current gap that can be addressed in another PR is that the probability field is not used.

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@kpamaran kpamaran requested review from ncarbon and jcobis August 29, 2025 21:17
@github-actions github-actions bot added the feat label Aug 29, 2025
@kpamaran kpamaran added the no release notes Fix or feature not for release notes label Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat no release notes Fix or feature not for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant