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 Ask user explicitly about usage stats agreement 2018-09-07 14:32:28 +00:00
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 Enable frozen string in apps/services/**/*.rb 2018-07-16 12:36:41 -07:00
boards Automatically navigate to last board visited 2018-10-26 12:49:16 +00:00
chat_names Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
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 Let Commits::TagService return a result hash 2018-08-10 16:45:11 +02:00
concerns Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
deploy_keys Enable frozen string in apps/services/**/*.rb 2018-07-16 12:36:41 -07:00
deploy_tokens Enable frozen string in apps/services/**/*.rb 2018-07-16 12:36:41 -07:00
discussions Enable frozen string in apps/services/**/*.rb 2018-07-16 12:36:41 -07:00
emails Add ability to skip user email confirmation with API 2018-09-10 22:41:53 -07:00
events Enable frozen string in apps/services/**/*.rb 2018-07-16 12:36:41 -07:00
files Adds chmod action to POST /projects/:id/repository/commits API 2018-09-27 11:51:15 +02:00
gpg_keys Enable frozen string in apps/services/**/*.rb 2018-07-16 12:36:41 -07:00
groups Fix Groups::UpdateService#execute not returning correct error code 2018-10-18 01:43:49 -07:00
issuable Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
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 Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
mattermost Enable more frozen string in app/services/**/*.rb 2018-07-17 15:19:40 -07:00
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 Backports relevant changes made in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5163 to CE 2018-07-25 09:39:39 +01:00
protected_branches Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
protected_tags Enable more frozen string in app/services/**/*.rb 2018-07-18 14:07:50 -07:00
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 Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
test_hooks Enable more frozen string in app/services/**/*.rb 2018-07-18 14:07:50 -07:00
todos/destroy Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
users allow users api to set public_email 2018-10-01 13:24:16 +02:00
wiki_pages Enable more frozen string in app/services/**/*.rb 2018-07-18 14:07:50 -07:00
wikis Replace whitespaces in wiki page attachments file names 2018-09-07 14:10:15 +00:00
access_token_validation_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
after_branch_delete_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
akismet_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
audit_event_service.rb Add support for JSON logging for audit events 2018-10-18 15:59:12 -07:00
base_count_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
base_renderer.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
base_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
cohorts_service.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
compare_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
create_branch_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
create_deployment_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
create_release_service.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
create_snippet_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
delete_branch_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
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 Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
git_push_service.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
git_tag_push_service.rb Code cleaning in PostReceive services 2018-07-31 14:07:24 +00:00
gravatar_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
ham_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
import_export_clean_up_service.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
issuable_base_service.rb Add email for milestone change 2018-11-02 16:29:32 +00:00
merge_request_metrics_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
metrics_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
note_summary.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
notification_recipient_service.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
notification_service.rb Add email for milestone change 2018-11-02 16:29:32 +00:00
preview_markdown_service.rb render using RedCarpet if legacy_render parameter is set 2018-09-05 09:19:16 -05:00
push_event_payload_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
repair_ldap_blocked_user_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
repository_archive_clean_up_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
reset_project_cache_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
search_service.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
spam_check_service.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
spam_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
submit_usage_ping_service.rb Ask user explicitly about usage stats agreement 2018-09-07 14:32:28 +00:00
system_hooks_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
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 Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
update_snippet_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
upload_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
user_agent_detail_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
user_project_access_changed_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
validate_new_branch_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
verify_pages_domain_service.rb Enable frozen string in apps/uploaders/*.rb 2018-07-16 06:41:59 -07:00
web_hook_service.rb Catch RedirectionTooDeep Exception in webhooks 2018-10-19 05:55:06 +00:00