mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-18 04:39:14 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc3a0877c4 | ||
|
|
bb12592a74 | ||
|
|
f951ebe178 | ||
|
|
bcc21cdade |
@@ -3,7 +3,14 @@ require 'open_food_network/products_cache_integrity_checker'
|
|||||||
ProductsCacheIntegrityCheckerJob = Struct.new(:distributor_id, :order_cycle_id) do
|
ProductsCacheIntegrityCheckerJob = Struct.new(:distributor_id, :order_cycle_id) do
|
||||||
def perform
|
def perform
|
||||||
unless checker.ok?
|
unless checker.ok?
|
||||||
Bugsnag.notify RuntimeError.new("Products JSON differs from cached version for distributor: #{distributor_id}, order cycle: #{order_cycle_id}"), diff: checker.diff.to_s(:text)
|
exception = RuntimeError.new(
|
||||||
|
"Products JSON differs from cached version for distributor: #{distributor_id}, " \
|
||||||
|
"order cycle: #{order_cycle_id}"
|
||||||
|
)
|
||||||
|
|
||||||
|
Bugsnag.notify(exception) do |report|
|
||||||
|
report.add_tab(:products_cache, diff: checker.diff.to_s(:text))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
class UpdateStockLocationsBackorderableDefault < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
Spree::StockLocation.update_all(backorderable_default: false)
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# It's strongly recommended to check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20190501143327) do
|
ActiveRecord::Schema.define(:version => 20190506194625) do
|
||||||
|
|
||||||
create_table "adjustment_metadata", :force => true do |t|
|
create_table "adjustment_metadata", :force => true do |t|
|
||||||
t.integer "adjustment_id"
|
t.integer "adjustment_id"
|
||||||
|
|||||||
Reference in New Issue
Block a user