docbrown/app/queries
Jeremy Friesen b4f17ed7dc
Allowing UserQuery to filter on multiple roles (#17919)
I had looked at using `User.with_any_roles` but that creates one User
query per role passed.  Which is not ideal, given that we want to have
an ActiveRecord::Relation object on which we'd paginate.

This adjustment does it's best to mimic Forem's role structure and
adhear to how Rolify builds the underlying query.

An astute reader will notice that in these specs we use `role: "admin"`
and `roles: ["Admin"]`; the primary reason relates the user interface
being worked on in forem/forem#17884.  It is my understanding that the
`role` approach and `roles` approach will be separated by a feature
flag (we're rolling out the `roles` approach).

Related to
- forem/forem#17491
- forem/forem#17884
2022-06-15 08:50:03 -04:00
..
admin Allowing UserQuery to filter on multiple roles (#17919) 2022-06-15 08:50:03 -04:00
articles small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
comments Remove Community Wellness badge feature flag (#17623) 2022-05-11 12:08:40 -06:00
consumer_apps Fixes a name conflict in Rpush models (#15978) 2022-01-07 09:38:16 -06:00
homepage validate sort direction (#17439) 2022-04-27 08:59:13 -05:00