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
I use the Scenic gem to have a couple models that are backed by a materialized view. There have been no issues using Avo up until I try upgrading from v3.10 to 3.11. When I go to the index page for my ProductView model, I get this error:
Expected `ProductView(product_sku_id: integer, price: decimal, ...)` to be of type: `_Nilable(ActiveRecord::Relation)`
The ProductView model inherits from ActiveRecord::Base like a regular model. I do not get this error for the index page of any other models. I'm not familiar with the Literal gem so not quite sure how to debug.
System configuration
Avo version: 3.10.10
Rails version: 7.1.4
Ruby version: 3.3.5
License type:
Community
Pro
Advanced
Are you using Avo monkey patches, overriding views or view components?
Yes. If so, please post code samples.
No
Impact
High impact (It makes my app un-usable.)
Medium impact (I'm annoyed, but I'll live.)
Low impact (It's really a tiny thing that I could live with.)
Urgency
High urgency (I can't continue development without it.)
Medium urgency (I found a workaround, but I'd love to have it fixed.)
Low urgency (It can wait. I just wanted you to know about it.)
The text was updated successfully, but these errors were encountered:
Describe the bug
I use the Scenic gem to have a couple models that are backed by a materialized view. There have been no issues using Avo up until I try upgrading from v3.10 to 3.11. When I go to the index page for my ProductView model, I get this error:
The ProductView model inherits from ActiveRecord::Base like a regular model. I do not get this error for the index page of any other models. I'm not familiar with the Literal gem so not quite sure how to debug.
System configuration
Avo version: 3.10.10
Rails version: 7.1.4
Ruby version: 3.3.5
License type:
Are you using Avo monkey patches, overriding views or view components?
Impact
Urgency
The text was updated successfully, but these errors were encountered: