Commit Graph

  • d527f6265a Remove pointless sum Pau Perez 2018-09-26 11:37:55 +02:00
  • 5eb10edbfd Inject #updated_ids to strategy Pau Perez 2018-09-25 21:43:08 +02:00
  • 186801a1e2 Remove unused supplier_ids argument Pau Perez 2018-09-25 21:38:11 +02:00
  • 718f529ede Use nested module in test to improve readability Pau Perez 2018-09-25 21:31:34 +02:00
  • f04fa4ed63 Do not treat ResetAbsent as a decorator anymore Pau Perez 2018-09-25 21:03:01 +02:00
  • 95ae18a1ba Remove method delegation Pau Perez 2018-09-25 20:57:36 +02:00
  • 54d6bc5443 Don't use importing_into_inventory? in ResetAbsent Pau Perez 2018-09-25 18:31:25 +02:00
  • a10e58e20a Inject strategy_factory into ResetAbsent Pau Perez 2018-09-25 17:53:21 +02:00
  • a9444b8909 Extract InventoryReset and Products strategies Pau Perez 2018-09-25 16:47:04 +02:00
  • 8d7a11b0ac Make all steps of the algorithm have 2 branches Pau Perez 2018-09-25 13:58:41 +02:00
  • 23471346b6 Do not call ResetAbsent when preconditions not met Pau Perez 2018-09-25 13:45:53 +02:00
  • a409353d37 Move import_settings query methods to Settings Pau Perez 2018-09-25 12:41:38 +02:00
  • fd84bea463 Test that variants or overrides are actually reset Pau Perez 2018-09-25 12:20:52 +02:00
  • b940f06238 Return early if reset_all_absent is not set Pau Perez 2018-09-24 18:06:20 +02:00
  • c955e151b7 Pass enterprise ids as strs as current code does Pau Perez 2018-09-24 17:53:51 +02:00
  • e04162415a Move code comment to be the method's doc Pau Perez 2018-09-24 17:04:15 +02:00
  • 5ac3598550 Inject Settings object in ResetAbsent Pau Perez 2018-09-24 17:01:48 +02:00
  • b5766a2dd9 Extract common conditional clauses Pau Perez 2018-09-24 14:39:22 +02:00
  • ed073e9750 Rely on Settings and don't access internal struct. Pau Perez 2018-09-24 14:15:57 +02:00
  • d2fe203c89 Fixes error undefined 'stock_location' by adding shipment to line_items in the following specs: features/admin/reports_spec, lib/open_food_network/bulk_coop_report_spec, lib/open_food_network/customers_report_spec, lib/open_food_network/order_cycle_management_report_spec, lib/open_food_network/orders_and_fulfillments_report_spec and lib/open_food_network/packing_report_spec luisramos0 2018-09-27 22:23:01 +01:00
  • 372ae8e4aa updated the spacing to be consistent. Aditya Sridhar 2018-09-30 16:10:57 -04:00
  • 06b28c1ab4 Better docs for Stripe.publishable_key and Stripe.endpoint_secret. Aditya Sridhar 2018-09-30 15:50:33 -04:00
  • 1ff1e32398 Making reports and reports_controller specs pending, 18 tests to be fixed in issue #2792 luisramos0 2018-09-30 00:30:49 +01:00
  • 7dfce6c368 Making product import and product importer specs pending, 17 tests to be fixed in issue #2791 luisramos0 2018-09-30 00:21:43 +01:00
  • 1d49edb194 Making SubsPlacementJobSpec pending, 6 tests to be fixed in issue #2793 luisramos0 2018-09-30 00:10:31 +01:00
  • 50ac519dd5 Making BulkOrderUpdateSpec pending, 33 out of 34 tests to be fixed in issue #2790 luisramos0 2018-09-30 00:04:33 +01:00
  • e79d184db0 Making broken OrderSyncerSpec tests pending, 9 tests to be fixed in issue #2788 luisramos0 2018-09-29 23:42:35 +01:00
  • 801c4d1cab Making SubsMailerSpec pending, 21 tests to be fixed in issue #2786 luisramos0 2018-09-29 23:31:11 +01:00
  • 663db47433 Move products_reset_count to ResetAbsent Pau Perez 2018-09-24 13:49:27 +02:00
  • 3150741849 Extract ResetAbsent class from EntryProcessor Pau Perez 2018-09-21 18:47:43 +02:00
  • 6c05be9772 Fixed 22 out of 30 broken tests in bulk_order_management_spec.rb by providing target_shipment in test line_items. luisramos0 2018-09-27 20:37:48 +01:00
  • 3cf10020bf Fix bug on slow page loads where banner and policy modal were both loaded luisramos0 2018-09-27 17:47:36 +01:00
  • 16badcd1b5 Setup Simplecov to have code coverage analysis Pau Perez 2018-09-27 15:40:35 +02:00
  • f0183cd17e Merge pull request #2762 from luisramos0/2-0-order-model-spec Luis Ramos 2018-09-27 13:43:58 +01:00
  • 060b3c55f1 Merge pull request #2751 from luisramos0/2-0-order-details Pau Pérez Fabregat 2018-09-27 14:30:42 +02:00
  • 54b17ac701 Use Spree::Order.pending_payments and remove service Matt-Yorkley 2018-09-27 13:04:56 +01:00
  • d488ae3f44 Merge pull request #2725 from mkllnk/2699-email-confirm-jobs Maikel 2018-09-27 14:27:43 +10:00
  • f0021be53c Style I18n call Maikel Linke 2018-09-27 11:34:09 +10:00
  • af1ac333df Create MailMethod before User when seeding Maikel Linke 2018-09-17 15:31:42 +10:00
  • 9dcc683dc0 Notify Bugsnag on sign-up errors Maikel Linke 2018-09-17 10:50:24 +10:00
  • 17d951f99d Rescue from any sign-up errors Maikel Linke 2018-09-14 17:48:40 +10:00
  • 3ae073dce5 Convert specs to RSpec 3.7.1 syntax with Transpec Maikel Linke 2018-09-14 15:29:18 +10:00
  • 600c8fcd4c Send confirmation emails immediately Maikel Linke 2018-09-14 15:16:09 +10:00
  • 921105301c Move angular-templates route and controller into Web engine The route and controller were in the main app and the views in the engine, with this commit they stay all inside the engine This is done to keep it simple and remove the unnecessary dependency between main app and engine If we use this mechanism in the future for other things in the main app or other engines, we can find a way to extract/abstract this luisramos0 2018-09-25 14:31:43 +01:00
  • b1c7e6c091 Fix assets precompilation by including web/all.js and web/all.css in the assets precompilation list in application.rb luisramos0 2018-09-26 12:30:45 +01:00
  • a23b1b980d Make Web engine an isolated namespace engine mounted on / (without /web prefix) This approach is better to separate concerns, see “Isolated Engine” here: https://api.rubyonrails.org/v3.2/classes/Rails/Engine.html luisramos0 2018-09-25 12:34:38 +01:00
  • 037432d1a7 Merge pull request #2767 from luisramos0/order_empty Pau Pérez Fabregat 2018-09-26 08:54:11 +02:00
  • 2dcc8ea4bb Add spec for pending payments service Matt-Yorkley 2018-09-25 10:05:32 +01:00
  • e93d46e75a Use .find instead of .select().first Matt-Yorkley 2018-09-25 09:35:05 +01:00
  • 267edbdb45 Merge pull request #2752 from HugsDaniel/apply_overrides_to_shipping_methods_new Maikel 2018-09-25 11:37:46 +10:00
  • 5ede6a40e7 Merge pull request #2766 from HugsDaniel/2744_add_require_ship_address_to_shipping_methods_form Maikel 2018-09-25 11:37:15 +10:00
  • 51f9a0afa1 Merge pull request #2562 from Matt-Yorkley/pi/product_attributes Maikel 2018-09-25 11:36:03 +10:00
  • bf1f2b93c6 Merge pull request #2768 from coopdevs/fire-unused-users-task Maikel 2018-09-25 11:30:04 +10:00
  • 4f32a8efc2 Fixed shipment factory by making shipments unique per order and stock_location factory by making stock_location unique luisramos0 2018-09-25 00:49:03 +01:00
  • 97775c0bc1 Updating translations for config/locales/fr_CA.yml Transifex-Openfoodnetwork 2018-09-25 06:12:48 +10:00
  • 1d9243af19 DRY and clarify serializer and service Matt-Yorkley 2018-09-24 16:58:43 +01:00
  • 4a7ee9b91e Remove no longer used rake task Pau Perez 2018-09-24 17:17:10 +02:00
  • 6f2760cf92 Move translations into their namespace and use '.key' format Matt-Yorkley 2018-09-24 15:54:05 +01:00
  • eb64569c9a Destroy all shipments when clearing order Pau Perez 2017-06-30 17:42:13 +02:00
  • 89114655fd Fixed shipping_method update in features/consumer/shopping/orders_spec, order.shipment is now updated instead of order.shipping_method_id luisramos0 2018-09-21 22:12:37 +01:00
  • 4476b88044 Fixed shipping_method update in models/spree/order_spec, order.shipment is now updated instead of order.shipping_method_id luisramos0 2018-09-21 17:15:54 +01:00
  • 99fff3d279 Fixed factory completed_order_with_fees by skipping a failing and unnecessary part of the checkout workflow Fixed factory's shipment_with shipping_fees trait by ensuring only one shipping_rate in the shipment luisramos0 2018-09-21 17:12:03 +01:00
  • 08104c62be Merge pull request #2667 from luisramos0/2-0-ship-method-last-used-address Luis Ramos 2018-09-24 15:07:27 +01:00
  • 0eb2854f8a Merge pull request #2680 from luisramos0/2-0-stable-x Luis Ramos 2018-09-24 15:07:04 +01:00
  • f743b5f02f Extract Settings from Product Import processor Pau Perez 2018-09-13 14:45:10 +02:00
  • 0dd1b1a976 Fix feature specs for shipping_methods Hugo Daniel 2018-09-24 12:40:59 +02:00
  • 06ee75981a Add require_shipping_address to shipping_methods_form Hugo Daniel 2018-09-24 12:35:40 +02:00
  • b8417058b4 Merge pull request #2741 from coopdevs/refactor-checkout-process-bits Pau Pérez Fabregat 2018-09-24 12:08:19 +02:00
  • 128ec1623a Merge pull request #2760 from luisramos0/2-0-admin-enterprise-spec Pau Pérez Fabregat 2018-09-24 11:15:18 +02:00
  • 52a412a218 Merge pull request #2638 from coopdevs/unit-test-variant-stock Pau Pérez Fabregat 2018-09-24 11:14:03 +02:00
  • 9d48ea7b62 Merge pull request #2759 from luisramos0/del_old_spec_helper Maikel 2018-09-24 11:25:51 +10:00
  • 26eb79f5f2 Merge pull request #2729 from luisramos0/2-0-ship-method-curr-order-ser Maikel 2018-09-24 08:56:21 +10:00
  • 9b10fbde2d Merge pull request #2728 from luisramos0/2-0-ship-method-ctrl Maikel 2018-09-24 08:54:03 +10:00
  • 9f57b43a13 Move sortble header elements to a partial Matt-Yorkley 2018-09-23 22:14:12 +01:00
  • f0bb927020 Merge pull request #2734 from coopdevs/make-rubocop-useful Maikel 2018-09-23 19:48:05 +10:00
  • 89be54f79e Merge pull request #2750 from openfoodfoundation/transifex v1.20.0 Maikel 2018-09-22 16:05:04 +10:00
  • 7175434910 Updating translations for config/locales/en_US.yml Transifex-Openfoodnetwork 2018-09-22 01:25:48 +10:00
  • 3c4ec62352 Merge pull request #2753 from HugsDaniel/apply_overrides_to_shipping_methods_edit Pau Pérez Fabregat 2018-09-21 16:16:25 +02:00
  • 33fa687c28 Merge pull request #2755 from HugsDaniel/apply_overrides_to_shipping_methods_form Pau Pérez Fabregat 2018-09-21 15:35:41 +02:00
  • 36bdde6cc4 Merge pull request #2754 from HugsDaniel/apply_overrides_to_shipping_methods_index Pau Pérez Fabregat 2018-09-21 15:28:44 +02:00
  • e2fd5a36d8 Merge pull request #2757 from luisramos0/delete_dead_specs Maikel 2018-09-21 15:41:49 +10:00
  • a04e90d188 In admin enterprises spec, replacing select2_search with select2_select makes all tests pass. Also made screen size longer to avoid errors with overlaying components luisramos0 2018-09-20 23:57:52 +01:00
  • 33d2b65d65 Removed deprecated spec helper have_select2_option and fixed its last usage luisramos0 2018-09-20 23:01:23 +01:00
  • 2a68184c01 Deleted unused test helper for rabl views luisramos0 2018-09-20 20:09:14 +01:00
  • f9c5e732d8 Replace Spree::ShippingMethods form partial by our own and apply overrides Hugo Daniel 2018-09-20 19:21:02 +02:00
  • 20077c99b5 Merge pull request #2618 from coopdevs/enable-style-send-cop Pau Pérez Fabregat 2018-09-20 19:03:40 +02:00
  • 0d7e24e554 Change to new ruby hash syntax Hugo Daniel 2018-09-20 14:34:10 +02:00
  • b0fa76f519 Change to new ruby hash syntax Hugo Daniel 2018-09-20 14:32:27 +02:00
  • 07cbb08b42 Change to new ruby hash syntax Hugo Daniel 2018-09-20 14:28:20 +02:00
  • 3dd1fcbc72 Merge pull request #2749 from luisramos0/delete-li-ship-method-name Pau Pérez Fabregat 2018-09-20 13:26:26 +02:00
  • 56c1b073ee Replace Spree::ShippingMethods new view by our own and apply overrides Hugo Daniel 2018-09-20 12:37:26 +02:00
  • 493da83378 Replace Spree::ShippingMethods index view by our own and apply overrides Hugo Daniel 2018-09-20 12:35:49 +02:00
  • a14337df5c Replace Spree::ShippingMethods edit view by our own and apply overrides Hugo Daniel 2018-09-20 12:34:16 +02:00
  • 897e43fe0b Remove Spree's Deface data-hooks from new view Matt-Yorkley 2018-09-20 11:33:22 +01:00
  • 5763bf0518 Update all translations Maikel Linke 2018-09-20 10:33:02 +10:00
  • 0e6b0aa248 Deleted sample specs and one pending spec luisramos0 2018-09-19 23:45:00 +01:00
  • fc68e28e4d Add :description to non-updatable attributes list Matt-Yorkley 2018-09-01 14:51:10 +01:00
  • ebb18e9394 Remove unneccesary method Matt-Yorkley 2018-09-01 13:33:27 +01:00
  • cc98cc832c Prefer #public_send over #send Matt-Yorkley 2018-09-01 13:11:47 +01:00
  • b57c6cf9ac Add errors when attempting to update non-updatable fields Matt-Yorkley 2018-08-20 15:16:18 +01:00