Matt-Yorkley
4f7c8062a1
Create class to map join table and simplify code
2021-01-28 21:51:50 +00:00
Matt-Yorkley
85c489d303
Ignore carts with failed payments in cleanup
2021-01-27 22:40:23 +00:00
Matt-Yorkley
e6c59fbd96
Update data retention periods
...
Sessions and cart data are removed if older than 3 months, instead of 6.
2021-01-27 22:40:23 +00:00
Matt-Yorkley
3fddaba4bf
Extract private methods
2021-01-27 22:40:23 +00:00
Matt-Yorkley
0a88712926
Clear orphaned records in join table spree_option_value_line_items
2021-01-27 22:40:23 +00:00
Matt-Yorkley
4230d46a06
Remove carts older than 6 months
2021-01-27 22:40:23 +00:00
Matt-Yorkley
a9706fa5f1
Update syntax in rake task
2021-01-08 23:18:55 +00:00
Maikel Linke
f0db7a22cc
Fix typo in subs test script
2020-12-17 16:08:59 +11:00
Maikel
33d220e777
Merge pull request #6291 from luisramos0/subs_tasks
...
Add tasks to help manually test subscriptions
2020-12-10 12:55:59 +11:00
Maikel Linke
84730577da
Fail with better message when giving wrong OC id
...
The script was failing with:
NoMethodError: undefined method `update!' for nil:NilClass
Now it's failing with:
ActiveRecord::RecordNotFound: Couldn't find OrderCycle with id=1
2020-12-08 11:48:34 +11:00
Maikel Linke
906dbffb29
Fail loudly when task doesn't work
2020-12-08 11:43:21 +11:00
Maikel Linke
aa8df639c4
Style to avoid indent changes with context changes
...
When the indent of arguments is aligned with the method brackets, it
needs to be changed when the method changes. Putting all arguments on
their own line makes diffs of method changes or argument changes
clearer. See the next commit.
2020-12-08 11:38:50 +11:00
Maikel Linke
70d1888cc2
Ease reading of times
2020-12-08 11:36:15 +11:00
Maikel Linke
feb0ad452d
Safeguard production env from test script
2020-12-08 11:33:37 +11:00
Pau Pérez Fabregat
8b6a08457a
Merge pull request #6293 from luisramos0/subs_debug
...
Add task to print Subscriptions debug info
2020-11-27 10:17:57 +01:00
Andy Brett
b1b422b90e
fix/silence rubocop styles
2020-11-20 10:41:31 -08:00
Andy Brett
cd94b23277
fix rubocop styles
2020-11-20 10:35:02 -08:00
Andy Brett
4e155641fc
fix nil error if no proxy orders found
2020-11-20 10:32:48 -08:00
Luis Ramos
5d93180081
Move subs tasks into subs:test namespace
2020-11-10 22:03:36 +00:00
Luis Ramos
fdfc0b330f
Remove some duplicated code
2020-11-10 22:03:36 +00:00
Luis Ramos
63d62d7ce4
Improve subs task by making it handle open and close times of the Order Cycle being tested
2020-11-10 22:03:36 +00:00
Luis Ramos
51451292bd
Add task to closse OC and confirm orders
2020-11-10 22:03:36 +00:00
Luis Ramos
2bb22fb7f4
Add task to reset Orders inside a specific Order Cycle by repeating the
...
placement job
2020-11-10 22:03:36 +00:00
Luis Ramos
5289a5b381
Add namespace to all sample data factories
...
These factories are not used in testing and this way we avoid collisions on the root namespace as it was happening already with OrderFactory
2020-11-10 22:03:36 +00:00
Luis Ramos
ccab133d63
Make sample data use OFN's calculators
2020-11-04 12:15:45 +00:00
Luis Ramos
c07215552e
Add log entries to log
2020-11-02 20:59:57 +00:00
Luis Ramos
2b01c80c54
Add subs debug task that prints out basic info about a specific Order Cycle
2020-11-02 20:59:57 +00:00
Luis Ramos
85096a997f
Add a checkbox to checkout to tick for Terms and Conditions
...
Checkout button should be disabled if checkbox is not ticked
2020-10-30 15:08:26 +00:00
Pau Pérez Fabregat
7df2759475
Merge pull request #5907 from Matt-Yorkley/data-cleanup
...
Data cleanup
2020-09-10 17:06:20 +02:00
Pau Perez
e3c1159c17
Start with 6 months data retention
...
As discussed in code review.
2020-09-08 12:49:58 +02:00
Pau Perez
14054f0e70
Move retention period to constant
...
There's no need to reevaluate the date 3 times, potentially leading to
edge cases.
2020-09-08 12:48:30 +02:00
Pau Perez
d525ddfe14
Move missing statements to where + delete_all
...
And fix the specs
2020-09-08 12:47:42 +02:00
Pau Pérez Fabregat
df0b997258
Use where + delete_all to increase readability
...
Co-authored-by: Maikel <maikel@email.org.au >
2020-09-08 12:26:47 +02:00
Pau Pérez Fabregat
ffbb0d26a4
Unhardcode class name
2020-09-08 12:26:21 +02:00
Luis Ramos
3df5a0644f
Make sample data vegetarian
2020-08-31 10:57:07 +01:00
Matt-Yorkley
91501f05f2
DRY date usage
2020-08-15 11:19:24 +01:00
Matt-Yorkley
93601ca556
Extract #remove_transient_data from TruncateData
2020-08-15 11:19:24 +01:00
Maikel Linke
fe0c04b650
Complete renaming of AdvanceOrderService to OrderWorkflow
2020-07-29 12:24:18 +10:00
Luis Ramos
5e8438c446
Move all calculators outside the spree namespace
2020-07-07 17:26:23 +01:00
Lucas Hiago
52da896b03
Fix name when try to search on seed
2020-06-18 21:06:04 -03:00
Luis Ramos
19da0ba969
Merge branch 'master' into 3-0-stable-may13
2020-05-13 19:50:32 +01:00
Luis Ramos
1671184a3c
Merge pull request #5375 from luisramos0/sample_order
...
[Spree 2.1] OFN v3 comes with sample orders :-)
2020-05-13 12:04:06 +01:00
Luis Ramos
be998a9eb6
Reload shipment before shipping otherwise shipment stays as ready but with shipped_at defined
2020-05-13 12:00:37 +01:00
Pau Pérez Fabregat
65433c6ac6
Merge pull request #5351 from luisramos0/improve_sample_data
...
Improve ship methods names on sample data
2020-05-06 11:27:34 +02:00
Luis Ramos
825f747dff
Add more types of sample orders
2020-05-05 23:16:54 +01:00
Luis Ramos
4083da5b16
Add sample order to sample data
2020-05-05 23:16:54 +01:00
Luis Ramos
be4104d6f3
Merge branch 'master' into 3-0-stable-may-5
2020-05-05 19:11:20 +01:00
Luis Ramos
44872844ed
Make ship methods in sample data have the name of the enterprise so it's easier to distinguish them
2020-05-03 16:36:12 +01:00
Luis Ramos
bf0b941e1c
Merge pull request #4935 from coopdevs/data-archiving
...
Allow data archiving using the :truncate_data task
2020-05-03 12:58:31 +01:00
Pau Perez
647a7bdddf
Clarify we won't use truncate_date in prod yet
...
We initially aimed at implementing data archiving in production reusing
this rake task but priorities have changed. It'll be just a refactor for
now.
2020-04-29 17:00:53 +02:00