- Sep 13, 2019
-
-
GitLab Bot authored
-
- Aug 20, 2019
-
-
Luke Duncalfe authored
This finder class acts more as a service, as it only returns mapped data. Renaming this class allows us to create a new AwardEmojiFinder without the ambiguity of there being two similarly-named finders. https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
-
- Aug 01, 2019
-
-
Igor Drozdov authored
It's used only if merge_request_iid param is provided
-
- Mar 09, 2019
-
-
- Oct 18, 2018
-
-
William George authored
-
- Sep 19, 2018
-
-
gfyoung authored
Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
-
- Aug 20, 2018
-
-
Yorick Peterse authored
This refactors the AutocompleteController according to the guidelines and boundaries discussed in https://gitlab.com/gitlab-org/gitlab-ce/issues/49653. Specifically, ActiveRecord logic is moved to different finders, which are then used in the controller. View logic in turn is moved to presenters, instead of directly using ActiveRecord's "to_json" method. The finder MoveToProjectFinder is also adjusted according to the abstraction guidelines and boundaries, resulting in a much more simple finder. By using finders (and other abstractions) more actively, we can push a lot of logic out of the controller. We also remove the need for various "before_action" hooks, though this could be achieved without using finders as well. The various finders related to AutcompleteController have also been moved into a namespace. This removes the need for calling everything "AutocompleteSmurfFinder", instead you can use "Autocomplete::SmurfFinder".
-
- Dec 19, 2017
-
-
Robert Speicher authored
-
- Nov 16, 2017
-
-
Jacopo authored
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
-
- Sep 10, 2017
-
-
Maxim Rydkin authored
-
Maxim Rydkin authored
-
Maxim Rydkin authored
-
- Sep 04, 2017
-
- Aug 30, 2017
-
-
Sean McGivern authored
Postgres lets you treat `count` as another alias for `COUNT(*)` apparently, even if that's not the actual alias used.
-
Hiroyuki Sato authored
-
- Jul 14, 2017
-
-
Tiago Botelho authored
-
- Jun 08, 2017
-
-
DJ Mountney authored
Allow users autocomplete by author_id only for authenticated users See merge request !2100
-
Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
-
DJ Mountney authored
Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
-
- May 26, 2017
-
-
Clement Ho authored
-
Clement Ho authored
-
- May 10, 2017
-
-
Rémy Coutable authored
Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by:
Rémy Coutable <remy@rymai.me>
-
- Mar 10, 2017
-
-
Sean McGivern authored
In EE, `@users` can be an array at the point where we remove the current user, because it can do a permissions check on the users for project mirroring. Fix this in CE by only using array methods, not AR methods. We can't use `delete` because that uses `Object#equal?`, which isn't true in this case.
-
- Jan 27, 2017
-
-
Sean McGivern authored
When there was no project, no search, and no current user or author param, the AutocompleteController would call `#uniq!` on a relation instead of an array. This performed the less-efficient `SELECT DISTINCT` when it wasn't even needed (because the query wouldn't return duplicates anyway - duplicates were only added by putting a user on top of the list).
-
- Jan 17, 2017
-
-
Phil Hughes authored
-
- Nov 30, 2016
-
- Nov 18, 2016
-
-
Phil Hughes authored
-
- Nov 17, 2016
-
-
Phil Hughes authored
When searching for the author in the assignee dropdown it now correctly returns the user Closes #22905
-
- Nov 04, 2016
-
-
Valery Sizov authored
-
- Aug 17, 2016
-
-
Paco Guzman authored
Use just SQL to check is a user can admin_issue on a project Tradeoff - we duplicate how we check admin_issue in a SQL relation in the Ability class
-
- Aug 16, 2016
-
-
Timothy Andrew authored
- `#find_users` depends on a project being loaded. - Missed adding this in 2193ae22
-
Timothy Andrew authored
- This is an optimization that was made in !581, and it needs to be backported to CE to avoid merge conflicts in the future.
-
- Jul 27, 2016
-
-
Sean McGivern authored
Pass an array of user IDs in the `skip_users` param to have them excluded from the results (unless they are explicitly included through the `current_user` or `author_id` params).
-
- Jun 16, 2016
-
-
James Lopez authored
This reverts commit 13e37a3e.
-
James Lopez authored
-
- Jun 15, 2016
-
-
Phil Hughes authored
Closes #18634
-
- Jun 03, 2016
-
-
James Lopez authored
This reverts commit 3e991230.
-
James Lopez authored
# Conflicts: # app/models/project.rb
-
- May 25, 2016
-
-
Phil Hughes authored
-
- May 20, 2016
-
-
Phil Hughes authored
-