Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when filtering attributes that aren't included on ransackable_attributes #2626

Open
Paul-Bob opened this issue Mar 22, 2024 · 2 comments

Comments

@Paul-Bob
Copy link
Contributor

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

Copy link
Contributor

github-actions bot commented Apr 7, 2024

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

@adrianthedev
Copy link
Collaborator

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.

#2691

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Do
Development

No branches or pull requests

2 participants