Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d88843f3
Commit
d88843f3
authored
Nov 14, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
d8c06be4
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
138 additions
and
118 deletions
+138
-118
Gemfile.lock
Gemfile.lock
+2
-2
app/assets/javascripts/behaviors/preview_markdown.js
app/assets/javascripts/behaviors/preview_markdown.js
+16
-24
app/assets/javascripts/compare_autocomplete.js
app/assets/javascripts/compare_autocomplete.js
+8
-10
app/assets/javascripts/new_commit_form.js
app/assets/javascripts/new_commit_form.js
+2
-3
changelogs/unreleased/remove_var_from_new_commit_form_js.yml
changelogs/unreleased/remove_var_from_new_commit_form_js.yml
+5
-0
changelogs/unreleased/remove_var_from_preview_markdown_js.yml
...gelogs/unreleased/remove_var_from_preview_markdown_js.yml
+5
-0
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+3
-0
doc/administration/high_availability/README.md
doc/administration/high_availability/README.md
+85
-65
qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb
...r_ui/3_create/repository/add_list_delete_branches_spec.rb
+12
-14
No files found.
Gemfile.lock
View file @
d88843f3
...
@@ -50,8 +50,8 @@ GEM
...
@@ -50,8 +50,8 @@ GEM
i18n (>= 0.7, < 2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
minitest (~> 5.1)
tzinfo (~> 1.1)
tzinfo (~> 1.1)
acts-as-taggable-on (6.
0
.0)
acts-as-taggable-on (6.
5
.0)
activerecord (
~> 5.0
)
activerecord (
>= 5.0, < 6.1
)
adamantium (0.2.0)
adamantium (0.2.0)
ice_nine (~> 0.11.0)
ice_nine (~> 0.11.0)
memoizable (~> 0.4.0)
memoizable (~> 0.4.0)
...
...
app/assets/javascripts/behaviors/preview_markdown.js
View file @
d88843f3
/* eslint-disable func-names
, no-var
*/
/* eslint-disable func-names */
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
...
@@ -12,11 +12,8 @@ import { __ } from '~/locale';
...
@@ -12,11 +12,8 @@ import { __ } from '~/locale';
// more than `x` users are referenced.
// more than `x` users are referenced.
//
//
var
lastTextareaPreviewed
;
let
lastTextareaHeight
;
var
lastTextareaHeight
=
null
;
let
lastTextareaPreviewed
;
var
markdownPreview
;
var
previewButtonSelector
;
var
writeButtonSelector
;
function
MarkdownPreview
()
{}
function
MarkdownPreview
()
{}
...
@@ -27,14 +24,13 @@ MarkdownPreview.prototype.emptyMessage = __('Nothing to preview.');
...
@@ -27,14 +24,13 @@ MarkdownPreview.prototype.emptyMessage = __('Nothing to preview.');
MarkdownPreview
.
prototype
.
ajaxCache
=
{};
MarkdownPreview
.
prototype
.
ajaxCache
=
{};
MarkdownPreview
.
prototype
.
showPreview
=
function
(
$form
)
{
MarkdownPreview
.
prototype
.
showPreview
=
function
(
$form
)
{
var
mdText
;
const
preview
=
$form
.
find
(
'
.js-md-preview
'
);
var
preview
=
$form
.
find
(
'
.js-md-preview
'
);
const
url
=
preview
.
data
(
'
url
'
);
var
url
=
preview
.
data
(
'
url
'
);
if
(
preview
.
hasClass
(
'
md-preview-loading
'
))
{
if
(
preview
.
hasClass
(
'
md-preview-loading
'
))
{
return
;
return
;
}
}
mdText
=
$form
.
find
(
'
textarea.markdown-area
'
).
val
();
const
mdText
=
$form
.
find
(
'
textarea.markdown-area
'
).
val
();
if
(
mdText
===
undefined
)
{
if
(
mdText
===
undefined
)
{
return
;
return
;
...
@@ -46,7 +42,7 @@ MarkdownPreview.prototype.showPreview = function($form) {
...
@@ -46,7 +42,7 @@ MarkdownPreview.prototype.showPreview = function($form) {
}
else
{
}
else
{
preview
.
addClass
(
'
md-preview-loading
'
).
text
(
__
(
'
Loading...
'
));
preview
.
addClass
(
'
md-preview-loading
'
).
text
(
__
(
'
Loading...
'
));
this
.
fetchMarkdownPreview
(
mdText
,
url
,
response
=>
{
this
.
fetchMarkdownPreview
(
mdText
,
url
,
response
=>
{
var
body
;
let
body
;
if
(
response
.
body
.
length
>
0
)
{
if
(
response
.
body
.
length
>
0
)
{
({
body
}
=
response
);
({
body
}
=
response
);
}
else
{
}
else
{
...
@@ -91,8 +87,7 @@ MarkdownPreview.prototype.hideReferencedUsers = function($form) {
...
@@ -91,8 +87,7 @@ MarkdownPreview.prototype.hideReferencedUsers = function($form) {
};
};
MarkdownPreview
.
prototype
.
renderReferencedUsers
=
function
(
users
,
$form
)
{
MarkdownPreview
.
prototype
.
renderReferencedUsers
=
function
(
users
,
$form
)
{
var
referencedUsers
;
const
referencedUsers
=
$form
.
find
(
'
.referenced-users
'
);
referencedUsers
=
$form
.
find
(
'
.referenced-users
'
);
if
(
referencedUsers
.
length
)
{
if
(
referencedUsers
.
length
)
{
if
(
users
.
length
>=
this
.
referenceThreshold
)
{
if
(
users
.
length
>=
this
.
referenceThreshold
)
{
referencedUsers
.
show
();
referencedUsers
.
show
();
...
@@ -108,8 +103,7 @@ MarkdownPreview.prototype.hideReferencedCommands = function($form) {
...
@@ -108,8 +103,7 @@ MarkdownPreview.prototype.hideReferencedCommands = function($form) {
};
};
MarkdownPreview
.
prototype
.
renderReferencedCommands
=
function
(
commands
,
$form
)
{
MarkdownPreview
.
prototype
.
renderReferencedCommands
=
function
(
commands
,
$form
)
{
var
referencedCommands
;
const
referencedCommands
=
$form
.
find
(
'
.referenced-commands
'
);
referencedCommands
=
$form
.
find
(
'
.referenced-commands
'
);
if
(
commands
.
length
>
0
)
{
if
(
commands
.
length
>
0
)
{
referencedCommands
.
html
(
commands
);
referencedCommands
.
html
(
commands
);
referencedCommands
.
show
();
referencedCommands
.
show
();
...
@@ -119,15 +113,15 @@ MarkdownPreview.prototype.renderReferencedCommands = function(commands, $form) {
...
@@ -119,15 +113,15 @@ MarkdownPreview.prototype.renderReferencedCommands = function(commands, $form) {
}
}
};
};
markdownPreview
=
new
MarkdownPreview
();
const
markdownPreview
=
new
MarkdownPreview
();
previewButtonSelector
=
'
.js-md-preview-button
'
;
const
previewButtonSelector
=
'
.js-md-preview-button
'
;
writeButtonSelector
=
'
.js-md-write-button
'
;
const
writeButtonSelector
=
'
.js-md-write-button
'
;
lastTextareaPreviewed
=
null
;
lastTextareaPreviewed
=
null
;
const
markdownToolbar
=
$
(
'
.md-header-toolbar
'
);
const
markdownToolbar
=
$
(
'
.md-header-toolbar
'
);
$
.
fn
.
setupMarkdownPreview
=
function
()
{
$
.
fn
.
setupMarkdownPreview
=
function
()
{
var
$form
=
$
(
this
);
const
$form
=
$
(
this
);
$form
.
find
(
'
textarea.markdown-area
'
).
on
(
'
input
'
,
()
=>
{
$form
.
find
(
'
textarea.markdown-area
'
).
on
(
'
input
'
,
()
=>
{
markdownPreview
.
hideReferencedUsers
(
$form
);
markdownPreview
.
hideReferencedUsers
(
$form
);
});
});
...
@@ -188,7 +182,7 @@ $(document).on('markdown-preview:hide', (e, $form) => {
...
@@ -188,7 +182,7 @@ $(document).on('markdown-preview:hide', (e, $form) => {
});
});
$
(
document
).
on
(
'
markdown-preview:toggle
'
,
(
e
,
keyboardEvent
)
=>
{
$
(
document
).
on
(
'
markdown-preview:toggle
'
,
(
e
,
keyboardEvent
)
=>
{
var
$target
;
let
$target
;
$target
=
$
(
keyboardEvent
.
target
);
$target
=
$
(
keyboardEvent
.
target
);
if
(
$target
.
is
(
'
textarea.markdown-area
'
))
{
if
(
$target
.
is
(
'
textarea.markdown-area
'
))
{
$
(
document
).
triggerHandler
(
'
markdown-preview:show
'
,
[
$target
.
closest
(
'
form
'
)]);
$
(
document
).
triggerHandler
(
'
markdown-preview:show
'
,
[
$target
.
closest
(
'
form
'
)]);
...
@@ -201,16 +195,14 @@ $(document).on('markdown-preview:toggle', (e, keyboardEvent) => {
...
@@ -201,16 +195,14 @@ $(document).on('markdown-preview:toggle', (e, keyboardEvent) => {
});
});
$
(
document
).
on
(
'
click
'
,
previewButtonSelector
,
function
(
e
)
{
$
(
document
).
on
(
'
click
'
,
previewButtonSelector
,
function
(
e
)
{
var
$form
;
e
.
preventDefault
();
e
.
preventDefault
();
$form
=
$
(
this
).
closest
(
'
form
'
);
const
$form
=
$
(
this
).
closest
(
'
form
'
);
$
(
document
).
triggerHandler
(
'
markdown-preview:show
'
,
[
$form
]);
$
(
document
).
triggerHandler
(
'
markdown-preview:show
'
,
[
$form
]);
});
});
$
(
document
).
on
(
'
click
'
,
writeButtonSelector
,
function
(
e
)
{
$
(
document
).
on
(
'
click
'
,
writeButtonSelector
,
function
(
e
)
{
var
$form
;
e
.
preventDefault
();
e
.
preventDefault
();
$form
=
$
(
this
).
closest
(
'
form
'
);
const
$form
=
$
(
this
).
closest
(
'
form
'
);
$
(
document
).
triggerHandler
(
'
markdown-preview:hide
'
,
[
$form
]);
$
(
document
).
triggerHandler
(
'
markdown-preview:hide
'
,
[
$form
]);
});
});
...
...
app/assets/javascripts/compare_autocomplete.js
View file @
d88843f3
/* eslint-disable func-names,
one-var, no-var,
no-else-return */
/* eslint-disable func-names, no-else-return */
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
{
__
}
from
'
./locale
'
;
import
{
__
}
from
'
./locale
'
;
...
@@ -8,9 +8,8 @@ import { capitalizeFirstCharacter } from './lib/utils/text_utility';
...
@@ -8,9 +8,8 @@ import { capitalizeFirstCharacter } from './lib/utils/text_utility';
export
default
function
initCompareAutocomplete
(
limitTo
=
null
,
clickHandler
=
()
=>
{})
{
export
default
function
initCompareAutocomplete
(
limitTo
=
null
,
clickHandler
=
()
=>
{})
{
$
(
'
.js-compare-dropdown
'
).
each
(
function
()
{
$
(
'
.js-compare-dropdown
'
).
each
(
function
()
{
var
$dropdown
,
selected
;
const
$dropdown
=
$
(
this
);
$dropdown
=
$
(
this
);
const
selected
=
$dropdown
.
data
(
'
selected
'
);
selected
=
$dropdown
.
data
(
'
selected
'
);
const
$dropdownContainer
=
$dropdown
.
closest
(
'
.dropdown
'
);
const
$dropdownContainer
=
$dropdown
.
closest
(
'
.dropdown
'
);
const
$fieldInput
=
$
(
`input[name="
${
$dropdown
.
data
(
'
fieldName
'
)}
"]`
,
$dropdownContainer
);
const
$fieldInput
=
$
(
`input[name="
${
$dropdown
.
data
(
'
fieldName
'
)}
"]`
,
$dropdownContainer
);
const
$filterInput
=
$
(
'
input[type="search"]
'
,
$dropdownContainer
);
const
$filterInput
=
$
(
'
input[type="search"]
'
,
$dropdownContainer
);
...
@@ -44,17 +43,16 @@ export default function initCompareAutocomplete(limitTo = null, clickHandler = (
...
@@ -44,17 +43,16 @@ export default function initCompareAutocomplete(limitTo = null, clickHandler = (
fieldName
:
$dropdown
.
data
(
'
fieldName
'
),
fieldName
:
$dropdown
.
data
(
'
fieldName
'
),
filterInput
:
'
input[type="search"]
'
,
filterInput
:
'
input[type="search"]
'
,
renderRow
(
ref
)
{
renderRow
(
ref
)
{
var
link
;
const
link
=
$
(
'
<a />
'
)
.
attr
(
'
href
'
,
'
#
'
)
.
addClass
(
ref
===
selected
?
'
is-active
'
:
''
)
.
text
(
ref
)
.
attr
(
'
data-ref
'
,
ref
);
if
(
ref
.
header
!=
null
)
{
if
(
ref
.
header
!=
null
)
{
return
$
(
'
<li />
'
)
return
$
(
'
<li />
'
)
.
addClass
(
'
dropdown-header
'
)
.
addClass
(
'
dropdown-header
'
)
.
text
(
ref
.
header
);
.
text
(
ref
.
header
);
}
else
{
}
else
{
link
=
$
(
'
<a />
'
)
.
attr
(
'
href
'
,
'
#
'
)
.
addClass
(
ref
===
selected
?
'
is-active
'
:
''
)
.
text
(
ref
)
.
attr
(
'
data-ref
'
,
ref
);
return
$
(
'
<li />
'
).
append
(
link
);
return
$
(
'
<li />
'
).
append
(
link
);
}
}
},
},
...
...
app/assets/javascripts/new_commit_form.js
View file @
d88843f3
/* eslint-disable no-
var, no-
return-assign */
/* eslint-disable no-return-assign */
export
default
class
NewCommitForm
{
export
default
class
NewCommitForm
{
constructor
(
form
)
{
constructor
(
form
)
{
this
.
form
=
form
;
this
.
form
=
form
;
...
@@ -11,8 +11,7 @@ export default class NewCommitForm {
...
@@ -11,8 +11,7 @@ export default class NewCommitForm {
this
.
renderDestination
();
this
.
renderDestination
();
}
}
renderDestination
()
{
renderDestination
()
{
var
different
;
const
different
=
this
.
branchName
.
val
()
!==
this
.
originalBranch
.
val
();
different
=
this
.
branchName
.
val
()
!==
this
.
originalBranch
.
val
();
if
(
different
)
{
if
(
different
)
{
this
.
createMergeRequestContainer
.
show
();
this
.
createMergeRequestContainer
.
show
();
if
(
!
this
.
wasDifferent
)
{
if
(
!
this
.
wasDifferent
)
{
...
...
changelogs/unreleased/remove_var_from_new_commit_form_js.yml
0 → 100644
View file @
d88843f3
---
title
:
Remove var from new_commit_form.js
merge_request
:
20095
author
:
Lee Tickett
type
:
other
changelogs/unreleased/remove_var_from_preview_markdown_js.yml
0 → 100644
View file @
d88843f3
---
title
:
Remove var from preview_markdown.js
merge_request
:
20115
author
:
Lee Tickett
type
:
other
doc/administration/gitaly/index.md
View file @
d88843f3
...
@@ -559,6 +559,9 @@ a few things that you need to do:
...
@@ -559,6 +559,9 @@ a few things that you need to do:
including
[
incremental logging
](
../job_logs.md#new-incremental-logging-architecture
)
.
including
[
incremental logging
](
../job_logs.md#new-incremental-logging-architecture
)
.
1.
Configure
[
object storage for LFS objects
](
../lfs/lfs_administration.md#storing-lfs-objects-in-remote-object-storage
)
.
1.
Configure
[
object storage for LFS objects
](
../lfs/lfs_administration.md#storing-lfs-objects-in-remote-object-storage
)
.
1.
Configure
[
object storage for uploads
](
../uploads.md#using-object-storage-core-only
)
.
1.
Configure
[
object storage for uploads
](
../uploads.md#using-object-storage-core-only
)
.
1.
Configure
[
object storage for Merge Request Diffs
](
../merge_request_diffs.md#using-object-storage
)
.
1.
Configure
[
object storage for Packages
](
../packages/index.md#using-object-storage
)
(
Optional
Feature).
1.
Configure
[
object storage for Dependency Proxy
](
../packages/dependency_proxy.md#using-object-storage
)
(
Optional
Feature).
NOTE:
**Note:**
NOTE:
**Note:**
One current feature of GitLab that still requires a shared directory (NFS) is
One current feature of GitLab that still requires a shared directory (NFS) is
...
...
doc/administration/high_availability/README.md
View file @
d88843f3
This diff is collapsed.
Click to expand it.
qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb
View file @
d88843f3
...
@@ -66,24 +66,22 @@ module QA
...
@@ -66,24 +66,22 @@ module QA
expect
(
page
).
to
have_content
(
commit_message_of_second_branch
)
expect
(
page
).
to
have_content
(
commit_message_of_second_branch
)
expect
(
page
).
to
have_content
(
commit_message_of_third_branch
)
expect
(
page
).
to
have_content
(
commit_message_of_third_branch
)
Page
::
Project
::
Branches
::
Show
.
perform
do
|
branches
|
Page
::
Project
::
Branches
::
Show
.
perform
do
|
branches_page
|
expect
(
branches
).
to
have_branch_with_badge
(
second_branch
,
'merged'
)
expect
(
branches_page
).
to
have_branch_with_badge
(
second_branch
,
'merged'
)
end
Page
::
Project
::
Branches
::
Show
.
perform
do
|
branches_view
|
branches_page
.
delete_branch
(
third_branch
)
branches_view
.
delete_branch
(
third_branch
)
expect
(
branches_view
).
to
have_no_branch
(
third_branch
)
end
Page
::
Project
::
Branches
::
Show
.
perform
(
&
:delete_merged_branches
)
expect
(
branches_page
).
to
have_no_branch
(
third_branch
)
expect
(
page
).
to
have_content
(
branches_page
.
delete_merged_branches
expect
(
branches_page
).
to
have_content
(
'Merged branches are being deleted. This can take some time depending on the number of branches. Please refresh the page to see changes.'
'Merged branches are being deleted. This can take some time depending on the number of branches. Please refresh the page to see changes.'
)
)
page
.
refresh
branches_
page
.
refresh
Page
::
Project
::
Branches
::
Show
.
perform
do
|
branches_view
|
expect
(
branches_
view
).
to
have_no_branch
(
second_branch
,
reload:
true
)
expect
(
branches_
page
).
to
have_no_branch
(
second_branch
,
reload:
true
)
end
end
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment