Commit 0c2701ef authored by Sean McGivern's avatar Sean McGivern

Merge branch 'ce-to-ee-2018-04-25' into 'master'

CE upstream - 2018-04-25 14:00 UTC

Closes gitaly#1111

See merge request gitlab-org/gitlab-ee!5482
parents d82e30fa 9647b407
......@@ -40,10 +40,6 @@
.project-home-panel {
padding-left: 0 !important;
.project-avatar {
display: block;
}
.project-repo-buttons,
.git-clone-holder {
display: none;
......
......@@ -268,8 +268,6 @@
}
.scrolling-tabs-container {
position: relative;
.merge-request-tabs-container & {
overflow: hidden;
}
......@@ -299,8 +297,6 @@
}
.inner-page-scroll-tabs {
position: relative;
.fade-right {
@include fade(left, $white-light);
right: 0;
......
......@@ -314,6 +314,10 @@
display: inline-flex;
vertical-align: top;
&:hover .color-label {
text-decoration: underline;
}
.label {
vertical-align: inherit;
font-size: $label-font-size;
......
......@@ -197,10 +197,6 @@ class MergeRequestDiff < ActiveRecord::Base
CompareService.new(project, head_commit_sha).execute(project, sha, straight: true)
end
def commits_count
super || merge_request_diff_commits.size
end
private
def create_merge_request_diff_files(diffs)
......
- breadcrumb_title "General Settings"
- @content_class = "limit-container-width" unless fluid_layout
.panel.panel-default.prepend-top-default
.panel-heading
Group settings
......
......@@ -12,7 +12,7 @@
- if @namespaces.present?
.fork-thumbnail-container.js-fork-content
%h5.prepend-top-0.append-bottom-0.prepend-left-default.append-right-default
Click to fork the project
= _("Select a namespace to fork the project")
- @namespaces.each do |namespace|
= render 'fork_button', namespace: namespace
- else
......
......@@ -32,6 +32,13 @@
required: true,
title: 'You can choose a descriptive name different from the path.'
- if @group.persisted?
.form-group.group-name-holder
= f.label :id, class: 'control-label' do
= _("Group ID")
.col-sm-10
= f.text_field :id, class: 'form-control', readonly: true
.form-group.group-description-holder
= f.label :description, class: 'control-label'
.col-sm-10
......
---
title: Fix tabs container styles to make RSS button clickable
merge_request: 18559
author:
type: fixed
---
title: Replace "Click" with "Select" to be more inclusive of people with accessibility
requirements
merge_request: 18386
author: Mark Lapierre
type: other
---
title: Align project avatar on small viewports
merge_request: 18513
author: George Tsiolis
type: changed
---
title: Restore label underline color
merge_request: 18407
author: George Tsiolis
type: fixed
---
title: Show group id in group settings
merge_request: 18482
author: George Tsiolis
type: added
......@@ -60,7 +60,7 @@ class RemoveDotGitFromGroupNames < ActiveRecord::Migration
def move_namespace(group_id, path_was, path)
repository_storages = select_all("SELECT distinct(repository_storage) FROM projects WHERE namespace_id = #{group_id}").map do |row|
Gitlab.config.repositories.storages[row['repository_storage']].legacy_disk_path
row['repository_storage']
end.compact
# Move the namespace directory in all storages paths used by member projects
......
......@@ -83,17 +83,17 @@ class RemoveDotGitFromUsernames < ActiveRecord::Migration
end
def move_namespace(namespace_id, path_was, path)
repository_storage_paths = select_all("SELECT distinct(repository_storage) FROM projects WHERE namespace_id = #{namespace_id}").map do |row|
Gitlab.config.repositories.storages[row['repository_storage']].legacy_disk_path
repository_storages = select_all("SELECT distinct(repository_storage) FROM projects WHERE namespace_id = #{namespace_id}").map do |row|
row['repository_storage']
end.compact
# Move the namespace directory in all storages paths used by member projects
repository_storage_paths.each do |repository_storage_path|
# Move the namespace directory in all storages used by member projects
repository_storages.each do |repository_storage|
# Ensure old directory exists before moving it
gitlab_shell.add_namespace(repository_storage_path, path_was)
gitlab_shell.add_namespace(repository_storage, path_was)
unless gitlab_shell.mv_namespace(repository_storage_path, path_was, path)
Rails.logger.error "Exception moving path #{repository_storage_path} from #{path_was} to #{path}"
unless gitlab_shell.mv_namespace(repository_storage, path_was, path)
Rails.logger.error "Exception moving on shard #{repository_storage} from #{path_was} to #{path}"
# if we cannot move namespace directory we should rollback
# db changes in order to prevent out of sync between db and fs
......
class AssureCommitsCountForMergeRequestDiff < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
class MergeRequestDiff < ActiveRecord::Base
self.table_name = 'merge_request_diffs'
include ::EachBatch
end
def up
Gitlab::BackgroundMigration.steal('AddMergeRequestDiffCommitsCount')
MergeRequestDiff.where(commits_count: nil).each_batch(of: 50) do |batch|
range = batch.pluck('MIN(id)', 'MAX(id)').first
Gitlab::BackgroundMigration::AddMergeRequestDiffCommitsCount.new.perform(*range)
end
end
def down
# noop
end
end
......@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180419031622) do
ActiveRecord::Schema.define(version: 20180425131009) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
......
......@@ -298,6 +298,28 @@ Mentioned briefly earlier, but the following things of Runners can be exploited.
We're always looking for contributions that can mitigate these
[Security Considerations](https://docs.gitlab.com/runner/security/).
### Resetting the registration token for a Project
If you think that registration token for a Project was revealed, you should
reset them. It's recommended because such token can be used to register another
Runner to thi Project. It may be next used to obtain the values of secret
variables or clone the project code, that normally may be unavailable for the
attacker.
To reset the token:
1. Go to **Settings > CI/CD** for a specified Project
1. Expand the **General pipelines settings** section
1. Find the **Runner token** form field and click the **Reveal value** button
1. Delete the value and save the form
1. After the page is refreshed, expand the **Runners settings** section
and check the registration token - it should be changed
From now on the old token is not valid anymore and will not allow to register
a new Runner to the project. If you are using any tools to provision and
register new Runners, you should now update the token that is used to the
new value.
## Determining the IP address of a Runner
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17286) in GitLab 10.6.
......
......@@ -31,7 +31,8 @@ with all their related data and be moved into a new GitLab instance.
| GitLab version | Import/Export version |
| ---------------- | --------------------- |
| 10.4 to current | 0.2.2 |
| 10.8 to current | 0.2.3 |
| 10.4 | 0.2.2 |
| 10.3 | 0.2.1 |
| 10.0 | 0.2.0 |
| 9.4.0 | 0.1.8 |
......
......@@ -3,7 +3,7 @@ module Gitlab
extend self
# For every version update, the version history in import_export.md has to be kept up to date.
VERSION = '0.2.2'.freeze
VERSION = '0.2.3'.freeze
FILENAME_LIMIT = 50
def export_path(relative_path:)
......
......@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gitlab 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-18 09:58+0200\n"
"PO-Revision-Date: 2018-04-18 09:58+0200\n"
"POT-Creation-Date: 2018-04-25 17:57+0200\n"
"PO-Revision-Date: 2018-04-25 17:57+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
......@@ -105,6 +105,9 @@ msgstr ""
msgid "%{openOrClose} %{noteable}"
msgstr ""
msgid "%{percent}%% complete"
msgstr ""
msgid "%{storage_name}: failed storage access attempt on host:"
msgid_plural "%{storage_name}: %{failed_attempts} failed storage access attempts:"
msgstr[0] ""
......@@ -113,6 +116,9 @@ msgstr[1] ""
msgid "%{text} is available"
msgstr ""
msgid "%{title} changes"
msgstr ""
msgid "%{type} detected %d vulnerability"
msgid_plural "%{type} detected %d vulnerabilities"
msgstr[0] ""
......@@ -127,6 +133,41 @@ msgstr ""
msgid "- show less"
msgstr ""
msgid "1 %{type} addition"
msgid_plural "%d %{type} additions"
msgstr[0] ""
msgstr[1] ""
msgid "1 %{type} modification"
msgid_plural "%d %{type} modifications"
msgstr[0] ""
msgstr[1] ""
msgid "1 closed issue"
msgid_plural "%d closed issues"
msgstr[0] ""
msgstr[1] ""
msgid "1 closed merge request"
msgid_plural "%d closed merge requests"
msgstr[0] ""
msgstr[1] ""
msgid "1 merged merge request"
msgid_plural "%d merged merge requests"
msgstr[0] ""
msgstr[1] ""
msgid "1 open issue"
msgid_plural "%d open issues"
msgstr[0] ""
msgstr[1] ""
msgid "1 open merge request"
msgid_plural "%d open merge requests"
msgstr[0] ""
msgstr[1] ""
msgid "1 pipeline"
msgid_plural "%d pipelines"
msgstr[0] ""
......@@ -162,6 +203,9 @@ msgstr ""
msgid "Abuse reports"
msgstr ""
msgid "Accepted MR"
msgstr ""
msgid "Access Tokens"
msgstr ""
......@@ -414,6 +458,9 @@ msgstr ""
msgid "Artifacts"
msgstr ""
msgid "Ascending"
msgstr ""
msgid "Assertion consumer service URL"
msgstr ""
......@@ -441,6 +488,9 @@ msgstr ""
msgid "Assignee"
msgstr ""
msgid "Assignee(s)"
msgstr ""
msgid "Attach a file by drag &amp; drop or %{upload_link}"
msgstr ""
......@@ -818,9 +868,39 @@ msgstr ""
msgid "CI/CD for external repo"
msgstr ""
msgid "CICD|An explicit %{ci_file} needs to be specified before you can begin using Continuous Integration and Delivery."
msgstr ""
msgid "CICD|Auto DevOps (Beta)"
msgstr ""
msgid "CICD|Auto DevOps will automatically build, test, and deploy your application based on a predefined Continuous Integration and Delivery configuration."
msgstr ""
msgid "CICD|Disable Auto DevOps"
msgstr ""
msgid "CICD|Enable Auto DevOps"
msgstr ""
msgid "CICD|Follow the instance default to either have Auto DevOps enabled or disabled when there is no project specific %{ci_file}."
msgstr ""
msgid "CICD|Instance default (%{state})"
msgstr ""
msgid "CICD|Jobs"
msgstr ""
msgid "CICD|Learn more about Auto DevOps"
msgstr ""
msgid "CICD|The Auto DevOps pipeline configuration will be used when there is no %{ci_file} in the project."
msgstr ""
msgid "CICD|You need to specify a domain if you want to use Auto Review Apps and Auto Deploy stages."
msgstr ""
msgid "Cancel"
msgstr ""
......@@ -998,6 +1078,9 @@ msgstr ""
msgid "CircuitBreakerApiLink|circuitbreaker api"
msgstr ""
msgid "Clear search input"
msgstr ""
msgid "Click any <strong>project name</strong> in the project list below to navigate to the project milestone."
msgstr ""
......@@ -1028,6 +1111,9 @@ msgstr ""
msgid "Closed"
msgstr ""
msgid "Closed issues"
msgstr ""
msgid "ClusterIntegration|%{appList} was successfully installed on your Kubernetes cluster"
msgstr ""
......@@ -1328,6 +1414,9 @@ msgstr ""
msgid "Collapse"
msgstr ""
msgid "Collapse sidebar"
msgstr ""
msgid "Comment and resolve discussion"
msgstr ""
......@@ -1524,6 +1613,9 @@ msgstr ""
msgid "Contribution guide"
msgstr ""
msgid "Contributions per group member"
msgstr ""
msgid "Contributors"
msgstr ""
......@@ -1632,12 +1724,6 @@ msgstr ""
msgid "CreateTokenToCloneLink|create a personal access token"
msgstr ""
msgid "Creates a new branch from %{branchName}"
msgstr ""
msgid "Creates a new branch from %{branchName} and re-directs to create a new merge request"
msgstr ""
msgid "Creating epic"
msgstr ""
......@@ -1784,6 +1870,9 @@ msgstr ""
msgid "DeployTokens|Your new project deploy token has been created."
msgstr ""
msgid "Descending"
msgstr ""
msgid "Description"
msgstr ""
......@@ -1802,6 +1891,9 @@ msgstr ""
msgid "Disable"
msgstr ""
msgid "Discard changes"
msgstr ""
msgid "Discard draft"
msgstr ""
......@@ -1817,6 +1909,9 @@ msgstr ""
msgid "Documentation for popular identity providers"
msgstr ""
msgid "Domain"
msgstr ""
msgid "Don't show again"
msgstr ""
......@@ -1967,6 +2062,9 @@ msgstr ""
msgid "Environments|You don't have any environments right now."
msgstr ""
msgid "Epic"
msgstr ""
msgid "Epic will be removed! Are you sure?"
msgstr ""
......@@ -2018,6 +2116,9 @@ msgstr ""
msgid "Error updating todo status."
msgstr ""
msgid "Estimated"
msgstr ""
msgid "EventFilterBy|Filter by all"
msgstr ""
......@@ -2048,6 +2149,9 @@ msgstr ""
msgid "Expand"
msgstr ""
msgid "Expand sidebar"
msgstr ""
msgid "Explore projects"
msgstr ""
......@@ -2233,6 +2337,9 @@ msgstr ""
msgid "GeoNodes|Local attachments:"
msgstr ""
msgid "GeoNodes|Local job artifacts:"
msgstr ""
msgid "GeoNodes|New node"
msgstr ""
......@@ -2386,6 +2493,9 @@ msgstr ""
msgid "Got it!"
msgstr ""
msgid "Group ID"
msgstr ""
msgid "GroupRoadmap|Epics let you manage your portfolio of projects more efficiently and with less effort"
msgstr ""
......@@ -2669,6 +2779,9 @@ msgstr ""
msgid "LabelSelect|%{labelsString}, and %{remainingLabelCount} more"
msgstr ""
msgid "LabelSelect|Labels"
msgstr ""
msgid "Labels"
msgstr ""
......@@ -2746,9 +2859,15 @@ msgstr ""
msgid "List your GitHub repositories"
msgstr ""
msgid "Loading contribution stats for group members"
msgstr ""
msgid "Loading the GitLab IDE..."
msgstr ""
msgid "Loading..."
msgstr ""
msgid "Lock"
msgstr ""
......@@ -2794,7 +2913,7 @@ msgstr ""
msgid "March"
msgstr ""
msgid "Mark done"
msgid "Mark todo as done"
msgstr ""
msgid "Maximum git storage failures"
......@@ -2812,6 +2931,9 @@ msgstr ""
msgid "Members will be forwarded here when signing in to your group. Get this from your identity provider, where it can also be called \"SSO Service Location\", \"SAML Token Issuance Endpoint\", or \"SAML 2.0/W-Federation URL\"."
msgstr ""
msgid "Merge Request:"
msgstr ""
msgid "Merge Requests"
msgstr ""
......@@ -2821,6 +2943,9 @@ msgstr ""
msgid "Merge request"
msgstr ""
msgid "Merge requests"
msgstr ""
msgid "Merge requests are a place to propose changes you've made to a project and discuss those changes with others"
msgstr ""
......@@ -2959,6 +3084,9 @@ msgstr ""
msgid "Multiple issue boards"
msgstr ""
msgid "Name"
msgstr ""
msgid "Name new label"
msgstr ""
......@@ -3039,6 +3167,9 @@ msgstr ""
msgid "No file chosen"
msgstr ""
msgid "No files found."
msgstr ""
msgid "No labels created yet."
msgstr ""
......@@ -3183,6 +3314,12 @@ msgstr ""
msgid "Opened"
msgstr ""
msgid "Opened MR"
msgstr ""
msgid "Opened issues"
msgstr ""
msgid "OpenedNDaysAgo|Opened"
msgstr ""
......@@ -3396,6 +3533,12 @@ msgstr ""
msgid "Pipeline|with stages"
msgstr ""
msgid "Planned finish date"
msgstr ""
msgid "Planned start date"
msgstr ""
msgid "PlantUML"
msgstr ""
......@@ -3495,6 +3638,9 @@ msgstr ""
msgid "Programming languages used in this repository"
msgstr ""
msgid "Progress"
msgstr ""
msgid "Project '%{project_name}' is in the process of being deleted."
msgstr ""
......@@ -3726,6 +3872,9 @@ msgstr ""
msgid "PushRule|Committer restriction"
msgstr ""
msgid "Pushed"
msgstr ""
msgid "Quick actions can be used in the issues description and comment boxes."
msgstr ""
......@@ -3831,6 +3980,9 @@ msgstr ""
msgid "Response metrics (Custom)"
msgstr ""
msgid "Retry"
msgstr ""
msgid "Retry this job"
msgstr ""
......@@ -3914,6 +4066,9 @@ msgstr ""
msgid "Search branches and tags"
msgstr ""
msgid "Search files"
msgstr ""
msgid "Search milestones"
msgstr ""
......@@ -3938,6 +4093,9 @@ msgstr ""
msgid "Select Archive Format"
msgstr ""
msgid "Select a namespace to fork the project"
msgstr ""
msgid "Select a timezone"
msgstr ""
......@@ -4075,6 +4233,9 @@ msgstr ""
msgid "Something went wrong when toggling the button"
msgstr ""
msgid "Something went wrong while fetching group member contributions"
msgstr ""
msgid "Something went wrong while fetching the projects."
msgstr ""
......@@ -4204,6 +4365,18 @@ msgstr ""
msgid "Specify the following URL during the Runner setup:"
msgstr ""
msgid "Stage all"
msgstr ""
msgid "Stage changes"
msgstr ""
msgid "Staged"
msgstr ""
msgid "Staged %{type}"
msgstr ""
msgid "StarProject|Star"
msgstr ""
......@@ -4266,6 +4439,9 @@ msgstr[1] ""
msgid "Tags"
msgstr ""
msgid "Tags:"
msgstr ""
msgid "TagsPage|Browse commits"
msgstr ""
......@@ -4557,6 +4733,12 @@ msgstr ""
msgid "Time in seconds GitLab will wait for a response from the external service. When the service does not respond in time, access will be denied."
msgstr ""
msgid "Time remaining"
msgstr ""
msgid "Time spent"
msgstr ""
msgid "Time tracking"
msgstr ""
......@@ -4750,6 +4932,9 @@ msgstr ""
msgid "Todo"
msgstr ""
msgid "Toggle Sidebar"
msgstr ""
msgid "Toggle sidebar"
msgstr ""
......@@ -4759,6 +4944,9 @@ msgstr ""
msgid "ToggleButton|Toggle Status: ON"
msgstr ""
msgid "Total Contributions"
msgstr ""
msgid "Total Time"
msgstr ""
......@@ -4801,6 +4989,21 @@ msgstr ""
msgid "Unresolve discussion"
msgstr ""
msgid "Unstage all"
msgstr ""
msgid "Unstage changes"
msgstr ""
msgid "Unstaged"
msgstr ""
msgid "Unstaged %{type}"
msgstr ""
msgid "Unstaged and staged %{type}"
msgstr ""
msgid "Unstar"
msgstr ""
......@@ -4942,6 +5145,9 @@ msgstr ""
msgid "Weight"
msgstr ""
msgid "Weight %{weight}"
msgstr ""
msgid "When leaving the URL blank, classification labels can still be specified whitout disabling cross project features or performing external authorization checks."
msgstr ""
......@@ -5188,6 +5394,9 @@ msgstr ""
msgid "Your projects"
msgstr ""
msgid "ago"
msgstr ""
msgid "among other things"
msgstr ""
......@@ -5355,6 +5564,12 @@ msgstr[1] ""
msgid "detected no vulnerabilities"
msgstr ""
msgid "disabled"
msgstr ""
msgid "enabled"
msgstr ""
msgid "estimateCommand|%{slash_command} will update the estimated time with the latest command."
msgstr ""
......@@ -5596,6 +5811,9 @@ msgstr ""
msgid "private key does not match certificate."
msgstr ""
msgid "remaining"
msgstr ""
msgid "remove due date"
msgstr ""
......
......@@ -283,7 +283,7 @@ describe ProjectsHelper do
end
end
describe '#sanitized_repo_path' do
describe '#sanitize_repo_path' do
let(:project) { create(:project, :repository) }
let(:storage_path) { Gitlab.config.repositories.storages.default.legacy_disk_path }
......
require 'spec_helper'
require Rails.root.join('db', 'migrate', '20180425131009_assure_commits_count_for_merge_request_diff.rb')
describe AssureCommitsCountForMergeRequestDiff, :migration, :sidekiq, :redis do
let(:migration) { spy('migration') }
before do
allow(Gitlab::BackgroundMigration::AddMergeRequestDiffCommitsCount)
.to receive(:new).and_return(migration)
end
context 'when there are still unmigrated commit_counts afterwards' do
let(:namespaces) { table('namespaces') }
let(:projects) { table('projects') }
let(:merge_requests) { table('merge_requests') }
let(:diffs) { table('merge_request_diffs') }
before do
namespace = namespaces.create(name: 'foo', path: 'foo')
project = projects.create!(namespace_id: namespace.id)
merge_request = merge_requests.create!(source_branch: 'x', target_branch: 'y', target_project_id: project.id)
diffs.create!(commits_count: nil, merge_request_id: merge_request.id)
diffs.create!(commits_count: nil, merge_request_id: merge_request.id)
end
it 'migrates commit_counts sequentially in batches' do
migrate!
expect(migration).to have_received(:perform).once
end
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