Skip to content
Snippets Groups Projects
Commit 3f718344 authored by Fatih Acet's avatar Fatih Acet
Browse files

Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into...

Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into categorize_search_query_in_project_header
parents d2295637 0f96a6c2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -247,7 +247,7 @@ Style/FlipFlop:
 
# Checks use of for or each in multiline loops.
Style/For:
Enabled: false
Enabled: true
 
# Enforce the use of Kernel#sprintf, Kernel#format or String#%.
Style/FormatString:
Loading
Loading
@@ -514,7 +514,7 @@ Style/SelfAssignment:
 
# Don't use semicolons to terminate expressions.
Style/Semicolon:
Enabled: false
Enabled: true
 
# Checks for proper usage of fail and raise.
Style/SignalException:
Loading
Loading
Loading
Loading
@@ -311,13 +311,11 @@ request is as follows:
1. Create a feature branch
1. Write [tests](https://gitlab.com/gitlab-org/gitlab-development-kit#running-the-tests) and code
1. Add your changes to the [CHANGELOG](CHANGELOG)
1. If you are changing the README, some documentation or other things which
have no effect on the tests, add `[ci skip]` somewhere in the commit message
and make sure to read the [documentation styleguide][doc-styleguide]
1. If you are writing documentation, make sure to read the [documentation styleguide][doc-styleguide]
1. If you have multiple commits please combine them into one commit by
[squashing them][git-squash]
1. Push the commit(s) to your fork
1. Submit a merge request (MR) to the master branch
1. Submit a merge request (MR) to the `master` branch
1. The MR title should describe the change you want to make
1. The MR description should give a motive for your change and the method you
used to achieve it, see the [merge request description format]
Loading
Loading
Loading
Loading
@@ -41,7 +41,7 @@
margin: 0;
margin-left: 20px;
padding: 5px;
padding-top: 12px;
padding-top: 8px;
line-height: 20px;
 
&.right {
Loading
Loading
@@ -110,6 +110,29 @@
p:last-child {
margin-bottom: 0;
}
@media (max-width: $screen-sm-max) {
h4 {
font-size: 15px;
}
p {
font-size: 13px;
}
.btn,
.btn-group,
.accept-action {
width: 100%;
margin-bottom: 4px;
}
.accept-control {
width: 100%;
text-align: center;
margin: 0;
}
}
}
 
.mr-widget-footer {
Loading
Loading
Loading
Loading
@@ -164,7 +164,7 @@ module Network
i != range.last &&
@commits[i].spaces.include?(overlap_space)
 
return true;
return true
end
end
 
Loading
Loading
@@ -205,7 +205,7 @@ module Network
# Visit branching chains
leaves.each do |l|
parents = l.parents(@map).select{|p| p.space.zero?}
for p in parents
parents.each do |p|
place_chain(p, l.time)
end
end
Loading
Loading
@@ -223,7 +223,7 @@ module Network
end
 
def mark_reserved(time_range, space)
for day in time_range
time_range.each do |day|
@reserved[day].push(space)
end
end
Loading
Loading
@@ -232,7 +232,7 @@ module Network
space_default ||= space_base
 
reserved = []
for day in time_range
time_range.each do |day|
reserved.push(*@reserved[day])
end
reserved.uniq!
Loading
Loading
Loading
Loading
@@ -52,15 +52,6 @@
= icon('ship fw')
%span
Pipelines
%span.badge.count.ci_counter= number_with_delimiter(@project.ci_commits.running_or_pending.count)
- if project_nav_tab? :builds
= nav_link(controller: %w(builds)) do
= link_to project_builds_path(@project), title: 'Builds', class: 'shortcuts-builds' do
= icon('cubes fw')
%span
Builds
%span.badge.count.builds_counter= number_with_delimiter(@project.builds.running_or_pending.count(:all))
 
- if project_nav_tab? :container_registry
= nav_link(controller: %w(container_registry)) do
Loading
Loading
@@ -132,4 +123,10 @@
= link_to new_namespace_project_issue_path(@project.namespace, @project), class: 'shortcuts-new-issue' do
Create a new issue
 
-# Shortcut to builds page
- if project_nav_tab? :builds
%li.hidden
= link_to project_builds_path(@project), title: 'Builds', class: 'shortcuts-builds' do
Builds
.fade-right
- page_title "Builds"
= render "projects/pipelines/head"
 
.top-area
%ul.nav-links
Loading
Loading
%ul.nav-links
- if project_nav_tab? :pipelines
= nav_link(controller: :pipelines) do
= link_to project_pipelines_path(@project), title: 'Pipelines', class: 'shortcuts-pipelines' do
%span
Pipelines
%span.badge.count.ci_counter= number_with_delimiter(@project.ci_commits.running_or_pending.count)
- if project_nav_tab? :builds
= nav_link(controller: %w(builds)) do
= link_to project_builds_path(@project), title: 'Builds', class: 'shortcuts-builds' do
%span
Builds
%span.badge.count.builds_counter= number_with_delimiter(@project.builds.running_or_pending.count(:all))
- page_title "Pipelines"
= render "projects/pipelines/head"
 
.top-area
%ul.nav-links
Loading
Loading
Loading
Loading
@@ -150,3 +150,4 @@ On a very active server (10,000 active users) the Sidekiq process can use 1GB+ o
- Safari 7+ (known problem: required fields in html5 do not work)
- Opera (Latest released version)
- Internet Explorer (IE) 11+ but please make sure that you have the `Compatibility View` mode disabled.
- Edge (Latest stable version)
Loading
Loading
@@ -39,7 +39,7 @@ module Gitlab
request_url = URI.join(base_url, project_path)
domain_path = strip_url(request_url.to_s)
 
"<!DOCTYPE html><html><head><meta content='#{domain_path} git #{request_url}.git' name='go-import'></head></html>\n";
"<!DOCTYPE html><html><head><meta content='#{domain_path} git #{request_url}.git' name='go-import'></head></html>\n"
end
 
def strip_url(url)
Loading
Loading
Loading
Loading
@@ -151,9 +151,10 @@ describe CommitRange, models: true do
issue = create(:issue)
 
create(:note_on_issue,
noteable_id: issue.id,
noteable: issue,
system: true,
note: commit1.revert_description)
note: commit1.revert_description,
project: issue.project)
 
expect_any_instance_of(Commit).to receive(:reverts_commit?).
with(commit1).
Loading
Loading
Loading
Loading
@@ -154,7 +154,7 @@ describe Note, models: true do
context "confidential issues" do
let(:user) { create :user }
let(:confidential_issue) { create(:issue, :confidential, author: user) }
let(:confidential_note) { create :note, note: "Random", noteable: confidential_issue }
let(:confidential_note) { create :note, note: "Random", noteable: confidential_issue, project: confidential_issue.project }
 
it "returns notes with matching content if user can see the issue" do
expect(described_class.search(confidential_note.note, as_user: user)).to eq([confidential_note])
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment