gitlab-org--gitlab-foss/app/services
Dmitriy Zaporozhets 9211b541d3
Improve MR code reloading when push code
Every time you pushed to master it updates merge requests that has master
as target branch. So if you have 50 open merge requests point to master
it will reload all of them every time you push a single commit to
master. The funny thing is that after reloading diff of most merge
requests looks the same.

After this patch we update diff only if we push commit to master that
includes in MR commits list.

For example we have next repository:

feature: A - B - C
master: A

We create merge requests #1 with code from feature to master.

MR #1: B - C

If we push to master commit D - MR will not be reloaded. So picture will
look next:

feature: A - B - C
master: A - D
MR #1: B - C

And if we push to master commit B - MR will be reloaded. So picture will
look next:

feature: A - B - C
master: A - B
MR #1: C

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-02 16:22:23 +02:00
..
files Use :message key, not :error for File::Service. 2014-10-13 20:55:09 +02:00
issues Merge pull request #7967 from Bugagazavr/issue-actor 2014-11-05 12:10:50 +02:00
merge_requests Improve MR code reloading when push code 2014-12-02 16:22:23 +02:00
milestones Merge branch 'group_milestones' into 'master' 2014-07-01 07:18:15 +00:00
notes Remove NotesObserver 2014-06-17 22:09:01 +03:00
projects Dont allow project creation without repository 2014-11-29 21:34:18 +02:00
search Adding in snippet search functionality 2014-08-29 15:32:07 -04:00
archive_repository_service.rb Fix repository archive 2014-08-13 21:28:22 +03:00
base_service.rb Factor abilities methods 2014-10-19 11:12:39 +02:00
compare_service.rb Comment typo. 2014-08-29 20:11:57 +02:00
create_branch_service.rb Factor error and success methods from services. 2014-09-21 11:43:05 +02:00
create_tag_service.rb Factor error and success methods from services. 2014-09-21 11:43:05 +02:00
delete_branch_service.rb Factor error and success methods from services. 2014-09-21 11:43:05 +02:00
event_create_service.rb Use EventCreateService for notes, merge requests 2014-03-25 15:08:25 +02:00
git_push_service.rb Prevent big amount of sql queries for push service 2014-11-12 13:59:25 +02:00
git_tag_push_service.rb Create event and clear cache on new trag push 2014-03-13 11:37:13 +02:00
gravatar_service.rb Move gravatar url compose to separate service 2014-06-13 17:11:46 +03:00
issuable_base_service.rb Factor issue and merge request services 2014-10-07 21:12:18 +02:00
notification_service.rb Remove unused password argument from notification 2014-12-01 15:11:26 +01:00
system_hooks_service.rb Merge pull request #7495 from polamjag/fix-date-format-on-system-hook 2014-11-05 13:14:26 +02:00
test_hook_service.rb Prevent 500 if hook url is down, fixes #7376 2014-07-29 11:49:46 +02:00