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
6fb978f0
Commit
6fb978f0
authored
Dec 08, 2020
by
David O'Regan
Committed by
Nicolò Maria Mezzopera
Dec 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove highlight_current_diff_row feature flag
parent
f8186f8b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
35 deletions
+21
-35
app/assets/javascripts/diffs/components/diff_file_row.vue
app/assets/javascripts/diffs/components/diff_file_row.vue
+0
-4
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+0
-1
changelogs/unreleased/268282-remove-feature-flag.yml
changelogs/unreleased/268282-remove-feature-flag.yml
+5
-0
config/feature_flags/development/highlight_current_diff_row.yml
.../feature_flags/development/highlight_current_diff_row.yml
+0
-8
spec/frontend/diffs/components/diff_file_row_spec.js
spec/frontend/diffs/components/diff_file_row_spec.js
+16
-22
No files found.
app/assets/javascripts/diffs/components/diff_file_row.vue
View file @
6fb978f0
...
...
@@ -41,10 +41,6 @@ export default {
return
!
this
.
hideFileStats
&&
this
.
file
.
type
===
'
blob
'
;
},
fileClasses
()
{
if
(
!
this
.
glFeatures
.
highlightCurrentDiffRow
)
{
return
''
;
}
return
this
.
file
.
type
===
'
blob
'
&&
!
this
.
viewedFiles
[
this
.
file
.
fileHash
]
?
'
gl-font-weight-bold
'
:
''
;
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
6fb978f0
...
...
@@ -36,7 +36,6 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
push_frontend_feature_flag
(
:hide_jump_to_next_unresolved_in_threads
,
default_enabled:
true
)
push_frontend_feature_flag
(
:merge_request_widget_graphql
,
@project
)
push_frontend_feature_flag
(
:unified_diff_components
,
@project
)
push_frontend_feature_flag
(
:highlight_current_diff_row
,
@project
)
push_frontend_feature_flag
(
:default_merge_ref_for_diffs
,
@project
)
push_frontend_feature_flag
(
:core_security_mr_widget
,
@project
,
default_enabled:
true
)
push_frontend_feature_flag
(
:core_security_mr_widget_counts
,
@project
)
...
...
changelogs/unreleased/268282-remove-feature-flag.yml
0 → 100644
View file @
6fb978f0
---
title
:
Enable file tree highlighting by default
merge_request
:
49356
author
:
type
:
changed
config/feature_flags/development/highlight_current_diff_row.yml
deleted
100644 → 0
View file @
f8186f8b
---
name
:
highlight_current_diff_row
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27937
rollout_issue_url
:
milestone
:
'
13.4'
type
:
development
group
:
group::source code
default_enabled
:
false
spec/frontend/diffs/components/diff_file_row_spec.js
View file @
6fb978f0
...
...
@@ -7,12 +7,9 @@ import ChangedFileIcon from '~/vue_shared/components/changed_file_icon.vue';
describe
(
'
Diff File Row component
'
,
()
=>
{
let
wrapper
;
const
createComponent
=
(
props
=
{}
,
highlightCurrentDiffRow
=
false
)
=>
{
const
createComponent
=
(
props
=
{})
=>
{
wrapper
=
shallowMount
(
DiffFileRow
,
{
propsData
:
{
...
props
},
provide
:
{
glFeatures
:
{
highlightCurrentDiffRow
},
},
});
};
...
...
@@ -60,16 +57,15 @@ describe('Diff File Row component', () => {
});
it
.
each
`
f
eatures | f
ileType | isViewed | expected
${
{
highlightCurrentDiffRow
:
true
}
} |
${
'
blob
'
}
|
${
false
}
|
${
'
gl-font-weight-bold
'
}
${
{}}
|
$
{
'
blob
'
}
|
${
true
}
|
${
''
}
${
{}}
|
$
{
'
tree
'
}
|
${
false
}
|
${
''
}
${
{}}
|
$
{
'
tree
'
}
|
${
true
}
|
${
''
}
fileType | isViewed | expected
${
'
blob
'
}
|
${
false
}
|
${
'
gl-font-weight-bold
'
}
${
'
blob
'
}
|
${
true
}
|
${
''
}
${
'
tree
'
}
|
${
false
}
|
${
''
}
${
'
tree
'
}
|
${
true
}
|
${
''
}
`
(
'
with (features="$features", fileType="$fileType", isViewed=$isViewed), sets fileClasses="$expected"
'
,
({
features
,
fileType
,
isViewed
,
expected
})
=>
{
createComponent
(
{
'
with (fileType="$fileType", isViewed=$isViewed), sets fileClasses="$expected"
'
,
({
fileType
,
isViewed
,
expected
})
=>
{
createComponent
({
file
:
{
type
:
fileType
,
fileHash
:
'
#123456789
'
,
...
...
@@ -77,9 +73,7 @@ describe('Diff File Row component', () => {
level
:
0
,
hideFileStats
:
false
,
viewedFiles
:
isViewed
?
{
'
#123456789
'
:
true
}
:
{},
},
features
.
highlightCurrentDiffRow
,
);
});
expect
(
wrapper
.
find
(
FileRow
).
props
(
'
fileClasses
'
)).
toBe
(
expected
);
},
);
...
...
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