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 box_request and box seed data from factories #311

Open
maebeale opened this issue Oct 12, 2019 · 1 comment
Open

Create box_request and box seed data from factories #311

maebeale opened this issue Oct 12, 2019 · 1 comment

Comments

@maebeale
Copy link
Collaborator

maebeale commented Oct 12, 2019

Depends on #310

Using the factories, we'd like to create seeds to create ~30-50 box_requests (and boxes) with the to represent all parts of the box_request/box lifecycle.
Here's a SO re referencing factories in seeds (https://stackoverflow.com/questions/5382295/how-can-i-use-factory-girl-in-db-seeds).

We'd like ~30-50 box_requests with random/different box_request_abuse_types that are calling list of traits, e.g. :designed_box, :review_completed, :design_claimed and additional traits like :research_needed
(Note that abuse_type seeds were generated by the dev:setup command which called the dev seed data rake task.)

Reviewing a box creates some associated box_items, but we'd want to reference the trait intentionally so some boxes have at least one item that have "research required" and some that have none. That way when we walk the box through the lifecycle (requested, designed, researched, assembled, shipped, followed_up), we'll have some that skip the research step and some that don't.

@maebeale maebeale added Priority: Medium and removed Hacktoberfest Hacktoberfest issues for your resolution! Status: Blocked labels Feb 12, 2020
@zachhweed
Copy link
Contributor

I'll pick this up following the PR on #310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants