Mark Fletcher
e7deeddc1b
Enable sorting by name in the Groups dropdown
2017-12-20 19:34:50 +00:00
Bob Van Landuyt
5a903149e7
Handle archived projects in the GroupDescendantsFinder
2017-10-11 10:17:24 +02:00
Bob Van Landuyt
aee5691db3
Don't load unneeded elements in GroupsController#show
2017-10-10 16:54:28 +02:00
Bob Van Landuyt
deb45634ae
Use EXISTS
instead of WHERE id IN (...)
for authorized groups
2017-10-10 14:09:56 +02:00
Bob Van Landuyt
951abe2b2e
Load counts everywhere we render a group tree
2017-10-05 11:11:21 +02:00
Bob Van Landuyt
7a3ba8e984
Make sure the user only sees groups he's allowed to see
2017-10-04 22:49:42 +02:00
Bob Van Landuyt
ac0b104ae4
Minimize the number of queries by preloading counts and ancestors
...
By preloading the count of members, projects and subgroups of a group,
we don't need to query them later.
We also preload the entire hierarchy for a search result and include
the counts so we don't need to query for them again
2017-10-04 22:49:42 +02:00
Bob Van Landuyt
e13753fcaa
Only take unarchived projects into account
...
When finding children for a group
2017-10-04 22:49:41 +02:00
Bob Van Landuyt
22aa034427
Rename GroupHierarchy
to GroupDescendant
2017-10-04 22:49:41 +02:00