-
Notifications
You must be signed in to change notification settings - Fork 987
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
Fixes #4370 - Filters list show permissions #1343
Conversation
I'm getting "Invalid search query: the field 'permissions' in the order statement is not valid field for search" when attempting to sort by permissions -- filter model is missing corresponding scoped search definition. I'm not sure how useful this sorting order is, perhaps it's better to leave it out? Would it be better to allow filtering based on permission name? |
@thomasmckay ^^ |
@elobato Not sorting seems fine to me. I assume search works? |
Search on permissions isn't working atm; should be straightforward to add though. |
I'll add scoped_search to permissions then. |
Some of the columns (like the last one with dropdown + button) look rather squashed to me when viewing something like the manager role. |
I'm not quite sure how to handle searches with spaces, queries should be made like this now: It's understandable for us devs but regular users will see stuff like "Edit organizations" in the permissions column, should I better change that to "edit_organizations" like what users see when editing the filter? |
I think edit_organizations is clearer, keep it consistent. |
+1 to what @domcleal said. |
Ask and you shall receive. 😄 |
Sorting by permissions is still enabled, but isn't working: "Invalid search query: the field 'permissions' in the order statement is not valid field for search". Filtering by permission name works, but values are not being auto-suggested as for other fields (I tried it -- looks helpful, although the auto-suggest list can get pretty long). |
Filter scoped_search Don't humanize permission names Remove sorting permissions
I disabled sorting by permissions. |
http://projects.theforeman.org/issues/4370