Pau Pérez Fabregat
e23d714e83
Merge pull request #2154 from openfoodfoundation/transifex
...
Transifex
2018-03-19 10:29:48 +01:00
Transifex-Openfoodnetwork
ec01e55707
Updating translations for config/locales/es.yml
2018-03-19 19:56:02 +11:00
Pau Pérez Fabregat
c18b996a1b
Merge pull request #2098 from Matt-Yorkley/uk/font-caching
...
Fix browser caching of updated icon font
2018-03-17 11:10:04 +01:00
Enrico Stano
98ea82462d
Merge pull request #2136 from coopdevs/upgrade-test-dependencies
...
Upgrade test dependencies
2018-03-15 12:21:49 +01:00
Pau Pérez Fabregat
586a9afaae
Merge pull request #2125 from KeirOsborn/order_order_cycle_list_#1884
...
Order order cycle list #1884
2018-03-14 19:08:28 +01:00
Pau Pérez Fabregat
f116ee156f
Merge pull request #1951 from JF-Lalonde/remove_duplicate_datepicker_1947
...
Remove duplicated directive datepicker from index_utils directory
2018-03-14 19:08:06 +01:00
JF-Lalonde
7a9f341363
Remove duplicated directive datepicker from index_utils directory
2018-03-14 17:01:54 +11:00
Maikel Linke
ada0fa50fc
Replace Rohan's email address by optional config
...
Rohan's email address is hard-coded, but he doesn't want to receive
these emails any more.
2018-03-14 15:30:53 +11:00
HugsDaniel
451c57da40
Changed i18n t() path to get content from locales
2018-03-14 15:01:01 +11:00
Hugo Daniel
82a752de46
Added margin bottom on table#listing_products to display a bit above the save bar
2018-03-14 13:16:31 +11:00
Matt-Yorkley
e2f3feccf0
Add comments to authentication_service.js
2018-03-14 12:13:45 +11:00
Matt-Yorkley
e6bdbccffa
Ensure email links return to proper path on private shops, refactor modal logic
2018-03-14 12:13:45 +11:00
Matt-Yorkley
ea9b0eca48
Adjust wording on validation modal message
2018-03-14 12:13:45 +11:00
Matt-Yorkley
e8bc87e62b
Ensure email validation link returns to /register paths properly
2018-03-14 12:13:45 +11:00
Matt-Yorkley
d7a3c50bd5
Remove underscore from resource
2018-03-14 12:13:45 +11:00
Matt-Yorkley
f5a0862655
Email confirmation modal specs
2018-03-14 12:13:45 +11:00
Matt-Yorkley
595bc5d1a5
Show confirmation message in modal
2018-03-14 12:13:45 +11:00
Matt-Yorkley
bc621a3c43
Return user to same URL from confirmation link
2018-03-14 12:13:45 +11:00
Hugs
7ebf5db1f2
Added img tag when producer.description.length==0 to display logo even when no About Us
2018-03-14 11:44:04 +11:00
Maxime Lalisse
e806f38142
Fix translation keys
2018-03-14 10:13:40 +11:00
Pau Perez
d980809a19
Upgrade shoulda-matchers from 1.1.0 to 2.8.0
2018-03-13 17:46:59 +01:00
Pau Perez
e6f6232607
Upgrade letter_opener from 1.4.1 to 1.6.0
2018-03-13 14:21:54 +01:00
Pau Perez
cce30d5762
Upgrade Knapsack from 1.5.1 to 1.16.0
2018-03-13 14:11:00 +01:00
Pau Perez
47a6ffbf66
Upgrade Capybara from 2.15.4 to 2.18.0
2018-03-13 13:58:06 +01:00
HugsDaniel
7e5eae1b8d
Added testing on statusMessage display for pending changes
2018-03-13 21:03:54 +11:00
HugsDaniel
8c4d0f11d7
Changed status message with i18n t() filter to displau unsaved changes status for customers edition in admin dashboard
2018-03-13 21:03:54 +11:00
Pau Perez
d96c1fc165
Upgrade factory_girl_rails from 3.3.0 to 4.9.0
...
This is the last version before moving to factory_bot_rails.
2018-03-13 10:01:14 +01:00
Pau Perez
6f879cd5d9
Remove unused gem Turn
...
It provides runners for MiniTest and we use RSpec.
2018-03-13 09:54:26 +01:00
Pau Perez
1d75e5a671
Upgrade rspec-retry from 0.4.2 to 0.5.6
2018-03-13 09:53:20 +01:00
Pau Perez
bdd58dccf0
Upgrade Timecop from 0.8.1 to 0.9.1
2018-03-13 09:34:09 +01:00
Pau Perez
aaf5bcbb12
Upgrade rspec-rails from 3.7.1 to 3.7.2
2018-03-13 09:32:12 +01:00
Pau Pérez Fabregat
976bbd8725
Merge pull request #2124 from coopdevs/replace-mail-method-in-base-mailer-decorator
...
Remove deprecated reference to Spree::MailMethod
2018-03-13 08:51:11 +01:00
Enrico Stano
341604be8a
Merge pull request #2094 from openfoodfoundation/transifex
...
Transifex
2018-03-13 08:39:11 +01:00
Enrico Stano
5ce320f8a2
Merge pull request #2133 from coopdevs/fix-sample-data
...
Fix shipping method creation in sample data
2018-03-12 18:39:34 +01:00
Pau Perez
6598c80f6e
Fix shipping method creation in sample data
2018-03-12 16:52:56 +01:00
Keir Osborn
d4b84e55c2
order order cycle list from most lates close date to earliest on /orders page #1884
2018-03-12 11:04:50 +00:00
Pau Pérez Fabregat
6f5080923f
Merge pull request #2123 from coopdevs/bring-seeds-from-ofn-install
...
Bring seeds from ofn install
2018-03-12 11:43:14 +01:00
Pau Pérez Fabregat
afda5cc04e
Merge pull request #2115 from coopdevs/localize-sample-data
...
Localize sample data
2018-03-09 16:18:18 +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 Perez
c19c22cb17
Apply couple simple tweaks to seeds.rb
2018-03-09 13:20:35 +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
Enrico Stano
0aacb91f50
Merge pull request #2116 from coopdevs/clean-sample-data
...
Clean sample data
2018-03-07 20:58:30 +01:00
Pau Perez
1b39d57800
Remove deprecated reference to Spree::MailMethod
...
Said class is removed in https://github.com/spree/spree/pull/2643 in
Spree.
2018-03-07 16:24:39 +01:00
Pau Perez
5eb3dc4beb
Bring states.yml from l10n_au
...
The states.yml present in this repo had a different format which doesn't
work with the current seeds.rb that we brought from ofn-install.
2018-03-07 10:30:12 +01:00
Pau Perez
9849f76c1c
Bring seeds.rb from ofn-install
2018-03-07 10:28:34 +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
Rob H
dadbb7445b
Merge pull request #2110 from oeoeaio/subs-summary-hash
...
Subs: Fix summary emails for shop owners
2018-03-07 16:41:38 +11:00
Rob H
4fd307832e
Merge pull request #2120 from oeoeaio/subs-unpause-messaging
...
Subs: messaging around unpausing a subscription
2018-03-07 16:41:00 +11:00
Rob Harrington
09ca9ac2dd
Alter scope to return both completed and resumed orders
2018-03-07 14:24:59 +11:00
Rob Harrington
b98afc00ba
Show message about resumable orders when unpausing a subscription
2018-03-07 14:24:59 +11:00
Rob Harrington
7332e21013
Make InfoDialog more flexible (can show information as well as errors)
2018-03-07 14:24:58 +11:00
Rob Harrington
5cb0a1c371
Fix position of jQuery dialogs in admin section
2018-03-07 14:24:58 +11: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 Pérez Fabregat
392d0de6c5
Merge pull request #2055 from HugsDaniel/1766_entreprise_registration_scroll_on_first_step
...
Changed bootstrap grid for medium size and above to have text and but…
2018-03-06 11:39:35 +01:00
Pau Pérez Fabregat
0fdd7dabd4
Merge pull request #2026 from Matt-Yorkley/uk/embedded_headers
...
Only include one host in embedded shopfront headers
2018-03-06 11:07:32 +01:00
Pau Pérez Fabregat
c999627d28
Merge pull request #2114 from ltrls/fix-old-rspec-syntax
...
Fix old rspec syntax
2018-03-06 11:04:21 +01:00
Hugo Daniel
f2eee77a15
fixed modal height and change grid to have button and text side by side
2018-03-06 16:21:35 +11:00
Pierre de Lacroix
040c292a76
Fix some more old rspec syntax
2018-03-06 01:29:54 +01:00
Pierre de Lacroix
12e3b88b71
Fix some old Rspec syntax
2018-03-06 01:24:54 +01:00
Rob Harrington
2bfa923fe1
Use a hash instead of an array :face_palm:
2018-03-02 15:50:10 +11:00
Rob H
d30362b78c
Merge pull request #2108 from oeoeaio/subs-neg-stock
...
Subs: handle negative stock for subscriptions
2018-03-02 15:47:12 +11:00
Rob Harrington
28491ee948
Skip stock check when requested quantity is zero
...
This prevents an error being raised when available stock is negative
2018-03-02 14:53:24 +11:00
Rob Harrington
fe4145d9d5
Use expect syntax
2018-03-02 14:53:24 +11:00
Rob H
3ef29fde2c
Merge pull request #2107 from oeoeaio/subs-missing-close
...
Subs: Add message to indicate OC has no close date
2018-03-02 14:52:54 +11:00
Rob Harrington
05e6c3daa6
Add message to indicate missing orders_close_at date
2018-03-02 13:28:34 +11:00
Rob H
9d8456cbf3
Merge pull request #2090 from oeoeaio/subs-styling
...
Subs: Make checklist more legible
2018-03-02 13:24:05 +11:00
Rob H
1d8f332cc6
Merge pull request #2096 from oeoeaio/subs-estimates
...
Subs: Improve estimates of item prices and fees
2018-03-02 13:22:27 +11:00
Rob Harrington
6f554814ce
Add class documentation for SubscriptionEstimator
2018-03-02 10:11:26 +11:00
Rob Harrington
f1545a4ab6
Show fee estimates in subscription totals in UI
2018-03-02 10:11:26 +11:00
Rob Harrington
31750a7bba
Add logic for calculator of fee estimates to SubscriptionEstimator
2018-03-02 10:11:26 +11:00
Rob Harrington
ad391c73ab
Add migration to add fee estimate fields to subscriptions table
2018-03-02 10:11:26 +11:00
Rob Harrington
014283447d
Use delegate to access subscription shop
2018-03-02 10:11:26 +11:00
Rob Harrington
3b2d4ae2d4
Estimator take variant overrides into account
2018-03-02 10:11:26 +11:00
Rob Harrington
14a03aab35
Fallback to previous saved estimate if calculator not available
2018-03-02 10:11:26 +11:00
Rob Harrington
904a364bf1
Stop unnecessarily passing fee_calculators around
2018-03-02 10:11:26 +11:00
Rob Harrington
30df1d4345
Refector controller to allow price_estimate calculation
2018-03-02 10:11:26 +11:00
Rob Harrington
b85e38010f
Delegate responsibility to estimating prices for subscriptions to dedicated service object
2018-03-02 10:11:26 +11:00
Transifex-Openfoodnetwork
7a411b0452
Updating translations for config/locales/de_DE.yml
2018-03-02 03:48:06 +11:00
Transifex-Openfoodnetwork
ecbd1fe93d
Updating translations for config/locales/pt.yml
2018-03-02 02:15:53 +11:00
Enrico Stano
14caac0212
Merge pull request #2074 from mjal/2057states-are-not-displayed-in-modify-address-pop-in-and-prevent-saving-2
...
Bug fix in customers edit address
2018-03-01 14:59:02 +01:00
Enrico Stano
6e9efe79b7
Merge pull request #2053 from Matt-Yorkley/uk/enterprise_limit
...
Increase default enterprise limit
2018-03-01 14:40:24 +01:00
Maxime Lalisse
cff1d7224d
Bug fix in customers edit address
2018-03-01 22:02:39 +11:00
Matt-Yorkley
86a500bcdf
Fix browser caching of updated icon font
2018-02-23 20:49:42 +00:00
Matt-Yorkley
7bd0de99ac
Adjust brittle referer header check
2018-02-23 16:35:46 +00:00
Matt-Yorkley
9506ea456e
Stub the request object instead of controller method
2018-02-23 15:57:28 +00:00
Matt-Yorkley
e173f823c8
Refactor embedded logic
2018-02-23 15:57:28 +00:00
Matt-Yorkley
4a818c07bb
Only include one host in embedded shopfornt headers
2018-02-23 15:57:28 +00:00
Rob Harrington
1ac9417a20
Add class description for ProxyOrder
2018-02-22 16:23:10 +11:00
Rob Harrington
ae1c8344d1
Ensure price estimates generated for subscriptions take overrides into account
2018-02-22 16:16:49 +11:00
Rob Harrington
add9c83812
Ensure correct price is used by OrderFactory when building line items
2018-02-22 16:16:49 +11:00
Rob Harrington
993f02a989
Add knowledge of variant overrides to OrderFactory
2018-02-22 16:16:49 +11:00
Rob Harrington
d7d40a4a0f
Create new OrderFactory service object for initializing order from attr hash
2018-02-22 16:16:49 +11:00
Rob Harrington
6bf4ed1ac5
Add new review view to subscription wizard
2018-02-22 16:13:29 +11:00
Rob Harrington
6bdbdc06e7
Use select2_search instead of targetted_select2_search
2018-02-22 16:13:29 +11:00
Rob Harrington
2e94654f91
Create factory to hold auxillary functions for subscriptions
...
NOTE: Moved estimatedSubtotal and estimatedTotal functions to the new factory from the subscription line items controller
2018-02-22 16:13:29 +11:00
Rob Harrington
2a731b2db5
Rename SubscriptionPrototype to SubscriptionActions
2018-02-22 16:13:29 +11:00
Rob Harrington
dcfa5fa42d
Use services to access injected data arrays
2018-02-22 16:13:29 +11:00
Rob Harrington
ad62b258ac
Populate 'all' array from Schedules#load
2018-02-22 16:13:29 +11:00
Rob Harrington
95f70409ee
Auto-load customers into service when present
2018-02-22 16:13:29 +11:00
Rob Harrington
3ac57269ed
Use .all convention for shipping and payment methods resource services
2018-02-22 16:13:29 +11:00
Rob Harrington
8951c79f71
Only count future orders in subs index order count
2018-02-22 15:09:33 +11:00
Rob Harrington
b3e7badd37
Fix incorrect translation key
2018-02-22 14:33:25 +11:00
Rob Harrington
cec5fddf6a
Add missing translation
2018-02-22 14:33:25 +11:00
Rob Harrington
c4a81bdc48
Translate subscriptions loading flash
2018-02-22 14:33:25 +11:00
Rob Harrington
9887819c16
Update ref for ofn-qz
2018-02-22 13:56:10 +11:00
Pau Pérez Fabregat
c1b7e9f79e
Merge pull request #2069 from HugsDaniel/1889_bug_in_order_cycles_filter_on_customer_admin_reports
...
Loads all order cycles for current user whether he is producer, distributor or coordinator
2018-02-21 17:11:52 +01:00
Hugo Daniel
3fa5ca7eae
Use accessible_by method instead of involving_managed_distributors method to fetch all order cycles
2018-02-21 17:33:28 +11:00
Hugo Daniel
65fea6291e
CodeClimate requested changes
2018-02-21 17:33:28 +11:00
Hugo Daniel
64c2bdda1c
Added loading of all active or complete order cycles concerned by the current user to the reports form collection
...
User will see all order cycles he is concerned by as producer, distributor or coordinator
2018-02-21 17:33:28 +11:00
Maikel Linke
de8df4b3e9
Manual update from transifex
2018-02-21 14:25:19 +11:00
Maikel Linke
70bb64d58d
Manual update from transifex
2018-02-21 14:24:45 +11:00
Maikel Linke
a529525a63
Manual update from transifex
2018-02-21 14:24:28 +11:00
Transifex-Openfoodnetwork
50c1224139
Updating translations for config/locales/de_DE.yml
2018-02-21 10:59:20 +11:00
Rob Harrington
927ab3a23a
Make subscriptions setup checklist more legible
2018-02-19 11:11:10 +11:00
Pau Pérez Fabregat
183621f90b
Merge pull request #2080 from coopdevs/add-skylight-staging
...
Enable Skylight in staging
2018-02-15 11:26:16 +01:00
Pau Perez
a7dcaf15fa
Enable Skylight in staging
...
This is a follow-up of
https://github.com/openfoodfoundation/openfoodnetwork/pull/2070 .
When running the production API key in staging, the `log/skylight.log`
showed:
```
[SKYLIGHT] [1.5.0] You are running in the staging environment but
haven't added it to config.skylight.environments, so no data will be
sent to skylight.io.
```
According to
https://www.skylight.io/support/advanced-setup#setting-up-multiple-environments
it turns out we need to create a new app for staging and use its API
key.
2018-02-14 14:46:10 +01:00
Matt-Yorkley
237854c781
Update enterprise limit error text and use expect sytnax
2018-02-13 14:05:18 +00:00
Matt-Yorkley
3c5b01ece0
Update enterprise limit spec
2018-02-13 14:05:18 +00:00
Matt-Yorkley
d52f9fd43f
Add enterprise limit modal
2018-02-13 14:05:18 +00:00
Pierre de Lacroix
5c046b76f0
Fix failing tests
2018-02-13 14:05:17 +00:00
Pierre de Lacroix
ab1ed16435
Add a migration to change Spree::Users enterprise_limit default value from 1 to 5
2018-02-13 14:05:17 +00:00
Pau Pérez Fabregat
23d36e3898
Merge pull request #2058 from coopdevs/improve-order-cycle-notification
...
Improve code style and docs of job
2018-02-09 13:19:32 +01:00
Pau Perez
c79641c77c
Fix typos in documentation
2018-02-09 09:53:40 +01:00
Pau Perez
aa4bd7f397
Improve code style and docs of job
2018-02-09 09:53:39 +01:00
Pau Pérez Fabregat
be07996656
Merge pull request #2070 from chancancode/skylight
...
Add Skylight instrumentation
2018-02-09 08:55:30 +01:00
Rob Harrington
e12207f3de
Use shop contact email and contact name for subscription emails
2018-02-09 14:44:15 +11:00
Rob Harrington
09b800672d
Fix specs to handle non-deterministic ordering
2018-02-09 14:44:15 +11:00
Rob Harrington
c59b172348
Fix typo
2018-02-09 14:44:15 +11:00
Rob Harrington
7017c8540c
Replace references to 'standing line item' with 'subscription line item'
2018-02-09 14:44:15 +11:00
Rob Harrington
ae4420d9ba
Rename standing line item files
2018-02-09 14:44:14 +11:00
Rob Harrington
eb53df8238
Rename 'standing_line_items' table to 'subscription_line_items'
2018-02-09 14:44:14 +11:00
Rob Harrington
71370e0bce
Replace references to 'standing order' with 'subscription' (cleanup)
2018-02-09 14:44:14 +11:00
Rob Harrington
ba66c0e862
Replace references to 'standing order' with 'subscription' (schedule)
2018-02-09 14:44:14 +11:00
Rob Harrington
c605742671
Replace references to 'standing order' with 'subscription' (routes)
2018-02-09 14:44:14 +11:00
Rob Harrington
720628e49e
Replace references to 'standing order' with 'subscription' (translations)
2018-02-09 14:44:14 +11:00
Rob Harrington
501fa4c901
Replace references to 'standing order' with 'subscription' (erb)
2018-02-09 14:44:14 +11:00
Rob Harrington
532f998b24
Replace references to 'standing order' with 'subscription' (js: spec)
2018-02-09 14:44:14 +11:00
Rob Harrington
b7876ebfbf
Replace references to 'standing order' with 'subscription' (spec)
2018-02-09 14:44:14 +11:00
Rob Harrington
04e48989c9
Replace references to 'standing order' with 'subscription' (lib)
2018-02-09 14:44:13 +11:00
Rob Harrington
094c3e70f7
Replace references to 'standing order' with 'subscription' (HAML)
2018-02-09 14:44:13 +11:00
Rob Harrington
b3eaa30f3d
Replace references to 'standing order' with 'subscription' (JS)
2018-02-09 14:44:13 +11:00
Rob Harrington
672f96b85b
Replace references to 'standing order' with 'subscription'
2018-02-09 14:44:13 +11:00
Rob Harrington
902802594f
Renaming standing order files (lib, spec)
2018-02-09 14:44:13 +11:00
Rob Harrington
a9b5fd69d8
Renaming standing order files
2018-02-09 14:44:13 +11:00
Rob Harrington
b258c032cc
Rename 'standing_orders' table to 'subscriptions'
2018-02-09 14:44:12 +11:00
Rob Harrington
fe7b86ff60
Fix broken call to log_order which should have been record_order
2018-02-09 14:44:12 +11:00
Rob Harrington
17950ba498
Lazy load summarizers for standing order jobs outside of initializer
...
The enqueue script seems to causes delayed job to skip initialization of the job class, meaning that the summarizers were missing
2018-02-09 14:44:12 +11:00
Rob Harrington
ccbe33001f
Add missing interpolation for shop name
2018-02-09 14:44:12 +11:00
Rob Harrington
c5f3249172
Fix rubocop issues
2018-02-09 14:44:12 +11:00
Rob Harrington
e7eb02dfe3
Reduce cognitive complexity of VariantsController#search
2018-02-09 14:44:12 +11:00
Rob Harrington
17a0b18e50
Reduce cognitive complexity of StandingLineItemsController#build
2018-02-09 14:44:12 +11:00
Rob Harrington
2012c23956
Reduce cognitive complexity of ProxyOrder#state
2018-02-09 14:44:12 +11:00
Rob Harrington
88a5d4be47
Reduce cognitive complexity of LineItemSyncer#update_item_quantities
2018-02-09 14:44:12 +11:00
Rob Harrington
224249d66b
Reduce cognitive complexity of OrderSyncer
2018-02-09 14:44:11 +11:00
Rob Harrington
ceab1fe16a
Reduce cognitive complexity of StandingOrderPaymentUpdater
2018-02-09 14:44:11 +11:00
Rob Harrington
c1f0a0b514
Reduce congnitive complexity of AddressFinder
2018-02-09 14:44:11 +11:00
Rob Harrington
ce09a8dad6
Reduce cognitive complexity of StandingOrder#state
2018-02-09 14:44:11 +11:00
Rob Harrington
99db6f8e14
Fix translation key for StandingOrderValidator errors
2018-02-09 14:44:11 +11:00
Rob Harrington
d6924d2866
Add comment to OrderUpdateIssues
2018-02-09 14:44:11 +11:00
Rob Harrington
3e68973812
Rename StandingOrderUpdater to OrderSyncer
2018-02-09 14:44:11 +11:00
Rob Harrington
bbc3cad67d
Refactor large StandingOrderUpdater#update! method
...
Note: extracted line items logic into separate class
2018-02-09 14:44:11 +11:00
Rob Harrington
50d3522b2c
Extract logic for recording issues with updating orders to separate class
2018-02-09 14:44:11 +11:00
Rob Harrington
2c5bfab29f
Refactoring price estimation logic for StandingOrderForm
2018-02-09 14:44:11 +11:00
Rob Harrington
844cd79270
Clean-up of standing order form and spec
2018-02-09 14:44:10 +11:00
Rob Harrington
8ae4307a69
Move logic for updating orders to dedicated class
2018-02-09 14:44:09 +11:00
Rob Harrington
2c40252edb
Extract validation logic for standing orders into service object
2018-02-09 14:44:09 +11:00
Rob Harrington
0c302b022a
Move StandingOrderForm to app/services folder
2018-02-09 14:44:09 +11:00
Rob Harrington
7581779a0d
Remove weird escape characters
2018-02-09 14:44:09 +11:00
Rob Harrington
f9727de206
Comment out interface for turning standing orders ON for an enterprise
2018-02-09 14:44:09 +11:00
Rob Harrington
76daa183d5
Add orders sub-menu to standing-order index page
2018-02-09 14:44:09 +11:00
Rob Harrington
981b874263
Remove unused method active? for order cycles
2018-02-09 14:44:09 +11:00
Rob Harrington
4362ef2cea
Properly translate all error messages for StandingOrderForm
2018-02-09 14:44:09 +11:00
Rob Harrington
7ca60e1990
Use activerecord error translations properly
2018-02-09 14:44:09 +11:00
Rob Harrington
1bf2f7ad03
Fix a couple of offences pickup up by rubocop
2018-02-09 14:44:09 +11:00
Rob Harrington
8ba1a909ca
Use summarizer for standing order confirm job
2018-02-09 14:44:08 +11:00
Rob Harrington
c86207212f
Add confirmation summary email
2018-02-09 14:44:08 +11:00
Rob Harrington
86cddb1cc4
Capitalise translated strings
2018-02-09 14:44:08 +11:00
Rob Harrington
b49c44f7ce
Generalise record_failure method to record_and_log_error
2018-02-09 14:44:08 +11:00
Rob Harrington
818af47613
Move rescue clause to process method
...
This prevents a placement email from being sent unless the order is processed successfully
2018-02-09 14:44:08 +11:00
Rob Harrington
ef6c9ec0f0
Integrate standing order summarizer into placement job
2018-02-09 14:44:08 +11:00
Rob Harrington
13d01df4d8
Add mail method and template for sending placement summary emails to shop owners
2018-02-09 14:44:08 +11:00
Rob Harrington
cf30b7c883
Add service objects for summarizing outcomes of standing order processing jobs
2018-02-09 14:44:08 +11:00
Rob Harrington
0c0e12e165
Show edit link in placement email if changes are allowed by shop
2018-02-09 14:44:08 +11:00
Rob Harrington
f9af8edf27
Ignore Metrics/BlockLength for specs and Rails/HasAndBelongsToMany
2018-02-09 14:44:08 +11:00
Rob Harrington
8bf460c93a
Manually fix remaining rubocop offences
2018-02-09 14:44:08 +11:00
Rob Harrington
f902b8cef0
Fix rubocop Style/ClassAndModuleChildren offences
2018-02-09 14:44:07 +11:00
Rob Harrington
84ad996ef8
Use guard clauses
2018-02-09 14:44:07 +11:00
Rob Harrington
fb28940952
Use Time.zone.now instead of Time.now
2018-02-09 14:44:07 +11:00
Rob Harrington
03f1980b1b
Auto-correct rubocop offences for standing-orders
2018-02-09 14:44:07 +11:00
Rob Harrington
26a325e6e0
Handle payment processing errors for standing orders
2018-02-09 14:44:07 +11:00
Rob Harrington
2576d10e49
Create a new payment when none is present
2018-02-09 14:44:07 +11:00
Rob Harrington
67e05cea9c
Add failed payment email to StandingOrderMailer
2018-02-09 14:44:07 +11:00
Rob Harrington
0ccb0ce0e4
Make standing order header partial more generic
2018-02-09 14:44:07 +11:00
Rob Harrington
8c96a19e3e
Specify minimum postgresql version for travis
2018-02-09 14:44:07 +11:00
Rob Harrington
6e83c6dc86
Move standing order emails to a dedicated StandingOrderMailer
2018-02-09 14:44:07 +11:00
Rob Harrington
d6a9d63de5
Replace StandingOrderSyncJob with ProxyOrderSyncer service object
2018-02-09 14:44:06 +11:00
Rob Harrington
6ea343f26e
Clean up proxy order performance specs
2018-02-09 14:44:06 +11:00
Rob Harrington
43c2aca208
Use delete_all instead of destroy_all for increased speed
2018-02-09 14:44:06 +11:00
Rob Harrington
8a498391ca
Add performance spec for removal of proxy orders
2018-02-09 14:44:06 +11:00
Rob Harrington
146348a4fe
Refactor proxy order syncer using direct sql query for increased speed
2018-02-09 14:44:06 +11:00
Rob Harrington
48b39f4712
Add performance spec for proxy order syncer
2018-02-09 14:44:06 +11:00
Rob Harrington
3aee0b5e70
Allow proxy order syncer to accept both ActiveRecord::Relation or StandingOrder
2018-02-09 14:44:06 +11:00
Rob Harrington
6d5c920a95
Split proxy order sync logic out into dedicated service object
2018-02-09 14:44:06 +11:00
Rob Harrington
cdf04323a9
Serialize standing order credit_card_id to enable selection in edit form
2018-02-09 14:44:06 +11:00
Rob Harrington
bdac68900f
Move address and card loading logic down into DetailsController
...
Also switch to using CreditCardResource to load the card
2018-02-09 14:44:05 +11:00
Rob Harrington
a5ae4c801c
Initialize ofn-select2 with empty array when data is a promise
2018-02-09 14:44:05 +11:00
Rob Harrington
404913dcfa
Move form-saving logic into dedicated StandingOrderForm service
2018-02-09 14:44:05 +11:00
Rob Harrington
c94badbf36
Stub or provide mailer as appropriate
2018-02-09 14:44:04 +11:00
Rob Harrington
ca1485f121
Add missing translations for proxy order controller error messages
2018-02-09 14:44:04 +11:00
Rob Harrington
dfe874cf3f
Attempt to add a credit card before processing payment
2018-02-09 14:44:04 +11:00
Rob Harrington
c20c9e2e78
Use the rails logger instead of Bugsnag
2018-02-09 14:44:04 +11:00
Rob Harrington
f4f6fb6a7a
Update and process standing order payments prior to confirmation
2018-02-09 14:44:04 +11:00
Rob Harrington
ac8e09bc11
Add credit card validation to StandingOrderForm
2018-02-09 14:44:04 +11:00
Rob Harrington
183ad87d07
Fix mislabeled StandingOrderForm specs
2018-02-09 14:44:04 +11:00
Rob Harrington
f95d1ef058
Show message when no credit cards available for a customer
2018-02-09 14:44:04 +11:00
Rob Harrington
61b64a7516
Add credit card selection element to standing orders form
2018-02-09 14:44:04 +11:00
Rob Harrington
494f2f4821
Add cards lookup action to CustomersController
2018-02-09 14:44:04 +11:00
Rob Harrington
d3937e5c80
Move customer address lookup action to CustomersController
2018-02-09 14:44:03 +11:00
Rob Harrington
3ac2ac34ed
Add credit_card_id to StandingOrder model
2018-02-09 14:44:03 +11:00
Rob Harrington
25907d8969
Prevent standing order form from accepting non cash/stripe payment methods
2018-02-09 14:44:03 +11:00
Rob Harrington
26b85052e1
Load only Cash and Stripe payment methods into standing order form actions
2018-02-09 14:44:03 +11:00
Rob Harrington
07a7993109
Require a Cash or Stripe payment method in standing order setup process
2018-02-09 14:44:03 +11:00
Rob Harrington
7798b12086
Replace translation key for yes_i_am_sure
2018-02-09 14:44:03 +11:00
Rob Harrington
be11a1a2f9
Fix memoization issue with line item unit specs
2018-02-09 14:44:03 +11:00
Rob Harrington
86d8133f82
Stop setting host for url helpers in specs
...
All configuration is now happening in test.rb or spec_helper.rb
2018-02-09 14:44:03 +11:00
Rob Harrington
6081db382c
Updating addresses on standing order updates addresses on any initialised orders
2018-02-09 14:44:03 +11:00
Rob Harrington
b89ab2c407
Adding link to view/edit the order from Standing Order placement and confirmation emails
2018-02-09 14:44:02 +11:00
Rob Harrington
fce2d743e5
Adding proxy-order state to specs
2018-02-09 14:44:02 +11:00
Rob Harrington
2a3fc8cfec
Automatically copy shipping address from billing if none present
2018-02-09 14:44:02 +11:00
Rob Harrington
7d1fc8cbe1
Make sure correct intro message is used for empty standing order notification
2018-02-09 14:44:02 +11:00
Rob Harrington
f969caa2d1
Do not place standing order when no items are available
...
Send notification to customer informing them that an order was not placed...
2018-02-09 14:44:02 +11:00
Rob Harrington
0fd86a6cc7
Adding UI to require action from user when pausing/cancelling standing order with open orders
2018-02-09 14:44:02 +11:00
Rob Harrington
ab5dc7ddd5
Require action from user when pausing/cancelling standing order with open orders
2018-02-09 14:44:02 +11:00
Rob Harrington
3ce8a1abba
Tweaking proxy order state logic
...
Inherits 'paused' state from standing order if present
2018-02-09 14:44:02 +11:00
Rob Harrington
834e5b702e
Using standing_order_form.$submitted for show/hide logic for angularjs form errors
2018-02-09 14:44:02 +11:00
Rob Harrington
001f329393
Refactoring StandingOrderPrototype
...
Allow handling of create/update responses from downstream controllers using promise chaining
2018-02-09 14:44:01 +11:00
Rob Harrington
72549697a3
Redirecting to standing orders index on successful standing order save
2018-02-09 14:44:01 +11:00
Rob Harrington
1e0356a74b
StatusMessages can be shown on StandingOrder index
2018-02-09 14:44:01 +11:00
Rob Harrington
42266397aa
Improving performance of available variant lookup for standing orders
...
Only search the DB for available variants once
2018-02-09 14:44:01 +11:00
Rob Harrington
846cccf373
Showing StandingOrder error messages in status bar when save fails
2018-02-09 14:44:01 +11:00
Rob Harrington
ad2506fe75
Require StandingOrders to have at least one product (StandingLineItem)
2018-02-09 14:44:01 +11:00
Rob Harrington
7dcd39986f
Refactoring StandingOrder validations and errors
...
Moving validations to StandingOrderForm
2018-02-09 14:44:01 +11:00
Rob Harrington
b28f2908a6
Fix 'postcode' typo in standing order form
2018-02-09 14:44:01 +11:00
Rob Harrington
7d9d510c0f
Adding a comma after each schedule listed on OC index
2018-02-09 14:44:01 +11:00
Rob Harrington
c64f3590ad
Using placeholder attribute to show prompt text for schedule dropdown
2018-02-09 14:44:01 +11:00
Rob Harrington
f0f478dfa0
Adding placeholder field with default to ofn-select2 component
2018-02-09 14:44:00 +11:00
Rob Harrington
ceaae89dee
Prevent order cycles that are linked to schedules from being destroyed
2018-02-09 14:44:00 +11:00
Rob Harrington
77a50eac42
Show confirmation message when creating/updating/deleting Schedules
2018-02-09 14:44:00 +11:00
Rob Harrington
877a5f27d1
ProxyOrder state is 'pending' until OC opens, then 'cart' until OC closes
2018-02-09 14:44:00 +11:00
Rob Harrington
2c0928ca20
Automatically show 'Schedules' column on OC index when Standing Orders are enabled
2018-02-09 14:44:00 +11:00
Rob Harrington
4e686ecfcc
Debouncing admin variant search requests by 300ms
2018-02-09 14:44:00 +11:00
Rob Harrington
35e42b28fe
Using customer selection to search for addresses on standing order creation
...
Can also copy copy address from billing to shipping
2018-02-09 14:44:00 +11:00
Rob Harrington
9137f68a57
Adding logic to SearchController#customer_addresses for case when customer is not found
2018-02-09 14:44:00 +11:00
Rob Harrington
6ac49a7694
Adding route and controller action for searching for customer addresses using AddressFinder
2018-02-09 14:44:00 +11:00
Rob Harrington
c5066bb613
Making AddressFinder a little more secure
...
Only allow search by email when a customer or user with matching email is also provided
2018-02-09 14:43:59 +11:00
Rob Harrington
4a0dab3608
Renaming LastUsedAddress as AddressFinder
2018-02-09 14:43:59 +11:00
Rob Harrington
1b72b7258d
Refactoring LastUsedAddress to take customers or users
2018-02-09 14:43:58 +11:00
Rob Harrington
58070a8b3e
Adding loading flash and no-results messaging to standing orders index
2018-02-09 14:43:58 +11:00
Rob Harrington
57653cb911
Displaying setup instructions on Standing Orders index
2018-02-09 14:43:58 +11:00
Rob Harrington
ae209f72b9
Removing unrequired OrderCycleOpenCloseJob
2018-02-09 14:43:58 +11:00
Rob Harrington
2859075e43
WIP: StandingOrderConfirmJob no longer scoped to an order cycle
2018-02-09 14:43:58 +11:00
Rob Harrington
0e50009875
WIP: StandingOrderPlacementJob no longer scoped to an order cycle
2018-02-09 14:43:58 +11:00
Rob Harrington
514a462f7b
WIP: Refactor, of standing order placement and confirmation jobs
...
ie. Transfering responsibility for tracking standing order placement and confirmation to proxy orders
2018-02-09 14:43:58 +11:00
Rob Harrington
01cbd7ae9d
WIP: Adding flags for standing order placement and confirmation to proxy_orders table
2018-02-09 14:43:58 +11:00
Rob Harrington
f92b824f52
User is warned about initialising standing order orders
2018-02-09 14:43:58 +11:00
Rob Harrington
3adfb0db3f
Issues with updating orders are reported when saving standing orders
2018-02-09 14:43:58 +11:00
Rob Harrington
fd07830c02
Adding order_update_issues to serialized proxy orders
2018-02-09 14:43:57 +11:00
Rob Harrington
9e986f25f1
Orders are not marked as problematic if the changed value matches the new value
2018-02-09 14:43:57 +11:00
Rob Harrington
e357a7b401
StandingOrderForm: Storing problematic orders for reporting to user
2018-02-09 14:43:57 +11:00
Rob Harrington
9f50253537
StandingOrderForm: Rescuing from RecordInvalid when saving
2018-02-09 14:43:57 +11:00
Rob Harrington
1e8767e8b5
StandingOrderForm: Small refactor, update initialised orders one-by-one
2018-02-09 14:43:57 +11:00
Rob Harrington
a6add2eff6
Limiting shops loaded onto standing orders index to those with standing orders enabled
2018-02-09 14:43:57 +11:00
Rob Harrington
25639a822a
Implementing standing order feature toggle on back-end interface
2018-02-09 14:43:57 +11:00
Rob Harrington
e1f8af6d5b
Adding standing orders feature toggle to enterprise form
2018-02-09 14:43:57 +11:00
Rob Harrington
e7b8648792
Adding standing orders feature toggle column to enterprises table
2018-02-09 14:43:57 +11:00
Rob Harrington
c819197d07
BasicOrderCycleSerializer serialises open and closes dates with time and zone
2018-02-09 14:43:57 +11:00
Rob Harrington
15fb493d9a
StandingOrderPlacementJob: cap quantity at 0 for items not available through OC
2018-02-09 14:43:56 +11:00
Rob Harrington
cd6394987d
StandingOrderPlacementJob: Moving logic for processing an order to completion to separate method
2018-02-09 14:43:56 +11:00
Rob Harrington
0cf7d1a63d
Link standing order orders to user on initialisation if customer user exists
2018-02-09 14:43:56 +11:00
Rob Harrington
439c81d836
Format of hours in standing order placement email without leading zero
2018-02-09 14:43:56 +11:00
Rob Harrington
1e0d43e975
Changing explain text on confirm email
...
Removing mention of making changes
2018-02-09 14:43:56 +11:00
Rob Harrington
994baf12c4
Adding specs to ensure placement emails are sent
2018-02-09 14:43:56 +11:00
Rob Harrington
d12a1371c2
Assigning a priority to OrderCycleOpenCloseJob
2018-02-09 14:43:56 +11:00
Rob Harrington
f9e40ba586
Fixing typos in standing order placement job
2018-02-09 14:43:56 +11:00
Rob Harrington
a32fb752dd
Removing number column from orders panel, adding edit action
2018-02-09 14:43:56 +11:00
Rob Harrington
e4f30cea57
Fixing styling for table rows within index panels
2018-02-09 14:43:56 +11:00
Rob Harrington
d0f4cc2ee2
PlacementJob loads ProxyOrders based on order cycle close date
2018-02-09 14:43:55 +11:00
Rob Harrington
c4c9c92d7e
Refactoring StandingOrderPlacementJob, loading ProxyOrders and initialsing where necessary
2018-02-09 14:43:55 +11:00
Rob Harrington
e6fbdb17e8
Only initialise a proxy order once
2018-02-09 14:43:55 +11:00
Rob Harrington
02f474e16a
Fixing up spec data for orders spec
2018-02-09 14:43:55 +11:00
Rob Harrington
0861a4391e
Removing ui-sortable library (no longer required)
2018-02-09 14:43:55 +11:00
Rob Harrington
1731d4daa7
Rejigging schedule dialog, limit options to coordinated order cycles, with same coordinator as selected OCs
2018-02-09 14:43:55 +11:00
Rob Harrington
875557dc9d
WIP: ProxyOrders don't require an order, fixing remainder of specs
2018-02-09 14:43:55 +11:00
Rob Harrington
be8fa1f4e4
WIP: ProxyOrders don't require an order, calculating total for serialized proxy orders from standing order where order does not exist
2018-02-09 14:43:55 +11:00
Rob Harrington
3d3013a592
WIP: ProxyOrders don't require an order, adding an edit path for proxy orders
...
initialises an order if one does not exist and redirects to its edit path
2018-02-09 14:43:55 +11:00
Rob Harrington
4b440c83a4
WIP: ProxyOrders don't require an order, StandingOrderForm changes
2018-02-09 14:43:55 +11:00
Rob Harrington
f57cae9124
Removing null: false contraint on order_id for ProxyOrder
2018-02-09 14:43:55 +11:00
Rob Harrington
2231d4c6cf
Using factories to build spec data rather than StandingOrderForm
2018-02-09 14:43:54 +11:00
Rob Harrington
e29a4f9a8a
Moving order initialisation logic from StandingOrderForm to ProxyOrder model
2018-02-09 14:43:54 +11:00
Rob Harrington
64206bc35b
ProxyOrders belong to order cycles
2018-02-09 14:43:54 +11:00
Rob Harrington
e351c3e355
Renaming StandingOrderOrder to ProxyOrder
2018-02-09 14:43:54 +11:00
Rob Harrington
fc845a36f1
Fix weird spec failure cause by a Rails.cache.clear call resetting the currency to USD on CI only
2018-02-09 14:43:54 +11:00
Rob Harrington
9bf3767093
Preventing line item stock level checks when updating standing orders
2018-02-09 14:43:54 +11:00
Rob Harrington
8e0f2fcb35
Adding optional manual override of line item stock level check
2018-02-09 14:43:54 +11:00
Rob Harrington
00ee5a63df
Removing incorrect namespacing from StandingOrderForm spec
2018-02-09 14:43:54 +11:00
Rob Harrington
e068c4831b
Adding job to send confirm emails for standing orders on order cycle close
2018-02-09 14:43:54 +11:00
Rob Harrington
2a03477597
Adding standing_orders_confirmed_at flag to order_cycles
2018-02-09 14:43:54 +11:00
Rob Harrington
deebc31c34
DRYing out standing order email template
2018-02-09 14:43:53 +11:00
Rob Harrington
9f1ff1fd01
Adding OrderCycleOpenCloseJob to the whenever schedule
2018-02-09 14:43:53 +11:00
Rob Harrington
f7229ab229
Uninitialised but recently updated order_cycles also trigger StandingOrderPlacementJob
2018-02-09 14:43:53 +11:00
Rob Harrington
c2b68ed6b5
Running StandingOrderSyncJob when order cycles added to a schedule via OrderCyclesController
2018-02-09 14:43:53 +11:00
Rob Harrington
0a74bb8373
Running StandingOrderSyncJob when order cycles added to a schedule via SchedulesController
2018-02-09 14:43:53 +11:00
Rob Harrington
ef5ff3a663
Adding job to re-sync standing orders when order cycles are added to or removed from schedules
2018-02-09 14:43:53 +11:00
Rob Harrington
d6e5c0b346
Adding extra scopes to StandingOrder model
2018-02-09 14:43:53 +11:00
Rob Harrington
107474fc74
Fixing standing_order_with_items factory
2018-02-09 14:43:53 +11:00
Rob Harrington
9a984963a7
Ensuring that only active standing orders are processed when order cycle opens
2018-02-09 14:43:53 +11:00
Rob Harrington
805baa18a9
Adding cancel/close button to standing order form
2018-02-09 14:43:53 +11:00
Rob Harrington
533b05384c
Refactoring save bar on standing order create/edit form
2018-02-09 14:43:52 +11:00
Rob Harrington
9c2e67e953
Cancelling a standing order just changes the state, does not remove it from the page
2018-02-09 14:43:52 +11:00
Rob Harrington
522e646b36
Adding tooltips to standing order index actions
2018-02-09 14:43:52 +11:00
Rob Harrington
3d8dceb76a
Displaying state of standing orders on index
2018-02-09 14:43:52 +11:00
Rob Harrington
b9316422d2
Adding method to determine state of standing orders
2018-02-09 14:43:52 +11:00
Rob Harrington
8d1899b13d
Adding pause and unpause actions to standing orders
2018-02-09 14:43:52 +11:00
Rob Harrington
8ff9ffbc38
Adding controller actions and routes for pausing and unpausing a standing order
2018-02-09 14:43:52 +11:00
Rob Harrington
961df756c5
Adding paused_at column to standing orders
2018-02-09 14:43:52 +11:00
Rob Harrington
736de4826f
Renaming cancelled_at column to canceled_at, for consistency
2018-02-09 14:43:52 +11:00
Rob Harrington
774245f540
Adding cancel button to standing orders index
2018-02-09 14:43:51 +11:00
Rob Harrington
a2ddf78842
Ensure red buttons have white text
2018-02-09 14:43:51 +11:00
Rob Harrington
f4ce0a4b81
Adding ConfirmDialog service
2018-02-09 14:43:51 +11:00
Rob Harrington
a23a0a233e
Renaming info dialog stylesheet to more general dialogs.css
2018-02-09 14:43:51 +11:00
Rob Harrington
7dcf7ec5b0
Adding controller action and route for cancelling a standing order
2018-02-09 14:43:51 +11:00
Rob Harrington
b643829fe2
Standing Orders can be marked as cancelled
2018-02-09 14:43:51 +11:00
Rob Harrington
076a05f8a9
Adding spec for case when standing_order_orders aren't linked to an order cycle
...
This should never happen, but came up in specs
2018-02-09 14:43:50 +11:00
Rob Harrington
284103b6b6
Adding canceled_at column to standing_orders table
2018-02-09 14:43:50 +11:00
Rob Harrington
dd099eae54
Visualising standing order order state, still some spec failures
2018-02-09 14:43:50 +11:00
Rob Harrington
309781d5b1
Individual StandingOrder orders can be resumed from Standing Order index
2018-02-09 14:43:50 +11:00
Rob Harrington
2023a1a2fc
Adding translations for StandingOrderOrder resume/cancel errors
2018-02-09 14:43:50 +11:00
Rob Harrington
d1ca9a6e14
Adding a #resume action to StandingOrderOrdersController
2018-02-09 14:43:49 +11:00
Rob Harrington
fc463fd608
Adding resume logic to StandingOrderOrder model
2018-02-09 14:43:49 +11:00
Rob Harrington
d89a05aec8
Adding an error message when cancellation of standing order order fails
2018-02-09 14:43:49 +11:00
Rob Harrington
6dd31a947e
Show closing times for orders in standing order orders panel
2018-02-09 14:43:49 +11:00
Rob Harrington
5191877fbe
BasicOrderCycleSerializer renders order open and close times
2018-02-09 14:43:49 +11:00
Rob Harrington
f6af5098b0
Using MomentJS to handle dates on bulk order management
2018-02-09 14:43:48 +11:00
Rob Harrington
7644f08d5c
Individual StandingOrder orders can be cancelled from Standing Order index
2018-02-09 14:43:48 +11:00
Rob Harrington
27b22acd37
Fixing bug that caused references to stale DOM objects to be kept and used by Panels service
...
Was causing panels to break when used in conjuction with ng-repeat + filters
2018-02-09 14:43:48 +11:00
Rob Harrington
50b84c4ced
Fixing typo in SO spec description
2018-02-09 14:43:48 +11:00
Rob Harrington
9160a3ff6b
Displaying Order Cycle names in orders panel on standing orders index
2018-02-09 14:43:48 +11:00
Rob Harrington
a57815edbb
Refactoring standing line item delete logic
...
Using StandingOrderForm rather than separate endpoint
2018-02-09 14:43:47 +11:00
Rob Harrington
4c754e2cdb
Ensuring that new standing_line_items are added to orders and totals are updated
2018-02-09 14:43:47 +11:00
Rob Harrington
fcf2681abc
WIP: Adding basic order panel to standing order index
2018-02-09 14:43:47 +11:00
Rob Harrington
ffcffb30ca
Moving standing orders products panel template into separate partial
2018-02-09 14:43:47 +11:00
Rob Harrington
cdff1ef7b6
TEMP: Adding scopes for standing_order_orders
2018-02-09 14:43:47 +11:00
Rob Harrington
d95d9df0f1
Standing Order Orders can be cancelled
2018-02-09 14:43:47 +11:00
Rob Harrington
56fb50f644
Refactoring customer_search_override directive
...
Passing distributor_id into isolate scope, rather than pulling from separate element
2018-02-09 14:43:47 +11:00
Rob Harrington
f4cbd90400
Storing estimated prices for standing line items in the database
2018-02-09 14:43:46 +11:00
Rob Harrington
9baaf1efc9
Only running StandingOrder service 'after' callbacks for known standing orders
...
ie. those in byID or pristineByID
2018-02-09 14:43:46 +11:00
Rob Harrington
0196218d06
Conditionally loading an edit path for standing orders
...
ie. only if they have an id
2018-02-09 14:43:46 +11:00
Rob Harrington
b253373d4d
Styling save button for standing order panels, and updating pristineByID array on update/save
2018-02-09 14:43:46 +11:00
Rob Harrington
8f71b56c26
Using same serializer for standing order index and edit pages
2018-02-09 14:43:46 +11:00
Rob Harrington
e8ee1dad04
Building params for adding new customer in the dialog directive, rather than generic Customers service
2018-02-09 14:43:45 +11:00
Rob Harrington
dc2551d881
Moving Schedules and ScheduleResource services to admin.resources module
2018-02-09 14:43:45 +11:00
Rob Harrington
c167780cad
Adding auto-loading of schedules to Schedules service via constructor
2018-02-09 14:43:45 +11:00
Rob Harrington
534e69fde5
Including errors attribute from StandingOrderPrototype in spec
2018-02-09 14:43:45 +11:00
Rob Harrington
e92b17a341
Adding an error message when attempting to add duplicate variant to a standing order
2018-02-09 14:43:45 +11:00
Rob Harrington
1bd01c83a7
WIP: Adding panel for editing items to standing order index
2018-02-09 14:43:44 +11:00
Rob Harrington
05bc2bd293
All methods on StandingOrder service are instance methods, StandingOrders service loads instances of StandingOrder
2018-02-09 14:43:44 +11:00
Rob Harrington
6f4c9070f6
Adding StandingLineItemsController to handle addition and removal of SLIs from standing orders
2018-02-09 14:43:44 +11:00
Rob Harrington
198f63d0b3
Removing unrequired StatusMessage injection
2018-02-09 14:43:44 +11:00
Rob Harrington
a72da7036b
buildItem and removeItem are instanceMethods standingOrder objects
2018-02-09 14:43:44 +11:00
Rob Harrington
3571b8c5fa
Fixing date specification for order cycle spec
2018-02-09 14:43:43 +11:00
Rob Harrington
91a2274fe5
Adding link and dialog for creating a new standing order
2018-02-09 14:43:43 +11:00
Rob Harrington
0f2adaa8d2
Adding link to standing orders index to orders sub-menu
2018-02-09 14:43:43 +11:00
Rob Harrington
c3e071b0d1
Removing retry from stabilised customers codes feature spec
2018-02-09 14:43:43 +11:00
Rob Harrington
8c9765749e
Ensuring that backorders are disabled when testing quantity capping for standing orders
2018-02-09 14:43:43 +11:00
Rob Harrington
6cf23b46c5
Fixing broken country and state selection for customer addresses
2018-02-09 14:43:42 +11:00
Rob Harrington
7fa55fe5c6
Adding spec to ensure that invalid changes to standing orders are not propagated to associated orders
2018-02-09 14:43:42 +11:00
Rob Harrington
21d8aafd97
Using numbers for state and countries ids in AddressSerializer
2018-02-09 14:43:42 +11:00
Rob Harrington
fbd3d99b1b
OC feature spec: Using find for columns dropdown instead of first
2018-02-09 14:43:42 +11:00
Rob Harrington
f14c36ed6b
Sending placement email when standing order order in placed on OC open
2018-02-09 14:43:42 +11:00
Rob Harrington
65db856054
Order confirmation emails are not sent for standing order orders.
2018-02-09 14:43:42 +11:00
Rob Harrington
8ab698d4dc
Generating orders for standing orders ignores stock on hand at initialisation
2018-02-09 14:43:42 +11:00
Rob Harrington
5598a0d24f
line_item.unit_value delegates to variant when quantity is 0 or final_weight_volume is missing
2018-02-09 14:43:41 +11:00
Rob Harrington
ef00dca5a0
Changing format of changes object in standing order placement job
2018-02-09 14:43:41 +11:00
Rob Harrington
7a308f1651
Updating letter_opener gem
2018-02-09 14:43:41 +11:00
Rob Harrington
3edfd07a40
WIP: adding method to StandingOrderPlacementJob to send emails
2018-02-09 14:43:41 +11:00
Rob Harrington
5e0186fa1f
Standing Order Placement Job: capping line items quantities to available stock level
2018-02-09 14:43:41 +11:00
Rob Harrington
1c7e9923f9
Checking for sufficient stock takes variant overrides into account
2018-02-09 14:43:41 +11:00
Rob Harrington
a8928a0ccc
Capping line item quantity at stock takes overrides into account
2018-02-09 14:43:40 +11:00
Rob Harrington
2aad722b4b
WIP, SO placement job: preventing payments on standing orders from being processed when OC opens
2018-02-09 14:43:40 +11:00
Rob Harrington
9ad6dce2d6
WIP, SO placement job: processing orders to completion
2018-02-09 14:43:39 +11:00
Rob Harrington
178aadb311
WIP, SO placement job: Finding orders to be placed
2018-02-09 14:43:39 +11:00
Rob Harrington
6f629e112a
WIP, OC open-close job: performing the job spawns StandingOrderPlacementJobs for each recently opened OC
2018-02-09 14:43:39 +11:00
Rob Harrington
5b25f63e44
WIP, OC open-close job: finding recently opened order cycles
2018-02-09 14:43:39 +11:00
Rob Harrington
140d62939a
Adding processing marker column standing_orders_placed_at to order cycles
2018-02-09 14:43:39 +11:00
Rob Harrington
95a7fc8ef5
Initialisation and removal of standing order orders respects begins_at and ends_at contraints
2018-02-09 14:43:39 +11:00
Rob Harrington
3eff65f1f5
Finish refactoring of Standing Order Updaters, replacing with form class used by controller
2018-02-09 14:43:38 +11:00
Rob Harrington
2a3dc33f86
WIP: Pushing shipment and payment update logic down into separate methods
2018-02-09 14:43:38 +11:00
Rob Harrington
6ea4aac361
WIP: Refactoring StandingOrderUpdater into StandingOrderForm
...
Update logic coupled to update action on controller rather than changes to the model
2018-02-09 14:43:38 +11:00
Rob Harrington
0b35cb6619
Standing Order Updater handles changes to line item quantities
2018-02-09 14:43:38 +11:00
Rob Harrington
9468dcb406
Adding lib class to maintain standing order orders
2018-02-09 14:43:38 +11:00
Rob Harrington
d5349e7ad0
Standing Orders: adding association between orders and standing orders
2018-02-09 14:43:38 +11:00
Rob Harrington
a7132684e5
Standing Orders: create join table for linking orders with standing orders
2018-02-09 14:43:37 +11:00
Rob Harrington
7eac6e725a
Standing Orders: adding order_cycles association to StandingOrder model
2018-02-09 14:43:37 +11:00
Rob Harrington
aeae0f245e
Standing Orders: standing line items can be deleted from existing standing order
2018-02-09 14:43:37 +11:00
Rob Harrington
38d75d2b1c
Standing Orders: adding routing and controller action for deleting standing line items
2018-02-09 14:43:37 +11:00
Rob Harrington
594bec1b37
StandingLineItems can be removed when creating a StandingOrder
2018-02-09 14:43:37 +11:00
Rob Harrington
1b711bcd46
Standing Orders can be edited
2018-02-09 14:43:37 +11:00
Rob Harrington
4ad6b1a65e
Billing and Shipping addresses can be set on new standing orders
2018-02-09 14:43:37 +11:00
Rob Harrington
b701ca43f4
WIP: adding shiping and billing address to StandingOrder model
2018-02-09 14:43:37 +11:00
Rob Harrington
88563431b8
Module arguments passed to injection functions in consistent way
2018-02-09 14:43:36 +11:00
Rob Harrington
06fffb9ef7
SO Index: centering data in some columns
2018-02-09 14:43:35 +11:00
Rob Harrington
ab0728cd0b
SO Index: Adding day to standing order dates
2018-02-09 14:43:35 +11:00
Rob Harrington
44d7537744
SO Index: Adding items column
2018-02-09 14:43:34 +11:00
Rob Harrington
6fadeacf0e
SO Index: Adding begins_on and ends_on columns
2018-02-09 14:43:34 +11:00
Rob Harrington
af9376b60c
SO Index: Adding column dropdown
2018-02-09 14:43:34 +11:00
Rob Harrington
a395f183f9
SO Index: adding spec for changing shops
2018-02-09 14:43:34 +11:00
Rob Harrington
7c57d3d4c6
SO Index: standing orders can be filtered using quick search
2018-02-09 14:43:34 +11:00
Rob Harrington
bbd43f7026
SO Index: User must select a shop first in order to load relevant standing orders
2018-02-09 14:43:34 +11:00
Rob Harrington
a94742e4db
Ensuring ransack restrictions are applied in StandingOrderController#collection
2018-02-09 14:43:33 +11:00
Rob Harrington
24cb823c90
Loading managed shops into standing orders index, to be used for filtering
2018-02-09 14:43:33 +11:00
Rob Harrington
8372317a8f
Enterprise User can view basic listing of standing orders
2018-02-09 14:43:33 +11:00
Rob Harrington
ef08fd4bb3
Adding dedicated standing order serializer for index
2018-02-09 14:43:33 +11:00
Rob Harrington
1d58ef55f7
Calling Standing Orders index controller action using json returns serialized data
2018-02-09 14:43:33 +11:00
Rob Harrington
a1ccf8a28e
Adding initial defaults for standing orders index column visibility
2018-02-09 14:43:32 +11:00
Rob Harrington
7ab05cf857
Basic AngularJS controller and service for loading StandingOrders
2018-02-09 14:43:32 +11:00
Rob Harrington
c18c1c67d1
Adding visibility permissions for standing orders
2018-02-09 14:43:32 +11:00
Rob Harrington
cd2d73810d
StandingOrderResource can handle index action
2018-02-09 14:43:32 +11:00
Rob Harrington
91917886a8
Adding basic routing and templates for standing orders index
2018-02-09 14:43:32 +11:00
Rob Harrington
8bbc0b7790
Adding translations to standing order form
2018-02-09 14:43:32 +11:00
Rob Harrington
2e83ab80cf
Tweaking layout of details section of standing order creation form
2018-02-09 14:43:32 +11:00
Rob Harrington
bba4b54f9b
Adding a wizard progress indicator to standing order creation form
2018-02-09 14:43:31 +11:00
Rob Harrington
897eb11512
Standing Orders: form split into ngForm elements with staggered validation
2018-02-09 14:43:31 +11:00
Rob Harrington
ac5fe6a9fb
Each section of standing order form has a title
2018-02-09 14:43:31 +11:00
Rob Harrington
29760d6419
Renaming 'items' partial as 'products'
2018-02-09 14:43:31 +11:00
Rob Harrington
1808e3881f
Making standing order creation more like a wizard
2018-02-09 14:43:31 +11:00
Rob Harrington
a9ea042791
Splitting details section of standing order form out into partial
2018-02-09 14:43:31 +11:00
Rob Harrington
6d5ca1501c
Moving standing order form into separate partial
2018-02-09 14:43:31 +11:00
Rob Harrington
946046e53b
Moving action for estimating standing_line_item prices into StandingLineItemController#build
2018-02-09 14:43:31 +11:00
Rob Harrington
71b84d490e
Adding validation contraints to standing order associations
2018-02-09 14:43:30 +11:00
Rob Harrington
6bd5a895b3
Moving InfoDialog into admin.utils module
2018-02-09 14:43:30 +11:00
Rob Harrington
e661430cc9
StandingLineItems added to StandingOrder are saved
...
Adding some additional validation
2018-02-09 14:43:30 +11:00
Rob Harrington
415955e7b3
SO: Adding variants to a new standing order, price estimate provided
2018-02-09 14:43:30 +11:00
Rob Harrington
5aa993f5b4
Moving select2 config for variant-autocomplete into a directive
2018-02-09 14:43:30 +11:00
Rob Harrington
6934b87816
SO: Adding basic interface for Standing Order creation
2018-02-09 14:43:29 +11:00
Rob Harrington
e4de7e262d
SO: Adding StandingLineItem model
2018-02-09 14:43:29 +11:00
Rob Harrington
d711c321b6
SO: Adding Standing Order Model
2018-02-09 14:43:29 +11:00
Rob Harrington
733dc76c6c
Order Cycles can be assigned to schedules via new/edit form
2018-02-09 14:43:29 +11:00
Rob Harrington
4195bd6cd8
Order Cycles can be filtered by Schedule
2018-02-09 14:43:29 +11:00
Rob Harrington
8c0bad3115
Schedules can be deleted from OC index
2018-02-09 14:43:28 +11:00
Rob Harrington
a9b9cbf4bd
Restoring 'Loading' flash to order cycle index
2018-02-09 14:43:28 +11:00
Rob Harrington
33e5601658
Adding translation for schedule without OCs error
2018-02-09 14:43:28 +11:00
Rob Harrington
2a1ca1c206
Using angular-ui sortable instead of pure jQuery, refactoring logic around including blanks in select2s
2018-02-09 14:43:28 +11:00
Rob Harrington
357040f67a
Enterprise User can create and update schedules via OC index
2018-02-09 14:43:28 +11:00
Rob Harrington
920f52e112
Adding schedules to Order Cycles interface
2018-02-09 14:43:28 +11:00
Rob Harrington
a25f2141a5
Adding Order Cycle Schedules join table
2018-02-09 14:43:27 +11:00
Rob Harrington
c51b956b01
Adding Schedule model
2018-02-09 14:43:27 +11:00
Rob Harrington
0d845b0fd6
Adding column toggling interface to Order Cycles index
2018-02-09 14:43:27 +11:00
Rob Harrington
fe9f147ff0
Adding ability to filter OC index by OC name or 'involved' enterprise
2018-02-09 14:43:27 +11:00
Rob Harrington
2a5f598fb0
Angularising Order Cycles Index
2018-02-09 14:43:20 +11:00
Maxime Lalisse
bf69ed0008
Add and namespace a missing translation key
2018-02-09 11:57:44 +11:00
Maxime Lalisse
8bd952ed56
Add i18n for defaced elements in admin_product_tabs
2018-02-09 11:57:44 +11:00
Maxime Lalisse
9a3f61904b
Add translation keys for admin_product_tabs
2018-02-09 11:57:44 +11:00
Godfrey Chan
fbc5318a7b
Add Skylight instrumentation
...
If you’re not already familiar with [Skylight](https://www.skylight.io ),
it is a smart profiler for Rails apps. Skylight makes it easy to
pinpoint performance issues in Rails applications.
We work on a lot of open source projects ourselves, and in our
experience it can be pretty hard to get contributors to work on
application performance issues. Few contributors consider working
on performance problems, and the ones that might be interested may
not even know where to start.
By making performance information more accessible, we hope to
inspire potential contributors to tackle slow parts of your app,
and have a good way to see if their contributions helped.
Local deployments that are interested in this can request an API
token from https://www.skylight.io/oss and set it in
`config/application.yml` (if no token is set, it will log a message to
`log/skylight.log` but won't otherwise prevent the app from working
normally).
2018-02-07 11:37:30 -08:00
Matt-Yorkley
41ce7047cc
Tidy up order cycle spec
2018-02-07 17:48:16 +11:00
Matt-Yorkley
f28471e456
Fixed datepicker button intermittent failure
2018-02-07 17:48:16 +11:00
Matt-Yorkley
4cb9e3a3f1
Datepicker CSS tweaks
2018-02-07 17:48:16 +11:00
Matt-Yorkley
2f6a249b5f
Fix missing datepicker icon
2018-02-07 17:48:16 +11:00
Pau Perez
0634735288
Adjust Codeclimate config to ignore Rails patch
...
Since it is a file copied from Rails 4, we want to keep it in its
original state and not refactor it.
2018-02-07 16:21:16 +11:00
Pau Perez
719c45b408
Apply Rails 4 patch at boot time not only specs
...
This makes this patch available also for things like database-related
rake tasks. It moves the patch to an initializer.
2018-02-07 16:21:16 +11:00
Maikel Linke
b70edd5424
Enabling non-privileged postgres users to run specs
...
Addressing issue #245 .
A combination of fixtures and foreign key constraints requires the postgres
user to be superuser. Otherwise an attempt to disable constraints fails.
This got fixed in Rails 4 and this patch brings the same behaviour back to
Rails 3. It will allow us to run the specs with a nosuperuser postgres user.
See:
- https://github.com/matthuhiggins/foreigner/issues/61
- 9bb27f7ffe
2018-02-07 16:21:16 +11:00
Aaron Hursh
a6498c2f96
Removed ng-disabled conditional from submit button on admin customers index.
2018-02-07 15:09:07 +11:00
Rob Harrington
56be7b1d46
Fix spec to handle non-deterministic ordering
2018-02-07 11:45:48 +11:00
Rob Harrington
b2f3477261
Change unused creation_date translation key back to confirmation_date
...
See 22eae753fe for original change
2018-02-07 11:42:38 +11:00
Matt-Yorkley
14b73149be
Remove stale form validation messages when showing new confirmation sent message
2018-02-07 10:41:54 +11:00
Matt-Yorkley
0ab7d95607
Remove mention of confirmation email from enterprise creation wizard
2018-02-07 10:41:53 +11:00
Matt-Yorkley
ee08dcfeb4
Use owner as contact if user record doesn't exist
2018-02-07 10:41:53 +11:00
Matt-Yorkley
b893dea810
Make sure userSelect directive uses our Admin::UserSerializer instead of base Spree api view
2018-02-07 10:41:53 +11:00
Matt-Yorkley
ec5ce45850
Change confirmation email wording
2018-02-07 10:41:53 +11:00
Matt-Yorkley
9afb97fa0f
Show contact email without full permissions
2018-02-07 10:41:53 +11:00
Matt-Yorkley
676abe0ced
Remove serialized contact attributes
2018-02-07 10:41:53 +11:00
Matt-Yorkley
73d38cb91b
Re-add text version of confirmation email for accessibility
2018-02-07 10:41:53 +11:00
Matt-Yorkley
fffae46a63
Remove enterpriseRoles from enterprsies controller
2018-02-07 10:41:53 +11:00
Matt-Yorkley
6ed91cab1f
Remove old translation keys
2018-02-07 10:41:53 +11:00
Matt-Yorkley
cc5d0c35dd
Refactor enterprise contact user assignment
2018-02-07 10:41:53 +11:00
Matt-Yorkley
c34570154c
Use contact model in printed tickets
2018-02-07 10:41:53 +11:00
Matt-Yorkley
a5940e1641
Fix user controller spec
2018-02-07 10:41:53 +11:00
Matt-Yorkley
39f0c5b5b0
Rename contact name field and revert contact name specs
2018-02-07 10:41:53 +11:00
Matt-Yorkley
abb5adec43
Enterprise managers UI specs
2018-02-07 10:41:53 +11:00
Matt-Yorkley
525cb4826f
Code review refactoring
2018-02-07 10:41:53 +11:00
Matt-Yorkley
fde0aba96c
Feedback when user changes email addess
2018-02-07 10:41:53 +11:00
Matt-Yorkley
ff18fd25f1
Adjust Discourse login for user confirmations
2018-02-07 10:41:53 +11:00
Matt-Yorkley
9248ac05ac
Adjustments for failing specs
2018-02-07 10:41:53 +11:00
Matt-Yorkley
a066c6391d
Adjust injection data namespacing
2018-02-07 10:41:53 +11:00
Matt-Yorkley
4d11485283
Use receives_notifications flag for enterprise contact
2018-02-07 10:41:53 +11:00
Matt-Yorkley
9e270690ef
Remove enterprise email
...
A user with the same email address is receiving notifications now.
If the email address is invalid, the owner receives notifications.
2018-02-07 10:41:53 +11:00
Matt-Yorkley
15b781b271
Update enterprise managers and contact role
2018-02-07 10:41:52 +11:00
Matt-Yorkley
5dc8f21b7b
Show confirmed status in enterprise managers UI
2018-02-07 10:41:52 +11:00
Matt-Yorkley
9ccb3ee80b
Add receives_notifications flag to enterprise_roles
2018-02-07 10:41:52 +11:00
Matt-Yorkley
27de66b055
Owner's permissions can't be deleted
2018-02-07 10:41:52 +11:00
Matt-Yorkley
ba98c7e2c5
Rewrite enterprise contact functionality
2018-02-07 10:41:52 +11:00
Matt-Yorkley
22eae753fe
Remove enterprise confirmations
2018-02-07 10:41:52 +11:00
Pierre de Lacroix
d832d850fe
Revert removed translations for Enterprise mails
2018-02-07 10:41:52 +11:00
Matt-Yorkley
aead867ea0
Set all current users to confirmed
2018-02-07 10:41:51 +11:00
Matt-Yorkley
97f5022bdd
Show signup message in modal wihout redirect
2018-02-07 10:41:51 +11:00
Matt-Yorkley
0cb7a555d3
Adjust confirmation template
2018-02-07 10:41:51 +11:00
Maikel Linke
52b7872a55
Simplify conditionals
2018-02-07 10:41:51 +11:00
Matt-Yorkley
522aaee1a3
Update login modal for resending confirmations
2018-02-07 10:41:51 +11:00
Matt-Yorkley
179cf6e484
Tidy up confirmation migrations
2018-02-07 10:41:51 +11:00
Matt-Yorkley
28ded1f0c2
Adjust user signup feedback
2018-02-07 10:41:51 +11:00
Pierre de Lacroix
7d971fc39d
Add UserConfirmationsController spec
2018-02-07 10:41:51 +11:00
Pierre de Lacroix
4f0b20e8ad
Better tests
2018-02-07 10:41:51 +11:00
Pierre de Lacroix
a6f2ee1367
Add migration to confirm already confirmed email addresses
2018-02-07 10:41:51 +11:00
Pierre de Lacroix
eb1c598a6c
Fix tests
2018-02-07 10:41:51 +11:00
Pierre de Lacroix
4706bf0528
Remove changes on FR locale file
2018-02-07 10:41:51 +11:00
Matt-Yorkley
969b6caa96
Code cleanup
2018-02-07 10:41:51 +11:00
Matt-Yorkley
69ea1e6d26
Set test users to confirmed by default
2018-02-07 10:41:51 +11:00
Pierre de Lacroix
91704d9df7
Create user confirmation email
2018-02-07 10:41:51 +11:00
Pierre de Lacroix
dbbc2ddb1c
Add confirmable email to user model
2018-02-07 10:41:51 +11:00
Pau Pérez Fabregat
99729457cc
Merge pull request #2063 from coopdevs/autocorrect-cop
...
Autocorrect rubocop Layout/BlockEndNewline cop
2018-02-05 08:50:58 +01:00
Pau Pérez Fabregat
5a58294bc6
Merge pull request #2042 from erose357/master
...
addresses issue #1275
2018-02-02 13:41:23 +01:00
Enrico Stano
398b3bbd8b
Merge pull request #1960 from coopdevs/remove-warning
...
Fix payment_method_decorator boot-time warning
2018-02-02 10:43:51 +01:00
Pau Perez
6cb038c362
Autocorrect rubocop Layout/BlockEndNewline cop
2018-02-01 09:52:53 +01:00
Pau Pérez Fabregat
cc40948783
Merge pull request #2051 from coopdevs/regenerate-knapsack-report
...
Regenerate Knapsack report
2018-01-31 15:04:30 +01:00
Enrico Stano
00bdcd3948
Merge pull request #2045 from coopdevs/use-symbol-hash-syntax
...
Enable HashSyntax rubocop cop with symbol style
2018-01-31 09:30:06 +01:00
Matt-Yorkley
c860ffc176
Adjust use of non-translatable open/closed icons
2018-01-24 15:33:26 +11:00
Pau Perez
8664411880
Disable knapsack report generation again
...
No need to enable it to regenerate the report again until Knapsack
itself tells us.
2018-01-23 09:21:56 +01:00
Pau Perez
f17f1008e3
Update knapsack report file with latest CI values
2018-01-23 09:21:10 +01:00
Pau Perez
a2828f3b9a
Regenerate Knapsack report
...
It's already asking for it in the CI output
2018-01-23 08:06:53 +01:00
Pau Perez
cbfdfb43e3
Enable HashSyntax rubocop cop with symbol style
...
This enforces the ruby 1.9 symbol hash syntax and consistency among the
style of the keys.
# bad
{:a => 1, :b => 2}
{c: 2, 'd' => 3} # should just use hash rockets
# good
{a: 1, b: 2}
{:c => 3, 'd' => 4}
The .rubocop-todo.yml is also updated to keep track of the existing
violations.
2018-01-20 12:50:50 +01:00
Matt-Yorkley
23e672aef9
Add updated globe icon to mobile view
2018-01-19 10:56:11 +00:00
Matt-Yorkley
6d9cc7e29d
Fix account page locale
2018-01-18 10:22:40 +11:00
Matt-Yorkley
8a47788a09
Remake OFN icon font
2018-01-18 10:22:40 +11:00
Matt-Yorkley
afed5ab666
Refector spec
2018-01-18 10:22:40 +11:00
Matt-Yorkley
357eda8c19
Adjustments for failing specs
2018-01-18 10:22:40 +11:00
Matt-Yorkley
f18401d183
Language switcher frontend
2018-01-18 10:22:40 +11:00
Matt-Yorkley
4ea91d14f9
Template I18n changes
2018-01-17 12:03:27 +11:00
Pau Perez
f57661b13f
Fix payment_method_decorator boot-time warning
...
Removes the annoying message "warning: already initialized constant
Spree::PaymentMethod::DISPLAY" that appears 4 times when booting the
app.
We are declaring said constant exactly as our Spree version does so
there's no point on repeating work.
2018-01-15 12:50:05 +01:00
Pau Pérez Fabregat
ad25c1d1b2
Merge pull request #2033 from coopdevs/add-setup-script
...
Add setup script
2018-01-15 12:05:19 +01:00
Pau Perez
87af5dcee5
Point to rbenv and nodenv from setup script
...
Show the appropriate links when the Ruby and Node dependencies are not
met. This will make it easier for newcomers to install them.
2018-01-12 08:22:50 +01:00
Pau Perez
106871b956
Check node version and install npm packages
2018-01-11 14:14:08 +01:00
Pau Perez
4d25abcfce
Add setup script
...
It aims to aid new open source contributors on setting up their dev
env by means of a single command with meaningful output.
Although ofn-install ansible scripts also work for development we don't
want to add too much burden to those single-time beginner contributions.
2018-01-11 14:14:08 +01:00
Rob Harrington
2ccdf3c97a
Use upstream and origin as remote names
...
Also fixed a couple of typos
2018-01-11 14:30:08 +11:00
Rob Harrington
89bd9c8038
Update CONTRIBUTIONS.md to reflect current processes
2018-01-11 14:30:08 +11:00
Enrico Stano
88627dc837
Merge pull request #2038 from boveus/master
...
Update README.md
2018-01-10 12:17:21 +01:00
Brandon Stewart
8ca57b0705
Update README.md
2018-01-09 14:02:27 -07:00
Brandon Stewart
c7db283e8c
Update README.md
2018-01-09 14:00:07 -07:00
erose357
83ca3b7b8b
Adds a css rule to target the logo in .footer-local and padding between the logo and open source info at the bottom
2018-01-09 12:54:41 -07:00
Brandon Stewart
830699d2b8
Update README.md
2018-01-09 10:29:02 -07:00
Brandon Stewart
f822e658c4
Update README.md
2018-01-09 10:23:51 -07:00
Brandon Stewart
8817a1afb7
Update README.md
2018-01-09 10:23:30 -07:00
Brandon Stewart
693adf181e
Update README.md
2018-01-09 10:21:24 -07:00
Brandon Stewart
f269f13b09
Update README.md
2018-01-08 11:50:44 -07:00
Matt-Yorkley
9845258a25
Merge pull request #2035 from Matt-Yorkley/uk/rubocop_fix
...
Update rubocop.yml
2018-01-05 20:16:44 +00:00
Enrico Stano
edbed2c8d3
Merge pull request #1984 from coopdevs/fix/api-key-taxons
...
Disable api auth as there is no Spree api key set
2018-01-05 10:31:36 +01:00
Matt-Yorkley
8e0f2d2500
Merge pull request #2037 from Matt-Yorkley/uk/codeclimate_checks
...
Codeclimate yml update
2018-01-05 01:37:06 +00:00
Matt-Yorkley
e022504c26
Codeclimate yml update
2018-01-04 17:10:55 +00:00
Matt-Yorkley
62e4cbd052
Update rubocop.yml
2018-01-04 16:01:06 +00:00
Enrico Stano
70ae59550d
Merge pull request #2032 from Matt-Yorkley/uk/codeclimate_migrations
...
Adjust codeclimate engine for migrations folder
2018-01-03 13:48:47 +01:00
Lynne
f74af8fa2d
Merge pull request #2034 from lin-d-hop/translations-uk
...
Manual uk translation update
2018-01-03 06:00:07 +01:00
lin-d-hop
82d1b57005
Not updated from transifex so manually commiting
2018-01-03 03:40:04 +00:00
Lynne
c32aacc1b3
Delete en-GB.yml
...
Superseded by en_GB.yml
2018-01-03 03:29:52 +00:00
Matt-Yorkley
523b4045bf
Adjust codeclimate engine for migrations folder
2018-01-02 13:54:41 +00:00
Enrico Stano
8e4e273b7c
Merge pull request #1994 from openfoodfoundation/transifex
...
Transifex
2017-12-22 16:36:44 +11:00
Enrico Stano
816297e22f
Merge pull request #2022 from ltrls/add-order-print-ticket-feature-test
...
Add feature test for the Spree::Admin::OrdersController print_ticket action
2017-12-22 15:07:17 +11:00
Pau Perez
72889b5c36
Stub current_user instead of api key's user
2017-12-21 10:24:29 +11:00
Pau Perez
0f0216fe79
Upgrade spree to get our latest patch
2017-12-21 10:24:29 +11:00
Pierre de Lacroix
42433d1ad4
Add feature test for the Spree::Admin::OrdersController print_ticket action
2017-12-20 23:01:18 +01:00
Pau Perez
52533fc04c
Rely on Spree's default value for requires_auth
2017-12-20 17:25:23 +11:00
Pau Perez
bb0223877c
Remove unused arguments and reduce object creation
2017-12-20 17:25:23 +11:00
Pau Perez
5eb1fcddbb
Remove dependency on TestingSupport by inlining
2017-12-20 17:25:23 +11:00
Pau Perez
c646eb3939
Disable api auth as there is no Spree api key set
...
Although Spree::Api::Config[:requires_authentication] is set to false by
default for some unknown reason if not done explicitly Spree still
returns it as false.
This amends the change done in a87c89c83d ,
which introduced the bug. As there is no Spree api key set the auth
fails when getting taxons.
2017-12-20 17:25:23 +11:00
Enrico Stano
a313c99370
Merge pull request #2005 from coopdevs/upgrade-spree-fork-version
...
Upgrade spree's fork to latest commit
2017-12-20 17:23:48 +11:00
Enrico Stano
0f84d9f02e
Merge pull request #2004 from coopdevs/is-this-needed
...
Remove unused Enterprise scopes
2017-12-20 16:59:15 +11:00
Enrico Stano
900a9c6145
Merge pull request #2000 from coopdevs/issue-template-improvement
...
Mention screenshot in the issue template
2017-12-20 16:48:54 +11:00
Pau Perez
5b33cbe9aa
Upgrade spree's fork to latest commit
...
Needed to get
3289b5e31c
2017-12-20 16:37:14 +11:00
Enrico Stano
114ce3b764
Merge pull request #1940 from coopdevs/improve-readability-shop
...
Improve readability of shop's code
2017-12-20 16:28:53 +11:00
Enrico Stano
660d3f326f
Remove unused Enterprise scopes
2017-12-20 16:00:35 +11:00
Pau Perez
b8d51ae0de
Mention screenshot in the issue template
...
For things like translations it's enough sharing a screenshot when
reporting a bug. See
https://github.com/openfoodfoundation/openfoodnetwork/issues/1999
2017-12-20 10:16:53 +11:00
Enrico Stano
0bdda6387a
Merge pull request #1996 from coopdevs/add-issue-template
...
Create issue template
2017-12-19 18:00:04 +11:00
Pau Perez
4fbdbb1aa2
Link to placeholder feature template
...
We'll write the template later on
2017-12-19 15:26:21 +11:00
Pau Perez
72ddcb4fff
Create issue template
...
It assumes most of the times issues will be reported to keep track of
bugs.
2017-12-19 11:07:29 +11:00
Transifex-Openfoodnetwork
50ef2de5f9
Updating translations for config/locales/fr.yml
2017-12-15 20:06:43 +11:00
Transifex-Openfoodnetwork
55d3ee1af0
Updating translations for config/locales/pt.yml
2017-12-13 21:19:42 +11:00
Transifex-Openfoodnetwork
422166441e
Updating translations for config/locales/en_US.yml
2017-12-09 02:29:48 +11:00
Transifex-Openfoodnetwork
9d3f85628c
Updating translations for config/locales/nb.yml
2017-12-08 18:44:22 +11:00
Pierre de Lacroix
669d9c3c66
Fix translations on account page
2017-12-06 15:21:19 +11:00
Enrico Stano
dcb406d246
Merge pull request #1986 from andypalmer/github_protocol_warning
...
Change github definition to remove insecure protocol warning.
2017-12-04 21:49:05 +11:00
Andy Palmer
cadad28b0c
Change github definition to remove insecure protocol warning. Consistently use 1.9.3 hash syntax
2017-12-04 16:50:36 +11:00
Enrico Stano
01b0a033fd
Merge pull request #1904 from oeoeaio/spree-test-config
...
Use Spree's approach for preventing config caching when testing
2017-12-04 15:57:11 +11:00
Pierre de Lacroix
0fb66ab258
Fix CodeClimate issues
2017-12-01 13:37:30 +11:00
Pierre de Lacroix
a49c21cfd1
Add instance switch to enable number localization
2017-12-01 13:37:24 +11:00
Pierre de Lacroix
f67a8c1f2d
Add tests
2017-12-01 13:37:24 +11:00
Pierre de Lacroix
f4624ead42
Make all products reload when updating in bulk edit
2017-12-01 13:37:24 +11:00
Pierre de Lacroix
2cd570383f
Use localize_number in models
2017-12-01 13:37:24 +11:00
Pierre de Lacroix
920900b619
Add Spree::LocalizedNumber module
2017-12-01 13:37:24 +11:00
Pau Perez
e98d934a67
Include localization files as documented in gem
...
I followed the Usage help in
https://github.com/derekprior/momentjs-rails .
2017-11-29 10:13:05 +11:00
leandroalemao
31a846b9c3
Refactor _i18n_script.html.haml file and add new momentjs internationalisation files
2017-11-29 10:13:05 +11:00
leandroalemao
5eaea28401
Switch momentjs internationalisation according to I18n locale
2017-11-29 10:13:05 +11:00
Pierre de Lacroix
50ef902adb
Add missing tooltip in products' bulk edit page
2017-11-23 11:31:41 +11:00
Pierre de Lacroix
75b6a078c6
Add missing translation
2017-11-23 11:31:41 +11:00
Pierre de Lacroix
c0c93c172e
Add tooltips in products bulk edit page
2017-11-23 11:31:41 +11:00
Pau Perez
ed18244070
Remove TODO in favour of an issue in Github
...
It has become the issue
https://github.com/openfoodfoundation/openfoodnetwork/issues/1961
2017-11-23 11:12:17 +11:00
Pierre de Lacroix
e13063e0c6
Fix before_filter for Spree::Admin::OrdersController#print_ticket
2017-11-23 11:01:41 +11:00
Rob Harrington
6c38997010
Fix 1664: product tag rules not working
...
Caused by a combination of: fe7bd5e2cd and 38d3b446cc
Have added/tweaked specs to prevent this from happening again
2017-11-15 10:26:24 +11: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
Lynne
c543dff2e1
Merge pull request #1956 from coopdevs/improve-pr-template
...
Add special keyword syntax to close issue from PR
2017-11-14 14:16:08 +01:00
Pau Perez
92badfd88c
Add special keyword syntax to close issue from PR
...
We want the issue to be closed when the PR gets merged but we always
forget to add the "magic" comment as described in
https://help.github.com/articles/closing-issues-using-keywords/ .
2017-11-14 09:02:52 +01:00
Lynne
dca64e6939
Merge pull request #1944 from lin-d-hop/master
...
Adding UK About pages to menus
2017-11-10 16:33:58 +01:00
Saimon Moore
a9c4d27d5e
Undo i18n_fallbacks change to production.rb
2017-11-10 12:30:24 +11:00
Saimon Moore
610c2f9519
Ensure en is an I18n fallback in all environments
...
Since `en` is considered as the main fallback for all locales
ensure that it is present in all environments.
Note: Setting `config.i18n.fallbacks` to `true` means use the default locale
which means that if a particular instance is not using an `en` based locale
(the parent `en` locale is automatically derived as a fallback) then `en` will
not be available as a fallback.
2017-11-10 12:30:24 +11:00
Saimon Moore
05d757e7c4
Ensure we have min i18n fallbacks
...
This setting defines which locales will be exported to the frontend.
In general, ofn currently functions under a single locale
(which is also the default locale) but all translations are made from
the `en` locale.
The current process of ensuring translations are translated and make
their way into code is manual and prone to issues so occasionally
translations for keys in the default locale of a particular instance
are not deployed and the UI displays `missing translation` messages.
In these cases, it is far friendlier for the user to see fallbacks to
`en` rather than these errors so this commit ensure that at the very
least apart from the current default locale, `en` is also made available
and as such will be exported to the frontend so that it's translations
are available as a fallback in JS land.
I18n fallback config was already enabled in both frontend and backend.
Until now, available locales may not have been set (determined by the
`AVAILABLE_LOCALES` env var) and the translations for `en` not therefore
be present in the frontend for fallback to actually work.
This commit will ensure that a fallback to `en` is always possible in the
case of missing translations.
2017-11-10 12:30:24 +11:00
Maxim Colls
31a2453882
Bootstrap angular module in new_variant form
2017-11-10 09:37:36 +11:00
Rob Harrington
5febd0a0d6
Restructure flaky customer spec
2017-11-10 08:47:12 +11:00
Rob Harrington
694f1e9b25
Update knapsack report
2017-11-10 08:47:12 +11:00
Andy Palmer
131bf842a9
Update matchers to non-deprecated protocol
2017-11-10 08:47:12 +11:00
Andy Palmer
8ec1c2e04a
No longer use expensive page.evaluate_script for imperative methods
2017-11-10 08:47:12 +11:00
Andy Palmer
e94dc257a1
We actually need to restart the driver, not the session
2017-11-10 08:47:12 +11:00
Andy Palmer
3bd4fc59d4
We reset the phantom js driver after each context to prevent it memory leaking and dying
2017-11-10 08:47:12 +11:00
Andy Palmer
7b8463b03a
PhantomJS no longer crashes due to too specific selector
2017-11-10 08:47:12 +11:00
Rob Harrington
00e7fc1c0d
Bump capybara version
2017-11-10 08:47:12 +11:00
Rob Harrington
2ca20ad701
Bump poltergeist version to 1.16.0
2017-11-10 08:47:12 +11:00
Maikel Linke
775da82072
Add waiting conditions to spec
2017-11-10 08:47:12 +11:00
Maikel Linke
162b392004
Use expect syntax, correct spec description
2017-11-10 08:47:12 +11:00
Maikel Linke
26bedf0523
Make title matcher more robust
2017-11-10 08:47:12 +11:00
Maikel Linke
ff3ee62509
Remove old comment
2017-11-10 08:47:12 +11:00
Maikel Linke
9c2a78adf2
Avoid warnings, use expect syntax
2017-11-10 08:47:12 +11:00
Maikel Linke
5a767ba3ef
Avoid warning, use new syntax
2017-11-10 08:47:12 +11:00
Rob Harrington
691d642721
Use url helper instead of string to define expected url
2017-11-10 08:47:12 +11:00
Rob Harrington
7dbfc3740d
Revert "Add workaround to pass Spree core tests in Travis"
...
This reverts commit 9cdec737078caa6eb5a90480cabb6ca477ab597b.
2017-11-10 08:47:12 +11:00
Rob Harrington
b2897d7feb
Reset Spree::Config.allow_backorders to original value in spec
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
b18177c215
Add workaround to pass Spree core tests in Travis
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
cec0a8c2e7
Specify page object for Capybara#find methods
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
412de318ed
Manually disable backorders in failing features
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
92cc7a4648
Another try for failing feature
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
96c0481e17
Fix intermittently failing product distribution feature
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
5dd7ddc288
Refactor base controller with new rspec syntax
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
ea91a82f30
Try to fix shopping cart failing feauture in Travis
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
8e10269b50
Try to fix intermittently failing test for product distribution
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
dae74666c5
Add missing 'type: :request' for request spec
2017-11-10 08:47:12 +11:00
Julius Pabrinkis
94e31e35ba
Fix Spree::Admin::BaseController related issues
2017-11-10 08:47:12 +11:00
Rob Harrington
c835b4eb1a
Replacing stub_model objects with actual factory generated instances
2017-11-10 08:47:12 +11:00
Rob Harrington
ef9e43fbd3
Replacing mock_model objects with instance_doubles
2017-11-10 08:47:12 +11:00
Rob Harrington
f083433854
Explicitly specifying 'type: :helper' for all helper specs
2017-11-10 08:47:12 +11:00
Rob Harrington
9052b1c3db
A few updates to spec where 'be true' and 'be false' didn't cut it
2017-11-10 08:47:12 +11:00
Rob Harrington
59578a73af
Changing all references to 'be_true' and 'be_false' to 'be true' and 'be false'
...
See next commit for changes where this substitution was broken
2017-11-10 08:47:12 +11:00
Rob Harrington
c691e260cf
Rspec matcher enqueue_job for Delayed::Job supports block expectations
2017-11-10 08:47:12 +11:00
Rob Harrington
82072c8970
Explicitly specifying 'type: :controller' for all controller specs
2017-11-10 08:47:12 +11:00
Rob Harrington
d0c52ac176
Updating outdated guard gems
2017-11-10 08:47:12 +11:00
Rob Harrington
6811a62568
Updating RSpec Gems
2017-11-10 08:47:12 +11:00
Buildkite
8653d03969
Merge remote-tracking branch 'origin/master' into HEAD
2017-11-09 13:49:39 +00:00
lin-d-hop
90d5a04368
Adding UK About pages to menus
2017-11-09 11:06:58 +00:00
Pau Perez
84e4ebef08
Do not notify Bugsnag of a cache miss
...
It's not the responsibility of a error tracking software to track
neither cache misses nor logs. That is what log monitoring is for.
2017-11-09 10:22:31 +01:00
Pau Perez
98603c4042
Do not test private methods
2017-11-09 10:22:31 +01:00
Pau Perez
26a4ee0171
Do not stub object under test
2017-11-09 10:22:31 +01:00
Pau Perez
4f03a2d25c
Remove unnecessary require
2017-11-09 10:22:31 +01:00
Pau Perez
6a830a3843
Isolate ArraySerializer case in injection helper
...
This makes this special case with the ArraySerializer stand out so that
the reader notices it.
2017-11-09 10:22:30 +01:00
Pau Perez
3ffd049135
Remove commented out code
2017-11-09 10:22:30 +01:00
Rob Harrington
e6d1b38b82
Remove upgrade_bundler script by reverting 250062bd2, 3f2299e52 and 5dfac10599
2017-11-09 19:46:41 +11:00
Rob Harrington
f8a892faf2
Remove upgrade_bundler script by reverting 250062bd2, 3f2299e52 and 5dfac10599
2017-11-09 18:24:22 +11:00
Pierre de Lacroix
54e141489a
Add noindex meta tag for invisible shops and staging environment
2017-11-09 12:04:27 +11:00
Pau Perez
e64fd1d308
Lower log level in prod to :info so we can debug
...
Otherwise, there are no log lines for any request, which makes it
impossible to find out anything about the app in production.
Obviously this increases the size of the log files but this has to be
dealt with log rotation. The data is our most important asset.
2017-11-09 11:13:32 +11:00
Matt-Yorkley
01647c3df9
Disable allow_backorders by default in test environment
2017-11-02 17:43:46 +11:00
Rob Harrington
cd6d7c76f6
Fix spec that requires preference persistence
2017-11-02 17:43:04 +11:00
Rob Harrington
efa71c4ac8
Use Spree's approach for handling config when testing
2017-11-02 17:43:04 +11:00
Rob Harrington
d4eb27a4ed
Fix race condition in shipping method order spec
2017-11-01 16:37:12 +11:00
Duende13
eca18ba6ee
Test to control order of shipping methods by name
2017-11-01 15:30:42 +11:00
Duende13
31fa49feed
Added orderBy 'name' to the list of shipping methods offered.
2017-11-01 15:30:42 +11:00
yasirazgar
b68aafdb72
1799 - adding missing translations in new shipping methods page
2017-11-01 10:50:21 +11:00
Andy Palmer
fd09a63e48
Imperative specs as per review comments
2017-10-24 17:56:04 +11:00
Andy Palmer
afc50863cd
Replace Deface with update to overridden template
2017-10-24 17:39:34 +11:00
Andy Palmer
fea2240c39
Disabled product links in cart for openfoodfoundation/openfoodnetwork#1075
2017-10-24 14:56:35 +11:00
Rob H
9642e8295e
Merge transifex translations
2017-10-21 00:23:40 +11:00
Enrico Stano
1424d44eab
Merge pull request #1919 from nicolauduran/add-dev-doc
...
Add more development documentation
2017-10-20 14:31:43 +02:00
Nicolau Duran
0a5f0a518d
Add development doc
2017-10-20 13:18:21 +02:00
Transifex-Openfoodnetwork
ff1672e411
Updating translations for config/locales/nb.yml [skip ci]
2017-10-20 19:50:21 +11:00
Transifex-Openfoodnetwork
32d8368990
Updating translations for config/locales/fr.yml [skip ci]
2017-10-20 19:42:24 +11:00
Lynne
e7f8102eb9
Update en-GB.yml
2017-10-20 08:29:18 +01:00
Rob Harrington
24e1d0b775
Fix mistyped translation key for 'dashboard'
2017-10-20 16:26:08 +11:00
Rob Harrington
ceadd386aa
Update order spec to test an order with a total > 0
...
This is necessary because the previous commit changed the logic
around payment state, meaning that a complete order with a total
of 0 and no complete paymnents is considered to have a payment
state of 'paid'. I don't think this is problematic, since it is
not possible to check out an order without line items.
This way the spec tests an order modelled on the real world.
2017-10-20 15:21:59 +11:00
Rob Harrington
d42dc2b286
Fix #1902 : ensure correct payment state when failed payments are present
...
Problem: order payments didn't seem to be loaded in any particular order,
and OrderUpdater#update_payment_state was relying on payment order to de-
termine payment state.
Strategy: Adapt a version of this method from a future version of Spree.
I tried to select a version where I would have to make the absolute mini-
mum number of changes to get it to work. See comments in code for justif-
ications of the changes that I did make.
2017-10-20 15:21:59 +11:00
Continuous Integration
e9c8e17710
Merge remote-tracking branch 'origin/master' into HEAD
2017-10-19 20:42:35 +11:00
Lynne
bfd845915c
Update en-GB.yml
2017-10-19 10:41:21 +01:00
Rob Harrington
b7976a2356
Do not update finalized fee adjustments
2017-10-19 16:54:39 +11:00
Rob Harrington
cd744dab68
Ignore .byebug_history after recent update of byebug gem
2017-10-19 10:45:24 +11:00
Transifex-Openfoodnetwork
02e3aac3f0
Updating translations for config/locales/fr.yml [skip ci]
2017-10-19 04:38:24 +11:00
Transifex-Openfoodnetwork
50075f02a0
Updating translations for config/locales/es.yml [skip ci]
2017-10-18 19:29:14 +11:00
Enrico Stano
05d8cd09e3
Merge pull request #1890 from coopdevs/add-node-version
...
Track node version in .node-version
2017-10-18 09:24:06 +02:00
Justyna Field
02fd87158e
Add display flex on active table row to fix misalignment
2017-10-18 15:05:55 +11:00
Pierre de Lacroix
165af4b812
Use I18n "lazy" lookup
2017-10-18 14:38:40 +11:00
Pierre de Lacroix
dba8e36752
Change key for uncapitalized "items" translation
2017-10-18 14:38:40 +11:00
Pierre de Lacroix
a245590114
Fix some translations
2017-10-18 14:38:40 +11:00
Continuous Integration
5ecae39051
Merge remote-tracking branch 'origin/master' into HEAD
2017-10-17 19:36:45 +11:00
Transifex-Openfoodnetwork
2508234a7c
Updating translations for config/locales/en_GB.yml [skip ci]
2017-10-17 19:23:35 +11:00
Transifex-Openfoodnetwork
da5f9e7ebc
Updating translations for config/locales/nb.yml [skip ci]
2017-10-16 20:00:37 +11:00
Rob Harrington
0d483882de
Update helper messages in Stripe Connect config UI
2017-10-16 10:37:04 +11:00
Rob Harrington
9e40502876
Update stripe controller routing comments
2017-10-16 09:39:15 +11:00
Continuous Integration
c38e58159f
Merge remote-tracking branch 'origin/master' into HEAD
2017-10-13 18:57:25 +11:00
Transifex-Openfoodnetwork
acf0919bfa
Updating translations for config/locales/en_GB.yml [skip ci]
2017-10-13 18:33:41 +11:00
Rob Harrington
bca409bfe4
Bumping very outdated versions of pry and byebug
2017-10-13 15:47:59 +11:00
Pierre de Lacroix
1fe10b4b25
Add pointer cursor to other links in products bulk edit
2017-10-13 15:33:30 +11:00
Pierre de Lacroix
768378b147
Add pointer cursor to EXPAND ALL link in products bulk edit
2017-10-13 15:33:30 +11:00
Rob Harrington
1fcbf6b44d
Clear shipping_method_id from order when restarting checkout
...
If the order is allowed to retain a shipping_method_id, then subsequent
saves of the order will cause a new shipment to be initialised. Seems to
only happen for delivery shipping methods. This is undesirable because
fees for the new shipment will appear in the checkout summary, which is
not smart enough to recognise existing shipment fees and adjust the order
total accordingly.
2017-10-13 12:53:35 +11:00
Rob Harrington
f96502c369
Add unit specs for CheckoutController#restart_checkout
2017-10-13 12:53:35 +11:00
Rob Harrington
c031b0e52b
Clear shipments and payments after failed payment at checkout
2017-10-13 12:53:35 +11:00
Rob Harrington
6006952603
Moving checkout request specs into their own folder
2017-10-13 12:53:35 +11:00
Duende13
e5fb8712d7
Simplify Product Edit Screen removing fields and adding 2 new menu options for seo and group buy ( #1741 )
2017-10-13 11:37:57 +11:00
Pierre de Lacroix
508dfa4f23
Fix failing tests assuming localizeCurrency has no "delimiter"
2017-10-13 10:26:13 +11:00
Pierre de Lacroix
65d176f533
Fix wrong way to force currency symbol after the amount
2017-10-13 10:26:13 +11:00
Pierre de Lacroix
089c754f62
Remove conversion of amounts to currency strings via Money in serializers as it's better done in JS
2017-10-13 10:26:13 +11:00
Pierre de Lacroix
aae8f1cbc4
Change localizeCurrency filter to use I18n.toCurrency
2017-10-13 10:26:12 +11:00
Matt-Yorkley
7194db40ee
Merge pull request #1895 from Matt-Yorkley/codeclimate-symbol-arrays
...
Relax rubocop Style/SymbolArray rule
2017-10-13 00:06:32 +01:00
Rob Harrington
f2ad087be5
Change inheritance of StripeAccountsController
2017-10-13 07:57:16 +11:00
Rob Harrington
0b8b5e694e
Move Stripe Connect callback action to dedicated controller
2017-10-12 22:47:51 +11:00
Rob Harrington
01f9fd3232
Rename webhook handler status mappings
2017-10-12 22:47:51 +11:00
Rob Harrington
99cac20725
Fall back to 200 when handler returns an unknown result
2017-10-12 22:47:51 +11:00
Rob Harrington
068dbe5013
Add verification to Stripe webhook endpoint
2017-10-12 22:47:45 +11:00
Rob Harrington
ed375a1e2c
Build Event object in controller instead of service object
2017-10-12 20:51:17 +11:00
Rob Harrington
4345285164
Allow more granularity in Stripe WebhookHandler responses
2017-10-12 20:51:17 +11:00
Rob Harrington
eb7cb02f33
Namespace stripe webhook controller in Stripe module
2017-10-12 20:50:29 +11:00
Rob Harrington
f22dd7513d
Add a service object for handling Stripe webhooks
2017-10-11 17:50:46 +11:00
Rob Harrington
c54119f482
Rename stripe controller action from 'deauthorize' to 'webhook'
2017-10-11 17:11:02 +11:00
Rob Harrington
23d2b3a664
Move Stripe webhook logic into dedicated frontend controller
2017-10-11 16:38:19 +11:00
Rob Harrington
c747bb5305
Remove improper use of quick_login_as_admin from unit spec
2017-10-11 16:10:08 +11:00
Matt-Yorkley
d147d2035d
Disable symbol array cop
2017-10-07 11:50:59 +01:00
Maikel Linke
4dd71c1240
Add CSS workaround to display repeated table head
...
Fixes https://github.com/openfoodfoundation/openfoodnetwork/issues/1738
2017-10-06 16:51:19 +11:00
Maikel Linke
6ad7c7b835
Tidy up HTML indent
2017-10-06 14:24:28 +11:00
Maikel Linke
10bbc5f9ef
Hide the menu on embedded group pages
2017-10-06 14:24:28 +11:00
Maikel Linke
b8a124b99e
Add preview page for embedded groups
2017-10-06 14:24:28 +11:00
Maikel Linke
28b1ea2d9f
Allow group pages to be in iframes
2017-10-06 14:24:28 +11:00
Maikel Linke
2b989f49ea
Enable iframes in development environment
2017-10-06 14:24:28 +11:00
Enrico Stano
bdc701f880
Merge pull request #1816 from coopdevs/disable-create-profile-on-submit
...
Disable create profile on submit
2017-10-05 15:25:37 +02:00
Enrico Stano
7af154d675
Merge pull request #1820 from coopdevs/missing-translations-register
...
Missing translations in Enterprise Registration
2017-10-05 13:12:09 +02:00
Pau Perez
2552b5faac
Track node version in .node-version
...
This is used by https://github.com/nodenv/nodenv
2017-09-29 16:11:22 +02:00
Pau Perez
d8e3052575
Ensure a callback function is provided
2017-09-29 16:10:11 +02:00
Transifex-Openfoodnetwork
3c797d3b86
Updating translations for config/locales/es.yml [skip ci]
2017-09-27 00:23:20 +10:00
Transifex-Openfoodnetwork
46ca3bc950
Updating translations for config/locales/fr.yml [skip ci]
2017-09-26 19:51:50 +10:00
Rob Harrington
75ec77dc31
Remove the 'confirm' step from the order checkout flow
...
This step is not being responded to anyway, since we are not rending a page for each checkout step
It was causing an issue whereby an order in the 'confirm' state was not able to progress through the
checkout controller because it was expecting to only redirect to paypal from the 'payment' state.
figured it was easiest to just remove the step, seeing as it wasn't being used in any meaningful way.
It should be fine to bring the 'confirm' step back in the future if we need it, we will just have to
make sure paypal the paypal issue is resolved.
2017-09-23 15:15:06 +10:00
Rob Harrington
a09a54e4cb
Set transaction fee adjustments to ineligible if payment is invalid or failed
2017-09-23 15:15:06 +10:00
Rob Harrington
e486dbd4f8
Respond to Stripe webhook with status of 204 if specified account is not found
2017-09-23 14:58:35 +10:00
Rob Harrington
db5503dd80
Allow destruction of StripeAccounts even if deauthorise request fails
...
Log deauthorise failures to Bugsnag
2017-09-23 14:58:35 +10:00
Rob Harrington
dd3d205536
Update deauthorize webhook to latest version of API (again)
2017-09-23 14:58:35 +10:00
Rob Harrington
90007d7114
Prevent Stripe-based payment methods that are not linked to a StripeAccount from displaying in the checkout
2017-09-23 14:58:35 +10:00
Rob Harrington
7ba99c0fe0
Update Bogus Gateway error message in checkout spec
2017-09-23 14:58:35 +10:00
Rob Harrington
ba61f94906
Expose Stripe token creation error messages in Checkout
2017-09-23 14:58:35 +10:00
Rob Harrington
7c82fa3d44
Show more helpful payment processing error in checkout
2017-09-23 14:58:35 +10:00
Rob Harrington
665749d0c5
Refactor Stripe::AccountConnector
...
Connector now handles cancellation of the connection wizard by the user more elegantly
2017-09-23 14:58:35 +10:00
Rob Harrington
d3566f9303
Update deauthorize webhook to latest version of API
2017-09-23 14:58:35 +10:00
Rob Harrington
7d2deca969
Ensure cart_spec runs in context where backorders are disabled
2017-09-23 14:58:35 +10:00
Rob Harrington
0f19be4db4
Configure StripeElements service to map cc_type to that used by activemerchant
2017-09-23 14:58:35 +10:00
Rob Harrington
393a4efbf6
Fix flaky OrderSerializer spec
...
Make sure that completed payment is for an amount less that the order total
2017-09-23 14:58:35 +10:00
Rob Harrington
34b109cbb7
Add basic validation to credit card form on account page
2017-09-23 14:58:35 +10:00
Rob Harrington
4785f3eacc
Use lowercased cc_type in CreditCard service
2017-09-23 14:58:34 +10:00
Rob Harrington
e14b017f1f
Fix broken Stripe checkout spec
2017-09-23 14:58:34 +10:00
Rob Harrington
d2096cf6d1
Make request stubs less brittle by using regex
2017-09-23 14:58:34 +10:00
Rob Harrington
fbda1a27ad
Add missing translation referenced from spree_auth_devise
2017-09-23 14:58:34 +10:00
Rob Harrington
098afc62c1
Fix rubocop issues
2017-09-23 14:58:34 +10:00
Rob Harrington
1cd1e9dc37
Extract filters for available PMs into service object
2017-09-23 14:58:34 +10:00
Rob Harrington
0bbaafbd41
Use guard clause
2017-09-23 14:58:34 +10:00
Rob Harrington
0e42c1cf30
Refactor ProfileStorer, call options as a separate method
2017-09-23 14:58:34 +10:00
Rob Harrington
620721c8cb
Use find_by_id instead of find in EnterpriseController
2017-09-23 14:58:34 +10:00
Rob Harrington
5cba635783
Add documentation to StripeConnectSettings controller
2017-09-23 14:58:34 +10:00
Rob Harrington
08c723b10f
Use expect syntax instead of should
2017-09-23 14:58:34 +10:00
Rob Harrington
61feb2b27d
Rename Stripe existing_card param key to existing_card_id
2017-09-23 14:58:34 +10:00
Rob Harrington
a2dee8d3d8
Create a Struct for Stripe Connect settings once rather than on each request
2017-09-23 14:58:34 +10:00
Rob Harrington
a74c502fd9
Refactor logic for creating a payment profile from a Stripe token into a service object
2017-09-23 14:58:34 +10:00
Rob Harrington
f6c3a2a46e
Remove new credit card initialisation logic from Spree::UsersController#show
2017-09-23 14:58:34 +10:00
Rob Harrington
4464a85a74
Add missing controller specs for CreditCardController #destroy
2017-09-23 14:58:34 +10:00
Rob Harrington
22bbe29f3d
Call single-use before_filters from actions instead
2017-09-23 14:58:34 +10:00
Rob Harrington
9832966b77
Fix Admin::PaymentsController spec
2017-09-23 14:58:34 +10:00
Rob Harrington
19213a5ca8
Rearrange new card inputs on account page
2017-09-23 14:58:34 +10:00
Rob Harrington
3a0b47c451
Add border to Stripe Elements input, make text larger
2017-09-23 14:58:34 +10:00
Rob Harrington
0cd43987de
Hide Stripe payment methods without a preferred_enterprise_id from the front-end
2017-09-23 14:58:34 +10:00
Rob Harrington
ca1987fc87
Prevent Stripe payment methods without account owners from being saved
2017-09-23 14:58:34 +10:00
Rob Harrington
2f153d799b
Hide 'save credit card' checkbox for guests
2017-09-23 14:58:34 +10:00
Rob Harrington
742dd0b5dd
Clean up jquery dialog styling
2017-09-23 14:58:34 +10:00
Rob Harrington
ecef905444
Allow Stripe-based payments to be voided (refunded)
2017-09-23 14:58:34 +10:00
Rob Harrington
dd56e03be1
Stop setting host for url helpers in specs
2017-09-23 14:58:34 +10:00
Rob Harrington
7b456461f3
Add ng-model directive to save credit card checkbox
...
I have no idea how this was working before\?!\?!\?!
2017-09-23 14:58:34 +10:00
Rob Harrington
e4872172c8
Move PaymentMethodSerializer to correct path
2017-09-23 14:58:34 +10:00
Rob Harrington
2ed5e144ca
Convert problematic embedded shopfronts feature spec into request spec
2017-09-23 14:58:34 +10:00
Rob Harrington
f9df4d4c93
Rewrite js unit specs for Stripe Elements service
2017-09-23 14:58:34 +10:00
Rob Harrington
1aa477c57c
Update feature specs to look for Stripe Elements element
2017-09-23 14:58:34 +10:00
Rob Harrington
69385370ee
Initialize Stripe object only if a publishable_key has been defined
2017-09-23 14:58:34 +10:00
Rob Harrington
65ab83a9a5
Move StripeElements element to an AngularJS directive, mount from there
2017-09-23 14:58:34 +10:00
Rob Harrington
746c2ffef9
Add 'publishable_key' property to Stripe module (enables stubbing)
2017-09-23 14:58:34 +10:00
stveep
6690f2e9e7
Restyle add card form
2017-09-23 14:58:34 +10:00
stveep
74a7cb82bc
Modify to use Stripe Elements to manually add cards in Account page. Remove StripeJS service
2017-09-23 14:58:34 +10:00
stveep
15ed4c32d9
Checkout switched to Stripe Elements from StripeJS
2017-09-23 14:58:34 +10:00
stveep
56ff877b25
Use Stripe Elements instead of StripeJS: https://stripe.com/docs/elements
2017-09-23 14:58:34 +10:00
Maikel Linke
926f196b96
Re-generate rubocop_todo
2017-09-23 14:58:34 +10:00
Maikel Linke
5b7e2f7ca8
Apply style guide
2017-09-23 14:58:34 +10:00
stveep
0a12f78444
Separate files for Payment Method serializers
2017-09-23 14:58:33 +10:00
stveep
da5c907e0f
Add/remove comments from PR feedback
2017-09-23 14:58:33 +10:00
stveep
f065cbe251
Fix specs for saved credit cards: Add payment profile ID to fixture (now denotes that a card has been saved), check for current user to avoid error attempting to inject saved cards as a guest
2017-09-23 14:58:33 +10:00
stveep
511afa0ddc
Bump Stripe gem version
2017-09-23 14:58:33 +10:00
Rob Harrington
d5ab9eb675
Hide option to 'Remember this card' when an existing card is selected
2017-09-23 14:58:33 +10:00
Rob Harrington
cb08011450
Fix typo in Stripe confirm modal
2017-09-23 14:58:33 +10:00
Rob Harrington
41b7be900c
Restrict the meaning of 'Saved Cards' to mean those with a payment profile
2017-09-23 14:58:33 +10:00
Rob Harrington
6133b302af
Use guard clause in PaymentMethodsController#restrict_stripe_account_change
2017-09-23 14:58:33 +10:00
Rob Harrington
4fb1c7fd92
Add 'Stripe is in Beta' warning
2017-09-23 14:58:33 +10:00
Rob Harrington
b31881baa5
Add explanation about configuring Stripe API keys
2017-09-23 14:58:33 +10:00
Rob Harrington
4e96487da9
Redirect to #/payment methods from stripe connect callback
2017-09-23 14:58:33 +10:00
Rob Harrington
98317e96d0
Remove unused stripe action abilities
2017-09-23 14:58:33 +10:00
Rob Harrington
4865533f26
Restrict edit permissions on Stripe payment methods
2017-09-23 14:58:33 +10:00
Rob Harrington
1f8890b430
Use an explicit date format for PaymentsSerializer#updated_at
2017-09-23 14:58:33 +10:00
Rob Harrington
11daf89005
Add admin views for Stripe payment methods
...
These views were pretty much just copied from https://github.com/spree/spree_gateway
2017-09-23 14:58:33 +10:00
Rob Harrington
fab893e60b
Fix paypal source_form view
...
The previous commit broke the selectors used by app/assets/javascripts/spree/backend/paypal_express.js
in the better_spree_paypal_express gem.
We can remove this override of the paypal source_form view when we update better_spree_paypal_express
to a version that includes the following commit:
4360a1fb82
2017-09-23 14:58:33 +10:00
Rob Harrington
a04116466e
Fix js for switching form partial for new admin payments
...
All of the functional changes made in this commit came from a future version of Spree:
8a3a80b08a
2017-09-23 14:58:33 +10:00
Rob Harrington
2f6493bb86
Use ng-cloak for admin/enterprises/edit form
2017-09-23 14:58:33 +10:00
Rob Harrington
589c2a1500
Add a modal to handle explanation of user's responsibilities before redirecting to Stripe
2017-09-23 14:58:33 +10:00
Rob Harrington
8cae874109
Fix styling on jquery dialogs
2017-09-23 14:58:33 +10:00
Rob Harrington
7c406f7c3a
Use hash navigation to direct users to #/payment_methods from Stripe PM
2017-09-23 14:58:33 +10:00
Rob Harrington
862443ed6d
Add hash navigation to admin Enterprise edit view
2017-09-23 14:58:33 +10:00
Rob Harrington
3b78179dea
Ask customer about saving card details used in checkout
2017-09-23 14:58:33 +10:00
Rob Harrington
f317cee9e9
Tweak UI for selecting an existing card at Checkout
2017-09-23 14:58:33 +10:00
Rob Harrington
35912605c3
Include customer name in source attrs for Stripe checkout requests
2017-09-23 14:58:33 +10:00
Rob Harrington
8901af897a
Store card details submitted via checkout
2017-09-23 14:58:33 +10:00
Rob Harrington
ee92f46bd5
Fix stripe request spec by providing en enterprise_id
...
The enterprise_id is used to lookup a StripeAccount which is provided to the Spree::Token#create call in the StripeConnect gateway
2017-09-23 14:58:33 +10:00
Rob Harrington
44ba499ad9
Stub rather than set Stripe api_key in specs
2017-09-23 14:58:33 +10:00
Rob Harrington
44d172f3b4
Mock stripe_account_id for StripeAccount gateway specs
2017-09-23 14:58:33 +10:00
Rob Harrington
d2b6ba4330
Provide a Stripe client_id for StripeAccountsController spec
2017-09-23 14:58:33 +10:00
Rob Harrington
576e4db9be
Authorize StripeAccount#status using the account object
...
Rather than the enterprise
2017-09-23 14:58:33 +10:00
Rob Harrington
692ccf0598
Cleaning up oauth2 extension that is no longer required
...
(We're using Stripes built-in OAuth Libraries instead)
2017-09-23 14:58:33 +10:00
Rob Harrington
ce65a9d063
Bump stripe gem version to 3.0.1
...
Allows us to use the stripe gem's built-in OAuth wrappers, rather than our own
2017-09-23 14:58:33 +10:00
Rob Harrington
ffc99df373
Consolidate Stripe routes/actions into StripeAccountsController
2017-09-23 14:58:33 +10:00
Rob Harrington
5c58d30ca7
Create payment from user-specified payment method when using existing card
2017-09-23 14:58:33 +10:00
Rob Harrington
3efabf5c50
Add translations for Stripe connection flashes
2017-09-23 14:58:33 +10:00
Rob Harrington
919e39f950
Provide a valid enterprise for building redirect path for Stripe Connect callback
2017-09-23 14:58:33 +10:00
Rob Harrington
0e14704572
Kill empty space
2017-09-23 14:58:33 +10:00
Rob Harrington
e9d062a8c2
Use nested module/class definitions instead of compact style
2017-09-23 14:58:33 +10:00
Rob Harrington
f3af36deca
Disable rubocop Style/PredicateName check against override of Spree method
2017-09-23 14:58:32 +10:00
Rob Harrington
ecb78233d9
Use guard clauses where possible
2017-09-23 14:58:32 +10:00
Rob Harrington
a68ae1fe2d
Provide a sensible flash message when CreditCard#destroy action fails
2017-09-23 14:58:32 +10:00
Rob Harrington
28ba05ec6b
Fix Lint/UselessAssignment offences for stripe-connect
2017-09-23 14:58:32 +10:00
Rob Harrington
5b675cbaba
Make OAuth private methods actually private
2017-09-23 14:58:32 +10:00
Rob Harrington
42dd58426e
Auto-correct rubocop offences for stripe-connect
2017-09-23 14:58:32 +10:00
Rob Harrington
c83755f901
Clean up StripeConnect gateway
2017-09-23 14:58:32 +10:00
Rob Harrington
ae2d3d3fd9
Refactoring StripeHelper into service objects
2017-09-23 14:58:32 +10:00
Rob Harrington
e6eb45b453
Name StripeAccountController spec file correctly
2017-09-23 14:58:32 +10:00
Rob Harrington
01ce092ebc
Handle Stripe token creation request failure
2017-09-23 14:58:32 +10:00
Rob Harrington
5d77ef52c5
Replace text strings with variables in stripe request spec
2017-09-23 14:58:32 +10:00
Rob Harrington
e8636c0cbf
Set dummy Stripe API key for front-end credits cards feature spec
2017-09-23 14:58:32 +10:00
Rob Harrington
f890927423
Implementing the Stripe Connect feature toggle
2017-09-23 14:58:32 +10:00
Rob Harrington
6499d17cb1
Adding feature toggle config variable for Stripe Connect
2017-09-23 14:58:32 +10:00
Rob Harrington
1d1e581c85
Refactoring CreditCardController, rendering card processing errors as json
2017-09-23 14:58:32 +10:00
Rob Harrington
64009a2c9e
CheckoutController can render payment gateway error messages as json
2017-09-23 14:58:32 +10:00
Rob Harrington
14f6ea4c01
Adding required Stripe config variables to application.yml.example
2017-09-23 14:58:32 +10:00
Rob Harrington
fdca1f6606
Adding message about having no saved cards to account/cards UI
2017-09-23 14:58:32 +10:00
Rob Harrington
63a15ec392
CreditCardController#destroy redirects to account#/cards
2017-09-23 14:58:32 +10:00
Rob Harrington
356dad73ba
Ensure spec has Stripe.api_key set
2017-09-23 14:58:32 +10:00
Rob Harrington
fb5784fbda
Allow updating of account settings from account tabs interface
2017-09-23 14:58:32 +10:00
Rob Harrington
4ef97aa418
Showing past orders under the orders tab
2017-09-23 14:58:32 +10:00
Rob Harrington
b9d72ce4cf
Refactoring logic for displaying orders on the front-end account page
2017-09-23 14:58:32 +10:00
Rob Harrington
9733bb3a77
Renaming account#history to account#transactions
2017-09-23 14:58:32 +10:00
Rob Harrington
532dc57725
Adding translations for /account tabs
2017-09-23 14:58:32 +10:00
Rob Harrington
f4c3fbf8bc
Refactoring credit cards interface, and backend logic
2017-09-23 14:58:32 +10:00
Rob Harrington
778526af2e
Rewriting styling for new tabs components
2017-09-23 14:58:32 +10:00
Rob Harrington
1aebee0583
WIP: rebuilding accounts page using tabs infrastructure
2017-09-23 14:58:32 +10:00
Rob Harrington
ed5c650456
Writing a new tabset component for front-end tabs
...
Modeled on back-end 'panels' infrastructure
2017-09-23 14:58:32 +10:00
Rob Harrington
b8c6da301c
Removing unnecessary dependencies from OrdersCtrl
2017-09-23 14:58:32 +10:00
Rob Harrington
269a60b36f
Adding request specs for case when using an existing card stored by Stripe for payment
2017-09-23 14:58:32 +10:00
Rob Harrington
25907f97a8
Cleaning up Stripe Connect request spec
2017-09-23 14:58:32 +10:00
Rob Harrington
d1779b9457
Keep timestamps as :null => false in schema
2017-09-23 14:58:32 +10:00
stveep
ddac179f9b
Add translations
2017-09-23 14:58:31 +10:00
stveep
25f48d944c
Add delete links, tidy up UI a bit (WIP), page refresh after adding still doesn't work
2017-09-23 14:58:31 +10:00
stveep
c9c4680ef6
Backend code to create Stripe customers and store their IDs in CreditCards. Page refresh not working
2017-09-23 14:58:31 +10:00
stveep
1449169b16
Basic UI for adding credit card details and getting a Stripe token without making a payment
2017-09-23 14:58:31 +10:00
stveep
c6e50a3f7f
Stub Stripe requests in feature spec
2017-09-23 14:58:31 +10:00
stveep
56295e5ffb
Fix request and feature specs
2017-09-23 14:58:31 +10:00
Rob Harrington
33a3db8698
Making :source attr_accessible for Spree::Payment
2017-09-23 14:58:31 +10:00
stveep
c4f9a5a234
Add code to CheckoutController to construct card attributes when using an existing card (via a818fbbecd/core/app/models/spree/order/checkout.rb:212)
2017-09-23 14:58:31 +10:00
stveep
627899bbd4
spec for source attributes to pass for saved card
2017-09-23 14:58:31 +10:00
stveep
12f4f2d17a
Add some logic to check whether a saved card has been selected before making a request from Stripe
2017-09-23 14:58:31 +10:00
stveep
300dc3084c
Add default card, disable inputs when a card is selected
2017-09-23 14:58:31 +10:00
stveep
50c3d1367d
Tidy up comment
2017-09-23 14:58:31 +10:00
stveep
a1cad82564
Only show credit cards if previously saved, split credit card db migrations and tidy up serializer
2017-09-23 14:58:31 +10:00
stveep
298fd057f5
Check for current user before injecting credit cards
2017-09-23 14:58:31 +10:00
stveep
33b570b117
Inject cards for current user into checkout and add selector dropdown to gateway partial.
2017-09-23 14:58:31 +10:00
stveep
3b05b76b80
Bring in ability to store CreditCards against Users from Spree 2.3 (spree commit d470b31798f3).
2017-09-23 14:58:31 +10:00
Rob Harrington
c97a140471
WIP: Storing Stripe card details for later use
...
NOTE: No interface for actually selecting a stored card to use yet
2017-09-23 14:58:31 +10:00
Rob Harrington
7c831c9844
Adding StripeJS to checkout page
...
Allow tokens to be request and passed through as payment source_attributes
2017-09-23 14:57:02 +10:00
Rob Harrington
5c16fefe41
Creating basic angular StripeJS wrapper service for requesting tokens
2017-09-23 14:57:02 +10:00
Rob Harrington
5ad88f992c
Adding live stripe account status display to payment method create/edit interface
2017-09-23 14:57:02 +10:00
Rob Harrington
f87f4310f0
Adding #status controller action for stripe accounts to fetch current info direct from Stripe
2017-09-23 14:57:02 +10:00
Rob Harrington
987ad0df6c
Very basic Stripe Connect payment method interface
2017-09-23 14:57:02 +10:00
Rob Harrington
d500c20d3f
Adding new StripeConnect payment gateway
2017-09-23 14:57:02 +10:00
Rob Harrington
99a7665edc
Requesting read_write permission when authorizing Stripe standalone account
2017-09-23 14:57:02 +10:00
Rob Harrington
37f60bf7a1
Setting Stripe.api_key in an initializer rather than helper
2017-09-23 14:57:02 +10:00
Rob Harrington
b5a6bcdf9d
Opening up restriction on activemerchant version by updating Spree ref
...
Allows use of v > 1.57 which includes support for Stripe Connect
2017-09-23 14:57:02 +10:00
stveep
858852123d
Add configuration example
2017-09-23 14:57:02 +10:00
stveep
ae72ebef5e
Fix disconnect button formatting
2017-09-23 14:57:02 +10:00
stveep
1450bfd726
Don't retrieve event from Stripe for a deauthorisation
2017-09-23 14:57:02 +10:00
stveep
22e4a50807
Change Stripe webhook handling to post request
2017-09-23 14:57:02 +10:00
stveep
a039286240
Webhook processing changes: fix expected request data formatting
2017-09-23 14:57:02 +10:00
stveep
9ac638f8ba
Fix some leftover refactoring from an earlier modification to enterprises controller (now not needed as moved to admin/enterprises)
2017-09-23 14:57:02 +10:00
stveep
da335703b4
Fix specs for travis
2017-09-23 14:57:02 +10:00
stveep
d374ab569d
Undo dodgy redirect changes and set spec to pending
2017-09-23 14:57:02 +10:00
stveep
47df2dc20b
Tweaking redirects and links
2017-09-23 14:57:02 +10:00
stveep
5c43c75b00
Specify SHA-256 algorithm for JWT in spec fixture
2017-09-23 14:57:02 +10:00
stveep
f83c7a88df
Specify SHA-256 algorithm for JWT
2017-09-23 14:57:02 +10:00
stveep
5ae473e07f
Add specs, fix redirect after requring relogin
2017-09-23 14:57:02 +10:00
stveep
e69b27a3c4
Tidy up (temp) UI a bit
2017-09-23 14:57:02 +10:00
stveep
e52e04ba29
Adding Stripe Connect information so we don't forget it later
2017-09-23 14:57:02 +10:00
stveep
1dcffa790d
Add JWT encoding to state param
2017-09-23 14:57:02 +10:00
stveep
f22278db51
Don't disconnect if the same Stripe account is connected to multiple Enterprises
2017-09-23 14:57:02 +10:00
stveep
0280e04008
Move OAuth2 patching to an initializer
2017-09-23 14:57:02 +10:00
Steve Pettitt
41607c5846
De-associate accounts in response to webhook (not tested with a real deauth request yet)
2017-09-23 14:57:02 +10:00
Steve Pettitt
1c69f2c670
Stripe Helper specs
2017-09-23 14:57:02 +10:00
Steve Pettitt
05a69ff0c6
Worklow to disconnect Stripe from OFN admin interface
2017-09-23 14:57:02 +10:00
Steve Pettitt
758f57a889
Remove CSRF check - doesn't work properly as implemented, but connect request should probably be changed to POST
2017-09-23 14:57:02 +10:00
Steve Pettitt
eed11faa62
Monkey patching OAuth2 gem to include Stripe disconnection method
2017-09-23 14:57:02 +10:00
Steve Pettitt
7fd8c5956d
Check CSRF, allow a Stripe account to be connected to more than one enterprise (but not vice versa)
2017-09-23 14:57:02 +10:00
Steve Pettitt
8ed983cf03
Correct spelling :)
2017-09-23 14:57:02 +10:00
Steve Pettitt
b6292e2723
Add some logic to check for a connected Stripe Account in form
2017-09-23 14:57:02 +10:00
Steve Pettitt
8bdf57d0d9
Add Stripe Connect button (CSS) in admin/enterprises/:id/edit#payment_methods
2017-09-23 14:57:02 +10:00
Steve Pettitt
03f590ccc4
Callback creates a new StripeAccount with id and publishable key.
2017-09-23 14:57:02 +10:00
Steve Pettitt
06279848c6
Stripe auth and callback working. Still need to process callback.
2017-09-23 14:57:02 +10:00
Steve Pettitt
3623325cab
Add missing files
2017-09-23 14:57:01 +10:00
Steve Pettitt
df18329233
Starting Stripe integration
2017-09-23 14:57:01 +10:00
Steve Pettitt
1db0bbef09
Create table for stripe accounts
2017-09-23 14:57:01 +10:00
Saimon Moore
09aed63cd4
Add todos to remove redundant i18n keys
2017-09-08 13:57:50 +02:00
Saimon Moore
757f886af5
Use proper namespaced translations
...
... in enterprise registration wizard Type step
2017-09-08 13:35:19 +02:00
Saimon Moore
f73f0d4bf9
Use proper namespaced translations
...
... in enterprise registration wizard Details step
2017-09-08 12:50:54 +02:00
Saimon Moore
d4f7efd08a
Use proper namespaced translations
...
... in enterprise registration wizard Contact step
2017-09-08 12:49:08 +02:00
Saimon Moore
a1aac7643a
Translate Entp registration modal tab titles
...
- Add proper namespaced translations for Details and Contact tabs
2017-09-08 12:47:53 +02:00
Pau Perez
d3d4628e29
Add doc
2017-09-08 09:51:06 +02:00
Pau Perez
942ab55ddc
Disable create profile from signup when submitting
...
This prevents people re-submitting the form multiple times. Although the
backend validates it, we show an ugly alert message that is hard for
users to understand.
2017-09-07 16:02:06 +02:00
Pau Perez
1b151ee015
Add missing translations in registration wizard
2017-09-01 14:57:16 +02:00