Andy Brett
2490861639
show correct values in line_item.rb
2021-03-25 12:26:02 -07:00
Andy Brett
be60adbcb3
update class name to singular in spec
2021-03-25 08:51:16 -07:00
Andy Brett
907c0d3e8c
rename unit_price.rb file
2021-03-25 08:51:15 -07:00
Andy Brett
d2828585eb
fix typo in spec
2021-03-25 08:51:15 -07:00
Andy Brett
6ebf45610d
use instance_double in specs
2021-03-25 08:51:15 -07:00
Andy Brett
7319ef7345
use better method and class names
2021-03-25 08:51:15 -07:00
Andy Brett
330839012e
add translation
2021-03-25 08:51:15 -07:00
Andy Brett
89c7342892
memoize UnitPrices object
2021-03-25 08:51:15 -07:00
Andy Brett
0afc2d281a
shorten UnitPrices method names
2021-03-25 08:51:15 -07:00
Andy Brett
39fc0707c3
provide unit price values in front end shop
2021-03-25 08:51:15 -07:00
Pau Pérez Fabregat
b12293d1fb
Merge pull request #6991 from jibees/6494-show-unit-price-in-admin/product-edit-form
...
Show unit price in admin/product edit form
2021-03-25 15:59:09 +01:00
Pau Pérez Fabregat
0121c18823
Merge pull request #7210 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.1
...
Bump karma from 0.13.22 to 6.3.1
2021-03-25 12:43:11 +01:00
Pau Pérez Fabregat
56d2db8c58
Merge pull request #7194 from Matt-Yorkley/deprecations-validates-id
...
Deprecations: validation definitions
2021-03-25 12:39:33 +01:00
Pau Pérez Fabregat
914e6d5f21
Merge pull request #7196 from Matt-Yorkley/deprecations-uniq
...
Deprecations: certain uses of #uniq
2021-03-25 12:12:36 +01:00
Pau Pérez Fabregat
26bd6f0f17
Merge pull request #7205 from Matt-Yorkley/deprecations-3
...
Deprecations 3
2021-03-25 12:11:30 +01:00
Pau Pérez Fabregat
9397922902
Merge pull request #7206 from openfoodfoundation/transifex
...
Transifex
2021-03-25 11:33:08 +01:00
dependabot[bot]
33ca13ca8e
Bump karma from 0.13.22 to 6.3.1
...
Bumps [karma](https://github.com/karma-runner/karma ) from 0.13.22 to 6.3.1.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v0.13.22...v6.3.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-03-25 05:50:48 +00:00
Transifex-Openfoodnetwork
ac4903ef67
Updating translations for config/locales/pt_BR.yml
2021-03-25 06:28:47 +11:00
Matt-Yorkley
ba3984104b
Replace deprecated #alias_method_chain in Spree::Product
2021-03-24 17:51:22 +00:00
Matt-Yorkley
0ab43d23f9
Replace deprecated reloading by passing true to an association
...
object.relation(true) -> object.relation.reload
2021-03-24 17:51:22 +00:00
Matt-Yorkley
26ed44412f
Update #validates definitions
...
Where the presence of an object is being validated and that object comes from an *association*, we should use `validates :object, presence: true` instead of `validates :object_id, presence: true`.
This does not apply in the same way to validations on uniqueness of certain attributes, such as `validates :object_id, uniqueness...`
2021-03-24 15:43:09 +00:00
Matt-Yorkley
ec088c3a60
Merge pull request #7161 from openfoodfoundation/dependabot/bundler/oauth2-1.4.7
...
Bump oauth2 from 1.4.4 to 1.4.7
2021-03-24 13:35:32 +01:00
Matt-Yorkley
932adb533c
Merge pull request #7184 from Matt-Yorkley/deprecation-errors-set
...
Update deprecated errors.set syntax
2021-03-24 13:17:55 +01:00
Matt-Yorkley
f1e4612c05
Update deprecated uses of #uniq
...
Enumerable#uniq is fine (eg calling #uniq on an Array object), but now using #uniq on an ActiveRecord::Relation is deprecated in favour of #distinct (which modifies the query itself, as opposed to iterating over the results of the query).
2021-03-24 11:42:24 +00:00
Andy Brett
1cb9504a2c
Merge pull request #7187 from luisramos0/uniq
...
[Rails 5.2] Relation#Uniq is deprecated, distinct is recommended instead
2021-03-23 20:52:47 -07:00
Andy Brett
024efafa39
Merge pull request #7190 from luisramos0/more_spec_syntax
...
[rails 5.2] Fix more spec syntax
2021-03-23 20:52:31 -07:00
Andy Brett
28ad3a5f1d
Merge pull request #7186 from luisramos0/tax_rate_validation_fix
...
[Rails 5.2] Fix tax_category validation to work in rails 5.2
2021-03-23 20:52:13 -07:00
Andy Brett
8080c09469
Merge pull request #7189 from luisramos0/inv_item_fix
...
[Rails 5.2] Fix validation problem in inventory items
2021-03-23 20:51:53 -07:00
Luis Ramos
e2df8937e5
Fix rspec syntax in bulk items controller
2021-03-23 22:00:50 +00:00
Luis Ramos
5549054325
Fix rspec syntax in line items controller
2021-03-23 21:55:58 +00:00
Luis Ramos
b14646ff50
Fix rspec syntax in checkout controller
2021-03-23 21:48:52 +00:00
Luis Ramos
7c8c720976
Fix rspec syntax to work with rails 5.2
2021-03-23 21:41:03 +00:00
Luis Ramos
b3d10cfb60
Fix validation of inventory item
2021-03-23 21:22:03 +00:00
Luis Ramos
c2364b3528
Relation#Uniq is deprecated, distinct is recommended instead
2021-03-23 20:57:58 +00:00
Luis Ramos
708c99fe9b
Fix validation to work in rails 5.2
2021-03-23 20:33:04 +00:00
Matt-Yorkley
5f4e3c75c7
Update deprecated errors.set syntax
...
DEPRECATION WARNING: ActiveModel::Errors#set is deprecated and will be removed in Rails 5.1. Use model.errors.add(:preferred_discount_amount, ["has an invalid format. Please enter a number."]) instead. (called from block (2 levels) in localize_number at /home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/localized_number.rb:38)
2021-03-23 20:11:59 +00:00
Matt-Yorkley
525fef14b1
Merge pull request #6974 from Matt-Yorkley/adjustments-line-item-fees
...
[Adjustments] Update line item enteprise fees
2021-03-23 19:06:02 +01:00
Andy Brett
b539015647
Merge pull request #7025 from Matt-Yorkley/adjustments-order-taxes
...
[Adjustments] Simplify order tax adjustments
2021-03-23 09:37:44 -07:00
Pau Pérez Fabregat
5a16b86ac9
Merge pull request #7178 from andrewpbrett/rebalance-ci
...
Robustify CI
2021-03-23 16:32:54 +01:00
Pau Pérez Fabregat
ac164df514
Merge pull request #7181 from openfoodfoundation/transifex
...
Transifex
2021-03-23 16:25:26 +01:00
Andy Brett
e9c259ec98
remove unnecessary type check
2021-03-23 08:12:26 -07:00
Transifex-Openfoodnetwork
cdc40f1b88
Updating translations for config/locales/en_FR.yml
2021-03-23 22:36:35 +11:00
Transifex-Openfoodnetwork
e97135f138
Updating translations for config/locales/en_FR.yml
2021-03-23 22:33:36 +11:00
Transifex-Openfoodnetwork
bf3e9b56c7
Updating translations for config/locales/fr.yml
2021-03-23 22:32:50 +11:00
Pau Pérez Fabregat
07d52bb44f
Merge pull request #7173 from Matt-Yorkley/adjustments-indexes
...
Add indexes on adjustments polymorphic associations
2021-03-23 11:55:30 +01:00
Pau Pérez Fabregat
393ea92dc7
Merge pull request #7177 from coopdevs/fix-balances-order-cycle-report-regression
...
Fix balances order cycle report regression
2021-03-23 10:08:11 +01:00
Pau Pérez Fabregat
14104cba57
Merge pull request #7171 from openfoodfoundation/transifex
...
Transifex
2021-03-23 09:38:17 +01:00
Pau Perez
199d48123b
Fully qualify table columns in query object
...
This fixes the error UK's is experiencing:
```
PG::AmbiguousColumn: ERROR: column reference "state" is ambiguous LINE
1: SELECT DISTINCT spree_orders.*, CASE WHEN state IN ('cancele...
^ : SELECT DISTINCT spree_orders.*, CASE WHEN state IN ('canceled',
'returned') THEN payment_total WHEN state IS NOT NULL THEN payment_total
- total ELSE 0 END AS balance_value, spree_orders.* FROM "spree_orders"
INNER JOIN "spree_shipments"
```
See
https://app.bugsnag.com/yaycode/openfoodnetwork-uk/errors/6058c45989d37300079e8312?event_id=6058ccd30075af73bcb20000&i=sk&m=nw .
2021-03-23 09:37:47 +01:00
Andy Brett
eff832c583
cleaner formatting
...
Co-authored-by: Maikel <maikel@email.org.au >
2021-03-22 20:47:12 -07:00
Andy Brett
3dc627995f
Merge pull request #7138 from luisramos0/rails52commits
...
Rails52commits
2021-03-22 18:13:01 -07:00