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
db48b8c3
Commit
db48b8c3
authored
Jun 21, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
772911ad
4dcbee4d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
2 deletions
+55
-2
app/assets/javascripts/notes/components/diff_with_note.vue
app/assets/javascripts/notes/components/diff_with_note.vue
+6
-1
changelogs/unreleased/59028-fix-extra-plus-in-diffs.yml
changelogs/unreleased/59028-fix-extra-plus-in-diffs.yml
+5
-0
changelogs/unreleased/db-update-geo-nodes-primary.yml
changelogs/unreleased/db-update-geo-nodes-primary.yml
+5
-0
changelogs/unreleased/paginate-license-management.yml
changelogs/unreleased/paginate-license-management.yml
+5
-0
db/post_migrate/20190618171120_update_geo_nodes_primary.rb
db/post_migrate/20190618171120_update_geo_nodes_primary.rb
+20
-0
db/schema.rb
db/schema.rb
+1
-1
spec/javascripts/notes/components/diff_with_note_spec.js
spec/javascripts/notes/components/diff_with_note_spec.js
+13
-0
No files found.
app/assets/javascripts/notes/components/diff_with_note.vue
View file @
db48b8c3
...
...
@@ -7,6 +7,8 @@ import { GlSkeletonLoading } from '@gitlab/ui';
import
{
getDiffMode
}
from
'
~/diffs/store/utils
'
;
import
{
diffViewerModes
}
from
'
~/ide/constants
'
;
const
FIRST_CHAR_REGEX
=
/^
(\+
|-|
)
/
;
export
default
{
components
:
{
DiffFileHeader
,
...
...
@@ -59,6 +61,9 @@ export default {
this
.
error
=
true
;
});
},
trimChar
(
line
)
{
return
line
.
replace
(
FIRST_CHAR_REGEX
,
''
);
},
},
userColorSchemeClass
:
window
.
gon
.
user_color_scheme
,
};
...
...
@@ -83,7 +88,7 @@ export default {
>
<td
:class=
"line.type"
class=
"diff-line-num old_line"
>
{{
line
.
old_line
}}
</td>
<td
:class=
"line.type"
class=
"diff-line-num new_line"
>
{{
line
.
new_line
}}
</td>
<td
:class=
"line.type"
class=
"line_content"
v-html=
"
line.rich_text
"
></td>
<td
:class=
"line.type"
class=
"line_content"
v-html=
"
trimChar(line.rich_text)
"
></td>
</tr>
</
template
>
<tr
v-if=
"!hasTruncatedDiffLines"
class=
"line_holder line-holder-placeholder"
>
...
...
changelogs/unreleased/59028-fix-extra-plus-in-diffs.yml
0 → 100644
View file @
db48b8c3
---
title
:
Remove duplicate trailing +/- char in merge request discussions
merge_request
:
29518
author
:
type
:
fixed
changelogs/unreleased/db-update-geo-nodes-primary.yml
0 → 100644
View file @
db48b8c3
---
title
:
Disallow `NULL` values for `geo_nodes.primary` column
merge_request
:
29818
author
:
Arun Kumar Mohan
type
:
other
changelogs/unreleased/paginate-license-management.yml
0 → 100644
View file @
db48b8c3
---
title
:
Backport and Docs for Paginate license management and add license search
merge_request
:
27602
author
:
type
:
changed
db/post_migrate/20190618171120_update_geo_nodes_primary.rb
0 → 100644
View file @
db48b8c3
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
UpdateGeoNodesPrimary
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
change_column_default
(
:geo_nodes
,
:primary
,
false
)
change_column_null
(
:geo_nodes
,
:primary
,
false
,
false
)
end
def
down
change_column_default
(
:geo_nodes
,
:primary
,
nil
)
change_column_null
(
:geo_nodes
,
:primary
,
true
)
end
end
db/schema.rb
View file @
db48b8c3
...
...
@@ -1391,7 +1391,7 @@ ActiveRecord::Schema.define(version: 20190619175843) do
end
create_table
"geo_nodes"
,
id: :serial
,
force: :cascade
do
|
t
|
t
.
boolean
"primary"
t
.
boolean
"primary"
,
default:
false
,
null:
false
t
.
integer
"oauth_application_id"
t
.
boolean
"enabled"
,
default:
true
,
null:
false
t
.
string
"access_key"
...
...
spec/javascripts/notes/components/diff_with_note_spec.js
View file @
db48b8c3
...
...
@@ -47,6 +47,19 @@ describe('diff_with_note', () => {
vm
=
mountComponentWithStore
(
Component
,
{
props
,
store
});
});
it
(
'
removes trailing "+" char
'
,
()
=>
{
const
richText
=
vm
.
$el
.
querySelectorAll
(
'
.line_holder
'
)[
4
].
querySelector
(
'
.line_content
'
)
.
textContent
[
0
];
expect
(
richText
).
not
.
toEqual
(
'
+
'
);
});
it
(
'
removes trailing "-" char
'
,
()
=>
{
const
richText
=
vm
.
$el
.
querySelector
(
'
#LC13
'
).
parentNode
.
textContent
[
0
];
expect
(
richText
).
not
.
toEqual
(
'
-
'
);
});
it
(
'
shows text diff
'
,
()
=>
{
expect
(
selectors
.
container
).
toHaveClass
(
'
text-file
'
);
expect
(
selectors
.
diffTable
).
toExist
();
...
...
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