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 new seed data in load_sample_data #2072

Open
sauloperez opened this Issue Feb 7, 2018 · 6 comments

Comments

Projects
None yet
3 participants
@sauloperez
Copy link
Contributor

sauloperez commented Feb 7, 2018

Description

The current dev:load_sample_data adds quite a lot of records but not very useful when testing. AFAIK the Enterprise 2 is the one that allows you placing an order right away, without having to add any payment or delivery method manually first.

We need enough sample data so that a tester can start testing the established test cases with the app after running the dev:load_sample_data rake task.

Expected Behavior

After a branch is deployed in the desired environment, a developer can log into the machine and execute db:reset to erase the existing data in the DB, populate it with the seed data Spree provides, and then, execute dev:load_sample_data.

This provides all the data specified in: https://docs.google.com/document/d/1_va0Aw2yJ5BRe-HtuBT-OC8HNHIui0gvQ0uElWjDVs0/edit?usp=sharing

Actual Behavior

The aforementioned rake task now populates the DB with the data that is not relevant for testing.

Steps to Reproduce

Animated Gif/Screenshot

Context

https://community.openfoodnetwork.org/t/seed-data-development-provisioning-deployment/910

Severity

S-3. It's impacting the testing process a great deal and thus affecting our velocity.

Your Environment

  • Version used:
  • Browser name and version:
  • Operating System and version (desktop or mobile):

Possible Fix

Rewriting https://github.com/openfoodfoundation/openfoodnetwork/blob/master/lib/tasks/dev.rake#L6

@myriamboure

This comment has been minimized.

Copy link
Contributor

myriamboure commented Mar 4, 2018

Is there any connexion with #220 ? If the other issue is outdated, please close it @sauloperez

@myriamboure

This comment has been minimized.

Copy link
Contributor

myriamboure commented Mar 4, 2018

If it's a wishlist to go further on seeds thing improvement after fixing bugs then tell me and I'll open a wishlist.

@sauloperez

This comment has been minimized.

Copy link
Contributor

sauloperez commented Mar 6, 2018

closed.

@myriamboure

This comment has been minimized.

Copy link
Contributor

myriamboure commented Apr 18, 2018

@sauloperez should we prioritize as part of sys admin standardisation epic? This is not really a buf but part of a feature we decided to prioritize, no? There are devs who have some free time so we can assign that to them.

@sauloperez

This comment has been minimized.

Copy link
Contributor

sauloperez commented Apr 19, 2018

I'd like to review the attached document again and provide more precise requirements if needed.

@mkllnk

This comment has been minimized.

Copy link
Member

mkllnk commented Aug 3, 2018

@myriamboure myriamboure added this to Analysis and design in Bug management Aug 3, 2018

@myriamboure myriamboure added tech debt and removed bug-s3 labels Oct 25, 2018

@mkllnk mkllnk self-assigned this Nov 15, 2018

mkllnk added a commit to mkllnk/openfoodnetwork that referenced this issue Dec 13, 2018

Rewrite task to generate sample data
openfoodfoundation#2072

We need more and better structured sample data for dev testing and to
bootstrap staging data. This new task aims to replace
openfoodnetwork:dev:sample_data.

@mkllnk mkllnk referenced a pull request that will close this issue Dec 13, 2018

Open

2072 New seed data for testing #3209

mkllnk added a commit to mkllnk/openfoodnetwork that referenced this issue Jan 8, 2019

Rewrite task to generate sample data
openfoodfoundation#2072

We need more and better structured sample data for dev testing and to
bootstrap staging data. This new task aims to replace
openfoodnetwork:dev:sample_data.

mkllnk added a commit to mkllnk/openfoodnetwork that referenced this issue Jan 10, 2019

Rewrite task to generate sample data
openfoodfoundation#2072

We need more and better structured sample data for dev testing and to
bootstrap staging data. This new task aims to replace
openfoodnetwork:dev:sample_data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment