Commit Graph

8 Commits

Author SHA1 Message Date
Andreas Brandl b25319f92b More readable SQL query. 2018-02-21 13:54:35 +01:00
Andreas Brandl 3dbec2c285 Fix MembersFinder to never include group invitees.
This was the default behavior, because all members with `user_id` set to
`null` were excluded.
2018-02-20 18:07:40 +01:00
Andreas Brandl a10d09ec65 Fix N+1 query problem for users on members view.
For each member being rendered on
Projects::ProjectMembersController#index, there was a query to the users
table to retrieve the corresponding user:

```
SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1
```
2018-02-20 18:07:40 +01:00
Andreas Brandl c2ae4a6399 Use DISTINCT ON and translate to MySQL.
Realized window functions are not available in older MySQL versions
either.

Falling back to DISTINCT ON for postgresql and a convoluted translation
for MySQL.
2018-02-20 18:07:39 +01:00
Andreas Brandl df7d65a7aa Simplify database queries in MembersFinder.
Closes #41461.
2018-02-20 16:30:09 +01:00
Dmitriy Zaporozhets 26f28f9654 Show members of parent groups on project members page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-03-09 10:23:57 +02:00
Jose Ivan Vargas 57b5612aaa Removed the "Groups" option from the settings gear
Fixed more tests
2017-01-03 10:52:14 -06:00
Jose Ivan Vargas ad58dec2e1 Added groups to members section, added a members finder 2017-01-03 10:52:14 -06:00