You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my local database, there are several calculators in the database where type == "Spree::Calculator::FlatRate". On master, this results in a 500 error when you visit /admin/subscriptions.
It looks like this was introduced when #5978 was merged.
Expected Behavior
Should see the subscriptions page
Actual Behaviour
The single-table inheritance mechanism failed to locate the subclass: 'Spree::Calculator::FlatRate'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Spree::Calculator.inheritance_column to use another column for that information.
= admin_inject_json_ams_array "admin.subscriptions", "shops", @shops, Api::Admin::IdNameSerializer if @shops
= admin_inject_json_ams_array "admin.subscriptions", "customers", @customers, Api::Admin::IdEmailSerializer if @customers
= admin_inject_json_ams_array "admin.subscriptions", "schedules", @schedules, Api::Admin::IdNameSerializer if @schedules
= admin_inject_json_ams_array "admin.subscriptions", "paymentMethods", @payment_methods, Api::Admin::PaymentMethodSerializer if @payment_methods
= admin_inject_json_ams_array "admin.subscriptions", "shippingMethods", @shipping_methods, Api::Admin::IdNameSerializer if @shipping_methods
= admin_inject_json_ams_array "admin.subscriptions", "orderCycles", @order_cycles, Api::Admin::BasicOrderCycleSerializer if @order_cycles
= admin_inject_available_countries(module: "admin.subscriptions")
bug-s2: a non-critical feature is broken, no workaround
Your Environment
Possible Fix
To fix for now I ran update spree_calculators set type = 'Calculator::FlatRate' where type = 'Spree::Calculator::FlatRate'; in Postgres locally...so maybe we need a migration that does this? And maybe check other tables that might reference a Spree class?
The text was updated successfully, but these errors were encountered:
andrewpbrett
added
the
bug-s2
The bug is affecting any of the non-critical features described in S1 and there is no workaround.
label
Nov 10, 2020
@luisramos0 I might be missing something here; I know that this has already been deployed to FR and @RachL said that the post-deploy checks were all good. But maybe the subscriptions page wasn't checked? Or there were no calculators that caused the issue on FR?
This is the problem that happened yesterday in FR prod.
It's working in FR because I fixed the FR prod DB manually yesterday. I'll have a PR for this soon.
Description
In my local database, there are several calculators in the database where
type == "Spree::Calculator::FlatRate"
. On master, this results in a 500 error when you visit /admin/subscriptions.It looks like this was introduced when #5978 was merged.
Expected Behavior
Should see the subscriptions page
Actual Behaviour
Steps to Reproduce
Animated Gif/Screenshot
Workaround
None
Severity
bug-s2: a non-critical feature is broken, no workaround
Your Environment
Possible Fix
To fix for now I ran
update spree_calculators set type = 'Calculator::FlatRate' where type = 'Spree::Calculator::FlatRate';
in Postgres locally...so maybe we need a migration that does this? And maybe check other tables that might reference a Spree class?The text was updated successfully, but these errors were encountered: