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

Provide a helper to define custom seeding steps for readability #49

Open
lolmaus opened this issue Jan 28, 2020 · 0 comments
Open

Provide a helper to define custom seeding steps for readability #49

lolmaus opened this issue Jan 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@lolmaus
Copy link
Contributor

lolmaus commented Jan 28, 2020

Non-technical staff may have hard time working with "objectIds": [{"id": "1", "type": "product-association"}] format.

To make seeding steps more readable, we might want to provide a helper to define custom seeding steps. The helper would serve the following purposes:

  • Map attribute names to more human-readable and feature-focused equivalents.
  • Define the type of each attribute/relationship for:
    • Runtime type checking.
    • Avoid the visual noise of quotes, curlies and square brackets, which were previously necessary for guessing types.
  • Provide a simple, readable way to specify polymorphic relationships.
  • Offer traits — both Mirage-based and inline.
@lolmaus lolmaus added the enhancement New feature or request label Jan 28, 2020
@lolmaus lolmaus added this to the First stable release milestone Jan 28, 2020
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

No branches or pull requests

1 participant