gitlab-org--gitlab-foss/spec/serializers
Stan Hu 1b7ab11f94 Omit issues links in merge request entity API response
The merge request widget has a section that includes which issues may be
closed or mentioned based on the merge request description. The problem
is that rendering and redacting Markdown can be expensive, especially
since the browser polls for the data every 10 seconds.

Since these links don't change much and are just nice to have, we only
load them on first page load. The frontend will use the existing data if
the data doesn't appear on subsequent requests.

This saves about 30% of the rendering time of this endpoint, which adds
up to significant savings considering that
`MergeRequestsController#show.json` is called over a million times a day
on GitLab.com.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63546
2019-06-20 15:59:41 -07: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 Rephrase specs description for cycle analytics 2019-05-27 12:44:02 +02:00
analytics_summary_serializer_spec.rb Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
blob_entity_spec.rb Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
board_serializer_spec.rb Use serialization for project boards 2019-06-06 22:13:14 +12:00
build_action_entity_spec.rb Add scheduled flag to job entity 2018-11-02 11:52:34 +00:00
build_artifact_entity_spec.rb
build_details_entity_spec.rb Extract Ci::Build#report_artifacts into method 2019-05-28 17:06:29 +02:00
build_serializer_spec.rb Removes <br> sent from backend on tooltips in jobs 2018-08-09 18:28:05 +01:00
cluster_application_entity_spec.rb Expose can_uninstall in cluster_status.json 2019-04-29 22:55:11 -07:00
cluster_entity_spec.rb
cluster_serializer_spec.rb
commit_entity_spec.rb Add pipeline status to diffs/commit_item 2018-10-03 13:18:21 -05:00
container_repository_entity_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
container_tag_entity_spec.rb Add Container Registry API 2019-01-25 13:13:48 +01:00
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 Fix deployment entity tests 2019-05-24 10:04:35 +01:00
deployment_serializer_spec.rb Enhance and test JSON schema for deployments 2018-10-10 15:59:02 +02:00
detailed_status_entity_spec.rb Add empty state illustration information in job API 2018-09-11 17:13:24 +00:00
diff_file_entity_spec.rb Replaced part of diff file properties with diff viewer 2019-02-15 17:56:50 +00:00
diff_line_entity_spec.rb [master] Stored XSS in Gitlab Merge Request from imported repository 2018-10-01 16:44:30 +00:00
diff_line_serializer_spec.rb Use a serializer to render diff lines 2018-08-31 15:32:48 -03:00
diff_viewer_entity_spec.rb Fix LFS uploaded images not being rendered 2018-10-05 22:36:20 +00:00
diffs_entity_spec.rb Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
discussion_diff_file_entity_spec.rb Remove unused data from discussions endpoint 2018-12-06 17:07:49 -08:00
discussion_entity_spec.rb Remove unused data from discussions endpoint 2018-12-06 17:07:49 -08:00
entity_date_helper_spec.rb Code style changes and refactor 2018-12-20 07:28:28 +08:00
entity_request_spec.rb
environment_entity_spec.rb Make KubernetesService readonly 2019-06-18 00:01:56 +00:00
environment_serializer_spec.rb Properly implement API pagination headers and add specs 2019-02-21 18:29:00 +01:00
environment_status_entity_spec.rb Avoid returning deployment metrics url to MR widget when the deployment is not successful 2018-11-14 11:11:27 +00:00
group_child_entity_spec.rb Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-09 15:38:58 +00:00
group_child_serializer_spec.rb
group_variable_entity_spec.rb
issue_board_entity_spec.rb Use proper API::Entities::Milestone 2018-12-13 11:47:50 -06:00
issue_entity_spec.rb
issue_serializer_spec.rb Add schema tests 2018-12-19 17:58:53 +08:00
job_artifact_report_entity_spec.rb Move JobArtifactEntity to JobArtifactReportEntity 2019-05-28 17:06:29 +02:00
job_entity_spec.rb Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
label_serializer_spec.rb
lfs_file_lock_entity_spec.rb
merge_request_diff_entity_spec.rb Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
merge_request_for_pipeline_entity_spec.rb Expose merge request entity for pipelines 2019-03-06 16:30:35 +07:00
merge_request_serializer_spec.rb Add schema tests 2018-12-19 17:58:53 +08:00
merge_request_user_entity_spec.rb Changes tab VUE refactoring 2018-06-21 12:22:40 +00:00
merge_request_widget_commit_entity_spec.rb Allow custom squash commit messages 2019-02-06 12:33:11 +00:00
merge_request_widget_entity_spec.rb Omit issues links in merge request entity API response 2019-06-20 15:59:41 -07: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
namespace_basic_entity_spec.rb Improve the GitHub and Gitea import feature table interface 2019-02-13 00:15:57 +00:00
namespace_serializer_spec.rb Improve the GitHub and Gitea import feature table interface 2019-02-13 00:15:57 +00:00
note_entity_spec.rb
pipeline_details_entity_spec.rb Add spec for pipeline_details_entity_spec 2018-10-03 15:18:44 +09:00
pipeline_entity_spec.rb Add specs checking serialization of a stage builds 2019-05-24 10:04:05 +01:00
pipeline_serializer_spec.rb Adds a way to start multiple manual jobs in stage 2019-05-02 18:27:35 +00:00
project_import_entity_spec.rb Improve the GitHub and Gitea import feature table interface 2019-02-13 00:15:57 +00:00
project_mirror_entity_spec.rb SSH public-key authentication for push mirroring 2018-11-19 11:46:39 +00:00
project_mirror_serializer_spec.rb port ProjectMirrorSerializer 2018-07-25 12:29:50 +01:00
project_note_entity_spec.rb
project_serializer_spec.rb Improve the GitHub and Gitea import feature table interface 2019-02-13 00:15:57 +00:00
provider_repo_entity_spec.rb Fix misspellings in app/spec executable lines 2019-02-27 22:41:34 +09:00
provider_repo_serializer_spec.rb Improve the GitHub and Gitea import feature table interface 2019-02-13 00:15:57 +00:00
remote_mirror_entity_spec.rb SSH public-key authentication for push mirroring 2018-11-19 11:46:39 +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 Adds a way to start multiple manual jobs in stage 2019-05-02 18:27:35 +00:00
stage_serializer_spec.rb Adds a way to start multiple manual jobs in stage 2019-05-02 18:27:35 +00:00
suggestion_entity_spec.rb Fixed test specs 2019-04-04 13:08:34 +00:00
test_case_entity_spec.rb Display classname JUnit attribute in report modal 2019-05-20 13:27:08 +00: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
trigger_variable_entity_spec.rb Add specs for TriggerVariableEntity 2018-12-07 17:16:33 +01:00
user_entity_spec.rb
variable_entity_spec.rb