Commit eedc383f authored by Robert Speicher's avatar Robert Speicher

Merge branch 'ce-to-ee-2018-03-23' into 'master'

CE upstream - 2018-03-23 06:25 UTC

Closes charts/helm.gitlab.io#291 and gitlab-ce#43937

See merge request gitlab-org/gitlab-ee!5093
parents 7f6a9245 0c15388b
...@@ -622,7 +622,7 @@ ...@@ -622,7 +622,7 @@
} }
.dropdown-content { .dropdown-content {
max-height: $dropdown-max-height; max-height: 252px;
overflow-y: auto; overflow-y: auto;
} }
...@@ -699,6 +699,31 @@ ...@@ -699,6 +699,31 @@
border-radius: $border-radius-base; border-radius: $border-radius-base;
} }
.git-revision-dropdown {
.dropdown-content {
max-height: 215px;
}
}
.sidebar-move-issue-dropdown {
.dropdown-content {
max-height: 160px;
}
}
.dropdown-menu-author {
.dropdown-content {
max-height: 215px;
}
}
.dropdown-menu-labels {
.dropdown-content {
max-height: 128px;
}
}
.dropdown-menu-due-date { .dropdown-menu-due-date {
.dropdown-content { .dropdown-content {
max-height: 230px; max-height: 230px;
......
...@@ -152,3 +152,4 @@ ...@@ -152,3 +152,4 @@
.sidebar-collapsed-icon .sidebar-collapsed-value { .sidebar-collapsed-icon .sidebar-collapsed-value {
font-size: 12px; font-size: 12px;
} }
...@@ -32,8 +32,12 @@ ...@@ -32,8 +32,12 @@
.dropdown-menu-issues-board-new { .dropdown-menu-issues-board-new {
width: 320px; width: 320px;
.open & {
max-height: 400px;
}
.dropdown-content { .dropdown-content {
max-height: 150px; max-height: 162px;
} }
} }
......
...@@ -162,17 +162,14 @@ ...@@ -162,17 +162,14 @@
* Last push widget * Last push widget
*/ */
.event-last-push { .event-last-push {
overflow: auto;
width: 100%; width: 100%;
display: flex;
align-items: center;
.event-last-push-text { .event-last-push-text {
@include str-truncated(100%); @include str-truncated(100%);
padding: 4px 0;
font-size: 13px; font-size: 13px;
float: left; margin-right: $gl-padding;
margin-right: -150px;
padding-right: 150px;
line-height: 20px;
} }
} }
......
...@@ -26,9 +26,15 @@ ...@@ -26,9 +26,15 @@
} }
} }
.dropdown-menu-labels {
.dropdown-content {
max-height: 135px;
}
}
.dropdown-new-label { .dropdown-new-label {
.dropdown-content { .dropdown-content {
max-height: 260px; max-height: 136px;
} }
} }
......
...@@ -112,7 +112,7 @@ input[type="checkbox"]:hover { ...@@ -112,7 +112,7 @@ input[type="checkbox"]:hover {
} }
.dropdown-content { .dropdown-content {
max-height: 350px; max-height: 302px;
} }
} }
......
...@@ -73,7 +73,7 @@ module Ci ...@@ -73,7 +73,7 @@ module Ci
project.pipelines project.pipelines
.where(ref: pipeline.ref) .where(ref: pipeline.ref)
.where.not(id: pipeline.id) .where.not(id: pipeline.id)
.where.not(sha: project.repository.sha_from_ref(pipeline.ref)) .where.not(sha: project.commit(pipeline.ref).try(:id))
.created_or_pending .created_or_pending
end end
......
...@@ -13,6 +13,6 @@ ...@@ -13,6 +13,6 @@
#{time_ago_with_tooltip(event.created_at)} #{time_ago_with_tooltip(event.created_at)}
.pull-right .flex-right
= link_to new_mr_path_from_push_event(event), title: _("New merge request"), class: "btn btn-info btn-sm qa-create-merge-request" do = link_to new_mr_path_from_push_event(event), title: _("New merge request"), class: "btn btn-info btn-sm qa-create-merge-request" do
#{ _('Create merge request') } #{ _('Create merge request') }
---
title: Fix UI breakdown for Create merge request button
merge_request: 17821
author: Takuya Noguchi
type: fixed
---
title: Use porcelain commit lookup method on CI::CreatePipelineService
merge_request: 17911
author:
type: fixed
...@@ -198,7 +198,7 @@ module Gitlab ...@@ -198,7 +198,7 @@ module Gitlab
ENV['GIT_TERMINAL_PROMPT'] = '0' ENV['GIT_TERMINAL_PROMPT'] = '0'
# Gitlab Read-only middleware support # Gitlab Read-only middleware support
config.middleware.insert_after ActionDispatch::Flash, 'Gitlab::Middleware::ReadOnly' config.middleware.insert_after ActionDispatch::Flash, '::Gitlab::Middleware::ReadOnly'
config.generators do |g| config.generators do |g|
g.factory_bot false g.factory_bot false
......
...@@ -216,9 +216,6 @@ const config = { ...@@ -216,9 +216,6 @@ const config = {
names: ['main', 'common', 'webpack_runtime'], names: ['main', 'common', 'webpack_runtime'],
}), }),
// enable scope hoisting
new webpack.optimize.ModuleConcatenationPlugin(),
// copy pre-compiled vendor libraries verbatim // copy pre-compiled vendor libraries verbatim
new CopyWebpackPlugin([ new CopyWebpackPlugin([
{ {
...@@ -274,6 +271,7 @@ if (IS_PRODUCTION) { ...@@ -274,6 +271,7 @@ if (IS_PRODUCTION) {
minimize: true, minimize: true,
debug: false debug: false
}), }),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.optimize.UglifyJsPlugin({ new webpack.optimize.UglifyJsPlugin({
sourceMap: true sourceMap: true
}), }),
......
...@@ -23,10 +23,6 @@ When downtime is necessary the migration has to be approved by: ...@@ -23,10 +23,6 @@ When downtime is necessary the migration has to be approved by:
An up-to-date list of people holding these titles can be found at An up-to-date list of people holding these titles can be found at
<https://about.gitlab.com/team/>. <https://about.gitlab.com/team/>.
The document ["What Requires Downtime?"](what_requires_downtime.md) specifies
various database operations, whether they require downtime and how to
work around that whenever possible.
When writing your migrations, also consider that databases might have stale data When writing your migrations, also consider that databases might have stale data
or inconsistencies and guard for that. Try to make as few assumptions as or inconsistencies and guard for that. Try to make as few assumptions as
possible about the state of the database. possible about the state of the database.
...@@ -41,6 +37,18 @@ Migrations that make changes to the database schema (e.g. adding a column) can ...@@ -41,6 +37,18 @@ Migrations that make changes to the database schema (e.g. adding a column) can
only be added in the monthly release, patch releases may only contain data only be added in the monthly release, patch releases may only contain data
migrations _unless_ schema changes are absolutely required to solve a problem. migrations _unless_ schema changes are absolutely required to solve a problem.
## What Requires Downtime?
The document ["What Requires Downtime?"](what_requires_downtime.md) specifies
various database operations, such as
- [adding, dropping, and renaming columns](what_requires_downtime.md#adding-columns)
- [changing column constraints and types](what_requires_downtime.md#changing-column-constraints)
- [adding and dropping indexes, tables, and foreign keys](what_requires_downtime.md#adding-indexes)
and whether they require downtime and how to work around that whenever possible.
## Downtime Tagging ## Downtime Tagging
Every migration must specify if it requires downtime or not, and if it should Every migration must specify if it requires downtime or not, and if it should
......
...@@ -516,10 +516,6 @@ module Gitlab ...@@ -516,10 +516,6 @@ module Gitlab
end end
end end
def sha_from_ref(ref)
rev_parse_target(ref).oid
end
# Return the object that +revspec+ points to. If +revspec+ is an # Return the object that +revspec+ points to. If +revspec+ is an
# annotated tag, then return the tag's target instead. # annotated tag, then return the tag's target instead.
def rev_parse_target(revspec) def rev_parse_target(revspec)
...@@ -2431,6 +2427,10 @@ module Gitlab ...@@ -2431,6 +2427,10 @@ module Gitlab
def rev_list_param(spec) def rev_list_param(spec)
spec == :all ? ['--all'] : spec spec == :all ? ['--all'] : spec
end end
def sha_from_ref(ref)
rev_parse_target(ref).oid
end
end end
end end
end end
...@@ -20,6 +20,7 @@ Disallow: /projects/new ...@@ -20,6 +20,7 @@ Disallow: /projects/new
Disallow: /groups/new Disallow: /groups/new
Disallow: /groups/*/edit Disallow: /groups/*/edit
Disallow: /users Disallow: /users
Disallow: /help
# Global snippets # Global snippets
User-Agent: * User-Agent: *
......
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