avo icon indicating copy to clipboard operation
avo copied to clipboard

Error when filtering attributes that aren't included on `ransackable_attributes`

Open Paul-Bob opened this issue 1 year ago • 2 comments

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

Paul-Bob avatar Mar 22 '24 10:03 Paul-Bob

This issue has been marked as stale because there was no activity for the past 15 days.

github-actions[bot] avatar Apr 07 '24 01:04 github-actions[bot]

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

adrianthedev avatar Apr 15 '24 18:04 adrianthedev