avo
avo copied to clipboard
Error when filtering attributes that aren't included on `ransackable_attributes`
Feature
Dynamic filters require the filterable field to be included on the ransackable_attributes list as specified here
Let's raise an error (maybe only on development?) when trying to filter something that's not on the list
Original request from here
This issue has been marked as stale because there was no activity for the past 15 days.
Yes, let's do that in development!
As a separate feature, we should also create the concept of "super-admin" or something where we would show that error in production to those type of users. The use-case being that maybe you don't get that sad path of not being able to search by that attribute.
https://github.com/avo-hq/avo/issues/2691