Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-31Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-08-28Uses projects_authorizations.access_level in MembersFinderJacopo
2019-07-29Further remove code branches by database typeAndreas Brandl
We dropped MySQL support and a lot of mysql specific code has been removed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29608. This comes in from the other direction and removes any `if postgresql?` branches.
2019-05-27Removes duplicated members from api/projects/:id/members/allJacopo
When using the members/all api the same user was returned multiple times when he was a member of the project/group and also of one of the ancestor groups. Now the member is returned only once giving priority to the membership on the project and maintaining the same behaviour of the members UI.
2018-09-17Added FromUnion to easily select from a UNIONYorick Peterse
This commit adds the module `FromUnion`, which provides the class method `from_union`. This simplifies the process of selecting data from the result of a UNION, and reduces the likelihood of making mistakes. As a result, instead of this: union = Gitlab::SQL::Union.new([foo, bar]) Foo.from("(#{union.to_sql}) #{Foo.table_name}") We can now write this instead: Foo.from_union([foo, bar]) This commit also includes some changes to make this new setup work properly. For example, a bug in Rails 4 (https://github.com/rails/rails/issues/24193) would break the use of `from("sub-query-here").includes(:relation)` in certain cases. There was also a CI query which appeared to repeat a lot of conditions from an outer query on an inner query, which isn't necessary. Finally, we include a RuboCop cop to ensure developers use this new module, instead of using Gitlab::SQL::Union directly. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
2018-09-13Merge branch 'frozen-string-app-finders-graphql' into 'master'Stan Hu
Enable frozen string in app/graphql + app/finders See merge request gitlab-org/gitlab-ce!21681
2018-09-11Enable frozen string in app/graphql + app/findersgfyoung
Partially addresses #47424.
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-06-07Backport of "Add assignee lists to boards"Mario de la Ossa
2018-02-21More readable SQL query.Andreas Brandl
2018-02-20Fix MembersFinder to never include group invitees.Andreas Brandl
This was the default behavior, because all members with `user_id` set to `null` were excluded.
2018-02-20Fix N+1 query problem for users on members view.Andreas Brandl
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-20Use DISTINCT ON and translate to MySQL.Andreas Brandl
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-20Simplify database queries in MembersFinder.Andreas Brandl
Closes #41461.
2017-03-09Show members of parent groups on project members pageDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-01-03Removed the "Groups" option from the settings gearJose Ivan Vargas
Fixed more tests
2017-01-03Added groups to members section, added a members finderJose Ivan Vargas