Maikel
869431c68d
Merge pull request #3926 from mkllnk/report-missing-payments
...
Add rake task to report lost payments
2019-07-18 15:01:14 +10:00
François Turbelin
5dcf456c90
Remove old Rake task for sample data
2019-06-25 11:18:48 +02:00
Matt-Yorkley
60e67ae1a4
Run all setup steps on startup
...
It's a bit dirty, but it works :)
2019-06-25 11:18:48 +02:00
François Turbelin
c5addb8c1d
Fix comment spacings, gloupsss
2019-06-25 11:18:48 +02:00
François Turbelin
b4fe44510b
Tune up the Rake task
2019-06-25 11:18:48 +02:00
François Turbelin
9df5d78f27
Add a Rake task in order to setup dev env
2019-06-25 11:18:48 +02:00
Maikel Linke
ee65d70eec
Deal with empty payments sequence
...
The task was crashing when there were no payments in the query range.
2019-06-19 09:58:47 +10:00
Maikel Linke
bf8a31abda
Add rake task to report lost payments
...
In rare cases, payment records can get lost through database rollbacks.
This new rake task tries to find log entries for lost transactions and
reports them as CSV.
2019-06-14 11:10:31 +10:00
luisramos0
07854cf372
Fix a few problems introduced by rubocop auto correct
2019-05-28 12:57:29 +01:00
luisramos0
86b0d71c7e
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
2019-05-28 12:57:29 +01:00
luisramos0
249e2bc9e1
Merge branch '2-0-stable' into 2-0-fix-sample-data
2019-03-26 15:50:16 +00:00
luisramos0
c1d14686a6
Merge branch 'master' into 2-0-stable-Mar22
2019-03-22 10:55:17 +00:00
Luis Ramos
8d2d5a8708
Merge pull request #3579 from luisramos0/sanitize_data
...
Add sanitize and truncate data tasks
2019-03-22 10:29:57 +00:00
luisramos0
e2f5515412
Fix sample data by setting on_demand in the product variant, setting product.on_demand is not possible in v2
2019-03-21 13:13:50 +00:00
luisramos0
88335c7f6c
Fix sample data in v2 by adapting to the fact that shipping methods can now have multiple zones
2019-03-21 13:12:44 +00:00
luisramos0
98a262f86e
Fix sample data in v2 by setting a Default shipping category in both products and shipping methods
2019-03-21 13:12:03 +00:00
Maikel Linke
42ee4b9f42
Remove usage of ProductDistribution which is dead
...
Sample data was failing since:
https://github.com/openfoodfoundation/openfoodnetwork/pull/3570
2019-03-21 13:11:05 +00:00
luisramos0
61433ee395
Make anonimize and truncate tasks respect rubocop rules
2019-03-21 11:16:56 +00:00
Maikel Linke
0b7192b82a
Remove usage of ProductDistribution which is dead
...
Sample data was failing since:
https://github.com/openfoodfoundation/openfoodnetwork/pull/3570
2019-03-21 17:37:16 +11:00
luisramos0
3841656979
Rename data sanitize task to data anonymize
2019-03-20 11:58:26 +00:00
luisramos0
fefced5400
Improve sanitize data: keep customers connected to users and let addresses' city and zipcode remain as they are
2019-03-20 11:49:55 +00:00
luisramos0
b148b9ae46
Remove delete addresses SQL from truncate task
2019-03-18 12:04:37 +00:00
luisramos0
60ee17204b
Merge branch 'master' into 2-0-stable-Mar16
2019-03-16 16:17:38 +00:00
luisramos0
8965dedfd7
Add sanitize and truncate tasks to support loading live data into other environments safely
2019-03-13 16:08:07 +00:00
luisramos0
2401b947b9
Make load sample data rake task work without product distributions
2019-03-13 12:24:40 +00:00
luisramos0
9644fcf67c
Improve payment method factory in sample data by removing constantize
2019-03-06 10:01:17 +00:00
luisramos0
03d242c061
Fix typo in sample_data zone creation (zonEable) and added clause to avoid re-adding the same country to the zone
2019-02-27 23:19:39 +00:00
luisramos0
ad5c379771
Make sample data zone read from the environment variable CHECKOUT_ZONE
2019-02-27 09:46:18 +00:00
luisramos0
d418ca1b1f
Add mandatory payment method provider to sample data payment methods
2019-02-27 09:45:21 +00:00
luisramos0
36e2786a1e
Delete Accounts and Billing dead feature code
2019-02-25 14:37:16 +00:00
Maikel Linke
6790e8895d
Create sample payment methods with current environment
2019-02-15 16:44:55 +11:00
luisramos0
1b8445eb99
Merge branch 'master' into 2-0-stable-Feb5
2019-02-05 11:16:23 +00:00
Maikel Linke
cc46bfd002
Rename namespace to ofn
2019-02-05 16:30:46 +11:00
Maikel Linke
659aa269de
Fix creation of sample payment methods on staging
...
Due to an unknown reason my chosen way of creating calculator and
assigning it to a payment method didn't work in staging environment even
though it was working in development.
Without diving deeper into the cause of this, I decided to change the
record assignments and fix the problem that way.
2019-02-05 16:24:30 +11:00
Maikel Linke
c6393b6077
Warn about deprecation via ActiveSupport
2019-02-05 16:23:17 +11:00
Maikel Linke
c3029c612a
Fix sample product creation and use bang methods
...
Mistakes like the missing fee when creating product distributions were
hidden, because I didn't use the bang methods to create records.
2019-02-05 16:23:17 +11:00
Maikel Linke
1d07327325
Add descriptions to enterprises
2019-02-05 16:23:17 +11:00
Maikel Linke
4b389ba357
Move sample data factories into their own files
2019-02-05 16:23:17 +11:00
Maikel Linke
3ab02d90df
Move sample data address module to own file
2019-02-05 16:23:17 +11:00
Maikel Linke
bec9f5eb2e
Move sample data logger to own module
2019-02-05 16:23:17 +11:00
Maikel Linke
fae05ff713
Deprecate old sample data task
2019-02-05 16:23:17 +11:00
Maikel Linke
876e73a989
Rewrite task to generate sample data
...
https://github.com/openfoodfoundation/openfoodnetwork/issues/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.
2019-02-05 16:23:17 +11:00
Jefferson Faseler
d4d0489328
Update name spaces for rake tasks to shorter 'ofn'.
2019-01-30 17:14:00 -05:00
luisramos0
e28f9a7c84
Merge branch 'master' into 2-0-stable-jan-8th
2019-01-08 14:29:50 +00:00
Kristina Lim
4adae0a1e8
Disable Knapsack when running engine RSpec tests
2018-12-19 17:50:52 +08:00
Kristina Lim
74ea1eee6b
Add description for Rake tasks
2018-12-19 17:08:24 +08:00
Kristina Lim
571ad37c3e
Add Rake task openfoodnetwork:specs:engines:rspec
2018-12-19 17:06:33 +08:00
Kristina Lim
f7e03ca60e
Add Rake tasks openfoodnetwork:specs:engines:NAME:rspec
...
The task name follows the directory name under engines/. For example,
for the Web engine in engines/web, run:
bundle exec rake openfoodnetwork:specs:engines:web:rspec
2018-12-19 17:02:19 +08:00
luisramos0
0a77eeb4b6
Merge branch 'master' into 2-0-stable-nov-14th
2018-11-14 11:35:58 +00: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