gitlab-org--gitlab-foss/app/services
Stan Hu dbc03ce3a9 Optimize merge request refresh by using the database to check commit SHAs
Previously for a given merge request, we would:

1. Create the array of commit SHAs involved in the push (A)
2. Request all merge request commits and map the SHA (B)
3. Reload the diff if there were any common commits between A and B

We can avoid additional database querying and overhead by
checking with the database whether the merge request contains any
of the commit SHAs.

Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/53213
2018-11-02 12:11:30 -07:00
..
application_settings
applications Move non-controller code into dedicated service 2018-10-15 11:07:47 +13:00
auth Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
badges
boards Automatically navigate to last board visited 2018-10-26 12:49:16 +00:00
chat_names
ci enqueue in process_build_service 2018-10-02 17:08:14 +02:00
clusters Incorporates Kubernetes Namespace into Cluster's flow 2018-11-02 15:46:15 +00:00
commits
concerns
deploy_keys
deploy_tokens
discussions
emails
events
files Adds chmod action to POST /projects/:id/repository/commits API 2018-09-27 11:51:15 +02:00
gpg_keys
groups Fix Groups::UpdateService#execute not returning correct error code 2018-10-18 01:43:49 -07:00
issuable
issues Add email for milestone change 2018-11-02 16:29:32 +00:00
keys Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
labels Replace deprecated uniq on a Relation with distinct 2018-10-26 18:19:28 +02:00
lfs
mattermost
members Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
merge_requests Optimize merge request refresh by using the database to check commit SHAs 2018-11-02 12:11:30 -07:00
milestones Add email for milestone change 2018-11-02 16:29:32 +00:00
notes Auto resolve new notes of resolved discussions 2018-09-24 08:30:58 -05:00
projects Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
prometheus
protected_branches
protected_tags
quick_actions Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
resource_events Preload user status for label events 2018-10-25 18:20:23 +02:00
search Whitelist none method from ActiveRecord::Querying 2018-10-31 15:46:36 -03:00
tags
test_hooks
todos/destroy
users allow users api to set public_email 2018-10-01 13:24:16 +02:00
wiki_pages
wikis
access_token_validation_service.rb
after_branch_delete_service.rb
akismet_service.rb
audit_event_service.rb Add support for JSON logging for audit events 2018-10-18 15:59:12 -07:00
base_count_service.rb
base_renderer.rb
base_service.rb
cohorts_service.rb
compare_service.rb
create_branch_service.rb
create_deployment_service.rb
create_release_service.rb
create_snippet_service.rb
delete_branch_service.rb
delete_merged_branches_service.rb Replace deprecated uniq on a Relation with distinct 2018-10-26 18:19:28 +02:00
event_create_service.rb
git_push_service.rb
git_tag_push_service.rb
gravatar_service.rb
ham_service.rb
import_export_clean_up_service.rb
issuable_base_service.rb Add email for milestone change 2018-11-02 16:29:32 +00:00
merge_request_metrics_service.rb
metrics_service.rb
note_summary.rb
notification_recipient_service.rb
notification_service.rb Add email for milestone change 2018-11-02 16:29:32 +00:00
preview_markdown_service.rb
push_event_payload_service.rb
repair_ldap_blocked_user_service.rb
repository_archive_clean_up_service.rb
reset_project_cache_service.rb
search_service.rb
spam_check_service.rb
spam_service.rb
submit_usage_ping_service.rb
system_hooks_service.rb
system_note_service.rb Make source param optional according to EE change 2018-10-11 08:04:25 +02:00
todo_service.rb Clean up ActiveRecord code in TodoService 2018-10-08 15:19:12 +02:00
update_release_service.rb
update_snippet_service.rb
upload_service.rb
user_agent_detail_service.rb
user_project_access_changed_service.rb
validate_new_branch_service.rb
verify_pages_domain_service.rb
web_hook_service.rb Catch RedirectionTooDeep Exception in webhooks 2018-10-19 05:55:06 +00:00