gitlab-org--gitlab-foss/app/controllers
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 Merge branch 'frozen-string-enable-app-models' into 'master' 2018-08-02 09:11:52 +00:00
boards [Backport] View summed weights of issues in board column 2018-07-30 13:44:41 +00:00
ci Make ci/lint page context aware: 2018-03-26 17:03:11 -06:00
concerns ensure all project repository settings panels remain open after form submission 2018-08-08 01:17:43 -05:00
dashboard Merge branch 'group-todos' into 'master' 2018-08-07 12:35:32 +00:00
explore
google_api
groups Show the status of a user in interactions 2018-07-30 15:01:26 +02:00
import Assorted Bitbucket Server importer code cleanup based on review 2018-08-01 10:45:04 -07:00
instance_statistics Spec instance statistics 2018-07-27 15:54:28 +02:00
ldap Replace define_method with alias_method in Omniauth Controllers 2018-04-23 16:24:47 +01:00
oauth Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
profiles Updates from rubocop -a 2018-07-09 21:13:08 +08:00
projects Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
sherlock Updates from rubocop -a 2018-07-09 21:13:08 +08:00
snippets Show the status of a user in interactions 2018-07-30 15:01:26 +02:00
users Users can accept terms during registration 2018-06-08 19:17:00 +02:00
abuse_reports_controller.rb
application_controller.rb Fix logins via OAuth2 geting logged out in an hour 2018-08-10 14:41:59 -07:00
autocomplete_controller.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
confirmations_controller.rb Resolve "Opening Project with invite but without accepting leads to 404 error page" 2018-05-17 09:19:47 +00:00
dashboard_controller.rb Rails5 fix expected: 0 times with any arguments received: 1 time with arguments: DashboardController 2018-06-20 10:59:34 +02:00
graphql_controller.rb Handle exceptions outside the GraphQL schema 2018-06-05 20:47:42 +02:00
groups_controller.rb ensure all group settings panels remain open after form submission 2018-08-08 01:24:36 -05:00
health_check_controller.rb
health_controller.rb Gitaly metrics check for read/writeability 2018-06-27 08:56:19 +02:00
help_controller.rb
ide_controller.rb Move IDE to CE 2018-03-20 14:12:48 +00:00
invites_controller.rb Replace deprecated name_with_namespace with full_name in app and spec 2018-03-05 16:15:26 +02:00
jwt_controller.rb Support multiple scopes when using authing container registry scopes 2018-08-01 13:03:16 +02:00
koding_controller.rb
metrics_controller.rb [Rails5] Force the protect_from_forgery callback run first 2018-06-21 21:44:31 +11:00
notification_settings_controller.rb Add email_events to replace EMAIL_EVENTS because it needs to be dynamic, 2018-08-14 14:59:29 +08:00
omniauth_callbacks_controller.rb Honor saml assurance level to allow 2FA bypassing 2018-06-25 15:32:03 +00:00
passwords_controller.rb
profiles_controller.rb Allow users to set a status 2018-07-30 15:01:26 +02:00
projects_controller.rb Keep project settings sections expanded after submitting form 2018-08-08 10:57:34 +00:00
registrations_controller.rb Users can accept terms during registration 2018-06-08 19:17:00 +02:00
root_controller.rb 'Assigned Issues' and 'Assigned Merge Requests' as dashboard user choices 2018-03-27 12:16:12 +00:00
search_controller.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
sent_notifications_controller.rb Backport 5480-epic-notifications from EE 2018-05-07 12:58:47 -06:00
sessions_controller.rb Merge branch 'feature/gb/login-activity-metrics' into 'master' 2018-07-31 10:44:22 +00:00
snippets_controller.rb Show the status of a user in interactions 2018-07-30 15:01:26 +02:00
uploads_controller.rb Revert "Merge branch '3867-port-to-ce' into 'master'" 2018-02-28 21:09:34 +01:00
user_callouts_controller.rb
users_controller.rb Add an option to have a private profile on GitLab 2018-07-24 12:46:19 +00:00