diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-05 13:46:14 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-07 16:24:48 +0200 |
commit | 44c035427e5338e50168af5082ff03f2dd41b04b (patch) | |
tree | f9548196e892bfdbf2bf1e9bfd91c78e8d40977a | |
parent | ea1b80aebf643b6fec08bb7916c3e3ab939b24e0 (diff) | |
download | gitlab-ce-44c035427e5338e50168af5082ff03f2dd41b04b.tar.gz |
Merge branch 'reorder-language' into 'master'
Update language after doing all other operations
See merge request !3533
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | app/services/git_push_service.rb | 7 | ||||
-rw-r--r-- | spec/services/git_push_service_spec.rb | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/CHANGELOG b/CHANGELOG index 737cae57f81..78635d3ab78 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -21,6 +21,7 @@ v 8.7.0 (unreleased) v 8.6.5 - Fix importing from GitHub Enterprise. !3529 + - Perform the language detection after updating merge requests in `GitPushService`, leading to faster visual feedback for the end-user. !3533 - Check permissions when user attempts to import members from another project. !3535 - Only update repository language if it is not set to improve performance. !3556 - Return status code 303 after a branch DELETE operation to avoid project deletion (Stan Hu). !3583 diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index 21aab6b4747..dc74c02760b 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -43,13 +43,14 @@ class GitPushService < BaseService @push_commits = @project.repository.commits_between(params[:oldrev], params[:newrev]) process_commit_messages end - # Checks if the main language has changed in the project and if so - # it updates it accordingly - update_main_language # Update merge requests that may be affected by this push. A new branch # could cause the last commit of a merge request to change. update_merge_requests + # Checks if the main language has changed in the project and if so + # it updates it accordingly + update_main_language + perform_housekeeping end diff --git a/spec/services/git_push_service_spec.rb b/spec/services/git_push_service_spec.rb index 1b48b8ad18b..b40a5c1c818 100644 --- a/spec/services/git_push_service_spec.rb +++ b/spec/services/git_push_service_spec.rb @@ -159,7 +159,6 @@ describe GitPushService, services: true do end describe "Updates main language" do - context "before push" do it { expect(project.main_language).to eq(nil) } end |