gitlab-org--gitlab-foss/spec/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 Enable frozen string in app/models/*.rb 2018-07-26 16:55:41 -07:00
boards [Backport] View summed weights of issues in board column 2018-07-30 13:44:41 +00:00
concerns Preload ancestors after pagination when filtering 2018-07-06 14:09:36 +02:00
dashboard Add group milestones to dashboard milestone page 2018-08-03 19:52:37 +00:00
explore
google_api
groups Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
import Consolidate server errors and add specs 2018-07-26 23:05:22 -07:00
instance_statistics Spec instance statistics 2018-07-27 15:54:28 +02:00
ldap Refactor OmniauthCallbacksController to remove duplication 2018-04-22 23:50:55 +01:00
oauth Fix OAuth application authorization screen to appear with every access 2018-06-29 08:15:42 +00:00
profiles Make all uses of `fixture_file_upload` use relative paths 2018-06-07 09:54:41 -05:00
projects Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
snippets
users Messaging on terms page when user already accepted 2018-06-04 22:22:11 +02:00
abuse_reports_controller_spec.rb
application_controller_spec.rb Fix logins via OAuth2 geting logged out in an hour 2018-08-10 14:41:59 -07:00
autocomplete_controller_spec.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
dashboard_controller_spec.rb Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
graphql_controller_spec.rb Handle exceptions outside the GraphQL schema 2018-06-05 20:47:42 +02:00
groups_controller_spec.rb Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
health_check_controller_spec.rb
health_controller_spec.rb Gitaly metrics check for read/writeability 2018-06-27 08:56:19 +02:00
help_controller_spec.rb
invites_controller_spec.rb
metrics_controller_spec.rb Remove healthchecks from prometheus endpoint 2018-07-12 17:37:51 +00:00
notification_settings_controller_spec.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_spec.rb Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
passwords_controller_spec.rb
profiles_controller_spec.rb Allow users to set a status 2018-07-30 15:01:26 +02:00
projects_controller_spec.rb Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
registrations_controller_spec.rb Users can accept terms during registration 2018-06-08 19:17:00 +02:00
root_controller_spec.rb
search_controller_spec.rb Render a 403 when showing an access denied message 2018-06-05 10:29:27 +02:00
sent_notifications_controller_spec.rb
sessions_controller_spec.rb Delete UserActivities and related workers 2018-07-18 15:44:10 +02:00
snippets_controller_spec.rb
uploads_controller_spec.rb Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
user_callouts_controller_spec.rb
users_controller_spec.rb Add an option to have a private profile on GitLab 2018-07-24 12:46:19 +00:00