gitlab-org--gitlab-foss/spec/serializers
Luke Duncalfe 38bf176c3c Enrich commits with full data in CommitCollection
Allow incomplete commit records to load their full data from gitaly.

Commits can be based on a Hash of data retrieved from PostgreSQL, and
this data can be intentionally incomplete in order to save space.

A new method #gitaly? has been added to Gitlab::Git::Commit, which
returns true if the underlying data source of the Commit is a
Gitaly::GitCommit.

CommitCollection now has a method #enrich which replaces non-gitaly
commits in place with commits from gitaly.

CommitCollection#without_merge_commits has been updated to call this
method, as in order to determine a merge commit we need to have parent
data.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/58805
2019-03-22 10:26:15 +13: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
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
build_serializer_spec.rb
cluster_application_entity_spec.rb Upgrade cluster applications, starting with runner 2019-02-07 21:40:55 +00: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
deployment_entity_spec.rb Move permission check of manual actions of deployments 2019-02-08 12:53:35 +00: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
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
diff_viewer_entity_spec.rb Fix LFS uploaded images not being rendered 2018-10-05 22:36:20 +00:00
diffs_entity_spec.rb
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 Resolve "Hide cluster features that don't work yet with Group Clusters" 2018-12-20 09:39:09 +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 Fix review comments 2019-01-21 15:07:40 -06: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_entity_spec.rb Add scheduled flag to job entity 2018-11-02 11:52:34 +00:00
label_serializer_spec.rb
lfs_file_lock_entity_spec.rb
merge_request_diff_entity_spec.rb
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
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 Enrich commits with full data in CommitCollection 2019-03-22 10:26:15 +13:00
move_to_project_entity_spec.rb
move_to_project_serializer_spec.rb
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 Update pipeline detail view to accommodate post-merge pipelines 2019-03-19 23:19:27 +07:00
pipeline_serializer_spec.rb Add attached flag to pipeline entity 2019-03-13 21:36:27 +07: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
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
stage_entity_spec.rb
suggestion_entity_spec.rb Allow suggesting single line changes in diffs 2018-12-13 19:17:19 +00:00
test_case_entity_spec.rb
test_reports_comparer_entity_spec.rb
test_reports_comparer_serializer_spec.rb
test_suite_comparer_entity_spec.rb
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