gitlab-org--gitlab-foss/spec/serializers
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
..
analytics_build_entity_spec.rb
analytics_build_serializer_spec.rb
analytics_issue_entity_spec.rb
analytics_issue_serializer_spec.rb
analytics_merge_request_serializer_spec.rb
analytics_stage_serializer_spec.rb
analytics_summary_serializer_spec.rb
blob_entity_spec.rb Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
build_action_entity_spec.rb
build_artifact_entity_spec.rb
build_details_entity_spec.rb
build_serializer_spec.rb remove all .ico favicon variations, use png always 2018-06-05 16:20:22 +02:00
cluster_application_entity_spec.rb
cluster_entity_spec.rb
cluster_serializer_spec.rb
commit_entity_spec.rb
container_repository_entity_spec.rb
container_tag_entity_spec.rb
deploy_key_entity_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
deployment_entity_spec.rb
diff_file_entity_spec.rb Render LegacyDiffNote when diff_file blob is nil 2018-07-04 12:34:41 -03:00
diffs_entity_spec.rb Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
discussion_entity_spec.rb Fix discussion entity for legacy diff notes 2018-06-27 10:54:10 -03:00
entity_date_helper_spec.rb Resolve "Improve tooltips of collapsed sidebars" 2018-04-19 14:43:20 +00:00
entity_request_spec.rb
environment_entity_spec.rb Support manually stopping any environment from the UI 2018-07-10 08:11:04 +00:00
environment_serializer_spec.rb Support manually stopping any environment from the UI 2018-07-10 08:11:04 +00:00
group_child_entity_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
group_child_serializer_spec.rb
group_variable_entity_spec.rb
issue_entity_spec.rb
issue_serializer_spec.rb
job_entity_spec.rb Removes redundant error message for script failures 2018-05-24 15:14:28 -05:00
label_serializer_spec.rb
lfs_file_lock_entity_spec.rb
merge_request_basic_serializer_spec.rb
merge_request_diff_entity_spec.rb Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
merge_request_serializer_spec.rb
merge_request_user_entity_spec.rb Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
merge_request_widget_entity_spec.rb Allow merge requests from forks to be opened in Web IDE 2018-07-12 12:14:49 +02:00
move_to_project_entity_spec.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
move_to_project_serializer_spec.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
note_entity_spec.rb Refactor discussions/notes code 2018-04-03 16:03:00 +00:00
pipeline_details_entity_spec.rb
pipeline_entity_spec.rb Exclude coverage data from the pipelines page 2018-05-17 13:53:00 +02:00
pipeline_serializer_spec.rb Remove code for dynamically generating routes 2018-07-25 16:41:29 +02:00
project_mirror_serializer_spec.rb port ProjectMirrorSerializer 2018-07-25 12:29:50 +01:00
project_note_entity_spec.rb Refactor discussions/notes code 2018-04-03 16:03:00 +00:00
request_aware_entity_spec.rb
runner_entity_spec.rb Refactor validations and make runner factory by default to be instance-wide runner 2018-05-31 10:56:07 +02:00
stage_entity_spec.rb Resolve "Show failure_reason and upgrade tooltips of jobs" 2018-04-05 21:04:42 +00:00
status_entity_spec.rb remove obsolete favicon related spec 2018-06-05 16:20:24 +02:00
test_case_entity_spec.rb Squashed commit of the following: 2018-08-02 15:06:39 +09:00
test_reports_comparer_entity_spec.rb Squashed commit of the following: 2018-08-02 15:06:39 +09:00
test_reports_comparer_serializer_spec.rb Squashed commit of the following: 2018-08-02 15:06:39 +09:00
test_suite_comparer_entity_spec.rb Squashed commit of the following: 2018-08-02 15:06:39 +09:00
user_entity_spec.rb
variable_entity_spec.rb