gitlab-org--gitlab-foss/spec/finders
Yorick Peterse 6f3c490107
Refactor AutocompleteController
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".
2018-08-20 13:53:00 +02:00
..
admin Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
autocomplete Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
concerns Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
access_requests_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
awarded_emoji_finder_spec.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
branches_finder_spec.rb
clusters_finder_spec.rb Rearrange DeploymentPlatform methods 2018-03-22 14:52:33 -06:00
contributed_projects_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
environments_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
events_finder_spec.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
fork_projects_finder_spec.rb
group_descendants_finder_spec.rb Revert "Don't include projects shared as group-descendants" 2018-04-18 17:15:52 +02:00
group_members_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
group_projects_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
groups_finder_spec.rb show only groups an admin is a member of in dashboards/grops 2018-05-01 09:24:21 +00:00
issues_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
joined_groups_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
labels_finder_spec.rb Use Projects::UpdateService to archive projects 2018-08-03 11:55:21 -04:00
license_template_finder_spec.rb Introduce a LicenseTemplate model and LicenseTemplateFinder helper 2018-08-15 07:38:18 +01:00
members_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
merge_request_target_project_finder_spec.rb Prevent new merge requests for archived projects 2018-04-11 10:51:14 +02:00
merge_requests_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
milestones_finder_spec.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
notes_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
personal_access_tokens_finder_spec.rb
personal_projects_finder_spec.rb Updates from rubocop -a 2018-07-09 21:13:08 +08:00
pipeline_schedules_finder_spec.rb
pipelines_finder_spec.rb Add pipeline lists to GraphQL 2018-07-04 10:53:39 +02:00
projects_finder_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
runner_jobs_finder_spec.rb Refactor validations and make runner factory by default to be instance-wide runner 2018-05-31 10:56:07 +02:00
snippets_finder_spec.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
tags_finder_spec.rb
todos_finder_spec.rb Don’t do authorisation checks for todos 2018-08-02 10:42:45 +02:00
user_finder_spec.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
user_recent_events_finder_spec.rb Add an option to have a private profile on GitLab 2018-07-24 12:46:19 +00:00
users_finder_spec.rb