Cannot use EE 'rebase' feature if 'Check whether author is a GitLab user' enabled
Summary
We cannot use the GitLab EE 'rebase' feature of 'Check whether author is a GitLab user' is setup in push rules for the repo being rebased.
Steps to reproduce
- Create a fork of a main repo
- Set 'Check whether author is a GitLab user' in fork (we also have it set in main repo, but don't think this matters)
- Create a branch from a point behind upstream
- Add a commit to branch
- Create a merge request to send upstream
- Press 'rebase' button on merge request
What is the current bug behavior?
Shows the 'spinner' for a bit, then goes back to saying 'Fast-forward merge is not possible. Rebase the source branch onto the target branch or merge target branch into source branch to allow this merge request to be merged.'. No matter how many times you hit 'rebase' it never works.
What is the expected correct behavior?
-
Rebase should work (I guess either a: the internal user should be implicitly added to the allowed list, or b: the check should be on 'author', not 'committer')
-
If rebase fails, it should say so within the merge request
Relevant logs and/or screenshots
March 10, 2017 14:21 -> ERROR -> MergeRequests::RebaseService error (smartoffice/sot!201): Failed to push rebased branch with `/opt/gitlab/embedded/bin/git push -f origin master`:
March 10, 2017 14:21 -> ERROR -> MergeRequests::RebaseService error (smartoffice/sot!201): remote: GitLab: Committer 'gitlab@artifex.githost.io' is not a member of team
To /var/opt/gitlab/git-data/repositories/Jin/sot.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '/var/opt/gitlab/git-data/repositories/Jin/sot.git'
Output of checks
This bug happens on our githost.io instance. GitLab Enterprise Edition 8.17.2-ee 474978de
Results of GitLab environment info
Can't run this on githost.io.
Results of GitLab application Check
Can't run this on githost.io.