Matt-Yorkley
aa9fd682d8
Remove is_master and not_master scopes
...
(cherry picked from commit 1daab8994d )
2023-06-23 14:16:44 +10:00
Matt-Yorkley
26d3cffba3
Remove master variant from product
...
(cherry picked from commit 3ef7d2c9ff )
2023-06-23 14:16:44 +10:00
Matt-Yorkley
8e99f496ff
Migrate product image from master variant to product
...
(cherry picked from commit 7dc1091bc2 )
2023-06-23 14:16:44 +10:00
Matt-Yorkley
79a2d1228d
Stop using master variant as a potential store for prices
...
(cherry picked from commit 1b06c20197 )
2023-06-23 14:16:44 +10:00
Matt-Yorkley
da3202460c
Update old specs that rely on master variant instead of real variants
...
(cherry picked from commit 80a0138b48 )
2023-06-23 14:16:44 +10:00
Neal Chambers
449430cabc
Indent code to be more Readable
2023-06-09 16:39:29 +09:00
Matt-Yorkley
a20277c3a7
Completely remove option_values and option_types from the codebase
2023-06-01 10:12:19 +01:00
Jean-Baptiste Bellet
cf9342f2c4
Prefer using match_array over eq to compare array
...
As we don't need order: https://rubydoc.info/github/rspec/rspec-expectations/RSpec%2FMatchers:match_array
2023-05-25 15:24:25 +02:00
saunmanoj888
97f51d24b8
Validate image on creating product from products/new
2023-04-19 16:11:46 +10:00
Neal Chambers
940f806e5f
Fix Rubocop Layout/LineLength
2023-04-04 09:44:15 +09:00
Filipe
60bea89f5c
Merge pull request #10135 from abdellani/fix_when_user_deletes_a_shipping_method_existing_orders_are_updated_with_a_random_shipping_method
...
Fix When user deletes a shipping method existing orders are updated with a random shipping method
2023-03-02 20:03:59 +00:00
Mohamed ABDELLANI
15c241295e
recreate the shipping rate that refers to the original shipping method if distributor no longer support it
2023-02-20 09:55:22 +01:00
cyrillefr
f9f6abf740
Remove I18n keys from Api Ctrllers spec
2023-02-15 11:08:19 +01:00
Jean-Baptiste Bellet
ede38a417f
Respect rubocop Metrics/AbcSize by extracting a method
2022-10-25 10:22:35 +02:00
Maikel Linke
7081e712e8
Flag style issue on todo list for later
...
The code needs some bigger refactoring to avoid this style issue.
2022-10-25 10:09:26 +02:00
Nihal Mohammed
5c0f3a2d4b
Add weight, height, width, depth fields to pack by customer reports
...
+ update specs by adding dimensions fields into reports specs
2022-10-25 10:09:26 +02:00
Maikel Linke
5f11b6a650
Respond with errors if image upload fails
2022-06-14 15:06:17 +10:00
Maikel Linke
6b733ad7e2
Increase readability of image controller spec
...
Best viewed without whitespace changes.
- Decrease indent.
- Move `let` to top like in other specs.
- Avoid `let!` to speed up the specs.
2022-06-14 14:56:40 +10:00
Filipe
9fee4f1554
Merge pull request #9203 from AgriculturaFamiliar/remove-closed-associated-adjustments-button
...
Remove closed associated adjustments button
2022-06-10 10:10:50 +01:00
Maikel Linke
4a0ed99919
Replace Paperclip on Enterprise model
...
We configured Paperclip to convert images to JPG in some cases but I
omitted that here because we don't need it. If an image is better
represented as PNG or another format then the user should be able to
choose that.
Some specs were also testing the generated URL but the Active Storage
URL doesn't contain a style name anymore and it's not helpful to test
the URL.
2022-06-01 17:16:55 +10:00
Arthur Vieira
e0241b6866
Remove test associated without 'unlock' selected
...
Leaves the other test that should be the default behaviour and renames
it accordingly.
2022-05-26 10:12:39 -03:00
Sebastian Castro
56fab26235
Reports: refactor to easily provide default_params
2022-05-12 16:54:14 +02:00
Sebastian Castro
529858946f
Report Refactor 3: Packing
...
Stop using SQL for grouping, so we can use same grouping code than for other reports
Fix query builder default grouping_fields
2022-05-12 16:54:13 +02:00
Sebastian Castro
452a3fa933
Reports Refactor 2: Merge Spree::reports into Admin::Reports
2022-05-12 16:54:13 +02:00
Sebastian Castro
213c0dd060
Packing Report: add price and reorder columns
...
Adds price column
last_name column first because it's used for ordering
2022-05-12 16:54:12 +02:00
GeorgeThoppil
8903496a1b
Optional restocking items
2022-05-06 10:55:24 -04:00
Jean-Baptiste Bellet
3e5656e638
Remove distinct to make proper ORDER BY
...
Update specs as well to test match array and test duplication by adding property2 to product1
2022-04-21 11:03:22 +02:00
Nihal Mohammed
ccc3322c12
Change deprecated file path upload path syntax in enterprises_controller_spec
2022-03-14 18:42:58 +05:30
Filipe
7590b3ecf8
Merge pull request #8756 from jibees/8075-take-into-account-the-inherits_properties-attribute
...
Product that don't inherits from "producer"/"enterprise" properties should be filtered out by user on shop page
2022-02-21 19:04:08 +00:00
Jean-Baptiste Bellet
dfe8ed26d9
Update tests and use ransack to search with the new scope: with_properties
2022-02-07 08:57:18 +01:00
Jean-Baptiste Bellet
f8002ae49a
Add some controller specs that handle the supplier_property filtering
...
with product that don't inherits properties
2022-02-07 08:57:18 +01:00
Matt-Yorkley
48a7cfa09e
Fix more deprecated keyword arguments
2022-01-24 14:11:08 +00:00
Filipe
da703b2d95
Merge pull request #8615 from jibees/8559-enable-sort-orders-by-order-full-name
...
Enable sorting orders by order full name
2022-01-11 11:27:36 +00:00
Matt-Yorkley
9afc002286
Refactor use of image files in specs
2021-12-27 17:45:06 +00:00
Matt-Yorkley
63f6567637
Use new image path when uploading files in specs
2021-12-27 17:45:06 +00:00
Matt-Yorkley
35e20fc179
Can sort orders via bill_address.lastname
...
We only need to check the orders sort
Fix ordering in api/v0/orders_controller_spec
2021-12-16 09:33:38 +01:00
Matt-Yorkley
1efaa7e726
Switch search filters from orders to line_items
2021-12-12 13:23:56 +00:00
Matt-Yorkley
439a2318fb
Move API response under top-level :data node
2021-11-04 14:55:23 +00:00
Matt-Yorkley
97b22ec65d
Update related specs
2021-11-04 14:55:23 +00:00
Matt-Yorkley
817f0942dd
Pull in reports POC work replacing Packing reports
2021-11-04 14:55:23 +00:00
Luis Azcuaga
e8fd89a6d2
Run rubocop over existing todo
2021-10-25 21:28:28 -05:00
Jean-Baptiste Bellet
115dac3ca9
Add tax_category_id for a line_item
2021-10-18 10:56:27 +02:00
Adrien Chauve
f256bb7d28
Add new failing test on sorting orders by total (api/v0/orders)
2021-10-01 18:32:59 +02:00
Nihal Mohammed
5864e2d36e
Update states controller spec
2021-07-14 13:18:01 +01:00
Luis Ramos
23627c5453
Run rubocop -a (safe corrections) removing all exceptions so all possible fixes are applied
...
9290 issues fixed
2021-06-17 22:19:26 +01:00
Matt-Yorkley
099ef5d358
Add more explicit tests on updating shipping fees in Api::ShipmentsController
2021-06-04 18:19:27 +01:00
Jean-Baptiste Bellet
0306732a3d
Add test for enterprise logo and promo image uploading
...
- Add a fixture image to do the upload thanks to `fixture_file_upload`
- Check the response status, the content type and the response body for both logo image and promo image
2021-05-25 15:30:29 +02:00
Luis Ramos
f7726e552a
Adapt code coming from master to the new order api with update_order!
2021-05-19 10:09:42 -07:00
Matt-Yorkley
2e248744c0
Merge pull request #7520 from Matt-Yorkley/shipment-controller
...
Shipment controller: test coverage and improvements
2021-05-13 20:26:51 +02:00
Andy Brett
17a0063b40
Merge pull request #7402 from filipefurtad0/products_spec_add_ons
...
Adds coverage for product deletion and cloning
2021-05-10 06:26:11 -07:00