Jefferson Faseler
d4d0489328
Update name spaces for rake tasks to shorter 'ofn'.
2019-01-30 17:14:00 -05:00
Pau Pérez Fabregat
e66f406ea6
Merge pull request #2946 from luisramos0/improve_taxons
...
Sort Product categories alphabetically by name
2018-11-14 11:23:59 +01:00
luisramos0
9490da329a
Move Calculator::Weight from models/open_food_network/calculator to models/calculator
2018-11-07 09:54:30 +00:00
luisramos0
3d106d749b
Fix rubocop warnings on load_sample_data task
2018-10-30 18:00:52 +00:00
luisramos0
82befd945b
Sort Product categories alphabetically by name and fixsample data by fixing taxons taxonomy id
2018-10-30 18:00:48 +00:00
Frank West
91351c3f78
Confirm first user when seeding database
...
Currently the first user is not confirmed until running the task
`openfoodnetwork:dev:load_sample_data`. This task does not need to be
run on a minimum implementation of a new server or development setup.
We now confirm the first user during seeding. This could be the default
email address or the user entered email address entered during seeding.
2018-05-14 15:30:04 -07:00
Daniel Dominguez
9d9a974295
Switched gem FactoryGirl to FactoryBot as FactoryGirl is deprecated.
...
- Change FactoryGirl to FactoryBot everywhere on code.
2018-05-04 11:52:08 -03:00
Pau Perez
f27a624687
Create the mail method from db:seed
...
As opposed the to sample users and enterprises that ease testing and
development, the mail method is needed for the app to function in any
environment.
2018-03-16 13:33:21 +01:00
Pau Perez
7afc999689
Differentiate MAIL_DOMAIN from plain DOMAIN
...
This way we can have katuma.org as the mail domain and
staging.katuma.org as web domain.
2018-03-16 13:33:20 +01:00
Pau Perez
4fc66356cb
Create always a mail method from sample_data
...
This sets the email config so that mails can be sent right away.
2018-03-16 13:33:20 +01:00
Pau Perez
6598c80f6e
Fix shipping method creation in sample data
2018-03-12 16:52:56 +01:00
Pau Perez
12e225e7c0
Add sample addresses in the instance's country
...
This ensures the address country and state are valid, meaning the state
belongs to the provided country. We use the instance's to do that.
2018-03-09 13:33:05 +01:00
Pau Pérez Fabregat
b5a8df00dd
Merge pull request #2117 from coopdevs/confirm-example-user
...
Automatically confirm the spree@example.com user
2018-03-09 07:24:40 +01:00
Pau Perez
ae2eba89ca
Automatically confirm the spree@example.com user
...
This allows you to log in with it after you run `bundle exec
openfoodnetwork:dev:load_sample_data` rake task right away.
2018-03-07 10:10:38 +01:00
Pau Perez
10d6a29503
Move service class to its own file
2018-03-06 15:30:25 +01:00
Pau Perez
e06af77420
Move from hash rocket to symbol syntax
2018-03-06 13:46:32 +01:00
Pau Perez
0e01c0d69b
Turn TODO into issue #1957
...
TODOs that live in the code can't be prioritized and tend to be
forgotten.
2017-11-15 09:44:11 +11:00
Pau Perez
caab3ea74d
Add spree user as admin of Enterprise 2 in seed
2017-11-15 09:42:21 +11:00
Pau Perez
7e5e167215
Create a mail method when inserting seed data
2017-09-08 23:55:50 +10:00
Pau Perez
8c5ac4cb23
Fix extra empty line reported by rubocop
2017-08-10 11:35:26 +02:00
Pau Perez
7f982c0c90
Complete seed data to purchase to Enterprise 2
2017-08-02 13:11:41 +02:00
Maikel Linke
e57c06c610
Use require_relative introduced in Ruby 1.9.2
...
The new `require_relative` command is much shorter and easier to read
then the previous:
-require File.expand_path('../config/application', __FILE__)
+require_relative 'config/application'
2016-07-20 16:07:35 +10:00
digital dreamer
503fb53750
Fix #242 - foreign key constraint error on load_sample_data
2014-09-05 15:10:14 +10:00
Rohan Mitchell
34607ff556
Rename misc items from openfoodweb to openfoodnetwork
2013-10-18 17:43:59 +11:00
David Cook
4f9c7fb601
Remove distributor_id from payment method and update tests
2013-09-13 16:58:19 +10:00
Rohan Mitchell
57906e6f8b
Fix seed failure due to ShippingMethod factory creating an enterprise, preventing enterprises from being seeded
2013-09-06 16:01:00 +10:00
David Cook
b2878ddc40
Payment Method must belong to a Distributor
2013-08-21 15:14:01 +10:00
Rohan Mitchell
fb33b853dd
Revert payment method changes that broke the build: 5f7cbe3, 5a3ad8e, 3ffe732, 2d305b5, 08babee, 6f73f41, 77329b5, 4be2fe5
2013-08-20 10:47:56 +10:00
alexs
8f67f385b7
Merge branch 'master' of github.com:eaterprises/openfoodweb
2013-08-19 17:37:49 +10:00
alexs
f160e051e5
Added new temporary landing page.
2013-08-19 17:37:22 +10:00
David Cook
6f73f41700
Create Payment Methods for each Enterprise instead of generic Payment Method
2013-08-19 13:57:40 +10:00
alexs
e1da63d18f
Added some more dev sample data.
2013-08-14 17:30:17 +10:00
Rohan Mitchell
c011de539d
Update rake task for product distribution fees by enterprise fee
2013-08-13 09:11:25 +10:00
alexs
1992675794
Merge branch 'master' of github.com:eaterprises/openfoodweb
2013-08-07 14:09:30 +10:00
alexs
999ba2cf56
Added more real australian addresses to seed data as well some enterprises that use those addresses.
2013-08-07 14:07:55 +10:00
David Cook
577b114662
Add distributor and supplier users to load_sample_data task
2013-08-07 09:19:28 +10:00
David Cook
c40d694a15
Output correct task name
2013-08-05 15:20:35 +10:00
Andrew Spinks
287bd57a4e
Fix loading of initial data to ensure there is an itemwise shipping method.
2013-08-01 10:52:06 +10:00
Andrew Spinks
4f5679aac3
Add EnterpriseRole model and link up to users and enterprises.
2013-08-01 10:32:49 +10:00
Andrew Spinks
5810503068
Move test data seeding into separate rake task. Add new role to seeds file.
2013-08-01 10:31:58 +10:00