Commit 619904be authored by GitLab Bot's avatar GitLab Bot

Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-02-20

parents 40d65648 0e2ba232
...@@ -88,6 +88,8 @@ export default class SingleFileDiff { ...@@ -88,6 +88,8 @@ export default class SingleFileDiff {
if (cb) cb(); if (cb) cb();
}) })
.catch(createFlash(__('An error occurred while retrieving diff'))); .catch(() => {
createFlash(__('An error occurred while retrieving diff'));
});
} }
} }
...@@ -13,8 +13,11 @@ class RootController < Dashboard::ProjectsController ...@@ -13,8 +13,11 @@ class RootController < Dashboard::ProjectsController
before_action :redirect_logged_user, if: -> { current_user.present? } before_action :redirect_logged_user, if: -> { current_user.present? }
def index def index
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/37434
Gitlab::GitalyClient.allow_n_plus_1_calls do
super super
end end
end
private private
......
...@@ -214,9 +214,10 @@ class ChangelogEntry ...@@ -214,9 +214,10 @@ class ChangelogEntry
end end
def unreleased_path def unreleased_path
File.join('changelogs', 'unreleased').tap do |path| path = File.join('changelogs', 'unreleased')
path << '-ee' if ee? path = File.join('ee', path) if ee?
end
path
end end
def ee? def ee?
......
...@@ -125,7 +125,7 @@ author: ...@@ -125,7 +125,7 @@ author:
type: type:
``` ```
If you're working on the GitLab EE repository, the entry will be added to If you're working on the GitLab EE repository, the entry will be added to
`changelogs/unreleased-ee/` instead. `ee/changelogs/unreleased/` instead.
### Arguments ### Arguments
......
...@@ -13,6 +13,8 @@ in the table below. ...@@ -13,6 +13,8 @@ in the table below.
| `issues_url` | The URL to the issue in the issue tracker project that is linked to this GitLab project. Note that the `issues_url` requires `:id` in the URL. This ID is used by GitLab as a placeholder to replace the issue number. For example, `https://customissuetracker.com/project-name/:id`. | | `issues_url` | The URL to the issue in the issue tracker project that is linked to this GitLab project. Note that the `issues_url` requires `:id` in the URL. This ID is used by GitLab as a placeholder to replace the issue number. For example, `https://customissuetracker.com/project-name/:id`. |
| `new_issue_url` | Currently unused. Will be changed in a future release. | | `new_issue_url` | Currently unused. Will be changed in a future release. |
Once you have configured and enabled Custom Issue Tracker Service you'll see a link on the GitLab project pages that takes you to that custom issue tracker.
## Referencing issues ## Referencing issues
......
...@@ -276,6 +276,7 @@ describe Gitlab::Git::Blob, seed_helper: true do ...@@ -276,6 +276,7 @@ describe Gitlab::Git::Blob, seed_helper: true do
expect(blobs.count).to eq(1) expect(blobs.count).to eq(1)
expect(blobs).to all( be_a(Gitlab::Git::Blob) ) expect(blobs).to all( be_a(Gitlab::Git::Blob) )
expect(blobs).to be_an(Array)
end end
it 'accepts blob IDs as a lazy enumerator' do it 'accepts blob IDs as a lazy enumerator' do
......
...@@ -102,6 +102,10 @@ describe Gitlab::Git::Commit, seed_helper: true do ...@@ -102,6 +102,10 @@ describe Gitlab::Git::Commit, seed_helper: true do
expect(described_class.find(repository, SeedRepo::Commit::ID)).to be_valid_commit expect(described_class.find(repository, SeedRepo::Commit::ID)).to be_valid_commit
end end
it "returns an array of parent ids" do
expect(described_class.find(repository, SeedRepo::Commit::ID).parent_ids).to be_an(Array)
end
it "should return valid commit for tag" do it "should return valid commit for tag" do
expect(described_class.find(repository, 'v1.0.0').id).to eq('6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9') expect(described_class.find(repository, 'v1.0.0').id).to eq('6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment