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
51eb28ac
Commit
51eb28ac
authored
Apr 02, 2020
by
George Tsiolis
Committed by
Florie Guibert
Apr 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove scoped labels documentation link
Remove docs link and icon in scoped labels
parent
a3acb758
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
7 additions
and
116 deletions
+7
-116
app/assets/javascripts/boards/components/board_form.vue
app/assets/javascripts/boards/components/board_form.vue
+0
-6
app/assets/javascripts/boards/components/boards_selector.vue
app/assets/javascripts/boards/components/boards_selector.vue
+0
-6
app/assets/javascripts/boards/components/issue_card_inner.vue
...assets/javascripts/boards/components/issue_card_inner.vue
+0
-4
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+1
-13
app/assets/javascripts/vue_shared/components/sidebar/labels_select/base.vue
...ipts/vue_shared/components/sidebar/labels_select/base.vue
+0
-7
app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_button.vue
...ared/components/sidebar/labels_select/dropdown_button.vue
+0
-6
app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_value.vue
...hared/components/sidebar/labels_select/dropdown_value.vue
+0
-6
app/assets/javascripts/vue_shared/components/sidebar/labels_select_vue/dropdown_value.vue
...d/components/sidebar/labels_select_vue/dropdown_value.vue
+0
-1
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+0
-13
app/assets/stylesheets/pages/labels.scss
app/assets/stylesheets/pages/labels.scss
+1
-2
app/assets/stylesheets/pages/milestone.scss
app/assets/stylesheets/pages/milestone.scss
+0
-4
app/assets/stylesheets/pages/notes.scss
app/assets/stylesheets/pages/notes.scss
+1
-2
app/views/shared/boards/components/_board.html.haml
app/views/shared/boards/components/_board.html.haml
+1
-2
app/views/shared/boards/components/sidebar/_labels.html.haml
app/views/shared/boards/components/sidebar/_labels.html.haml
+1
-2
ee/app/assets/javascripts/boards/components/board_scope.vue
ee/app/assets/javascripts/boards/components/board_scope.vue
+0
-6
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
+0
-2
ee/app/assets/javascripts/epic/components/sidebar_items/sidebar_labels.vue
...ascripts/epic/components/sidebar_items/sidebar_labels.vue
+0
-2
ee/app/helpers/ee/boards_helper.rb
ee/app/helpers/ee/boards_helper.rb
+0
-1
ee/app/helpers/ee/labels_helper.rb
ee/app/helpers/ee/labels_helper.rb
+1
-10
ee/app/presenters/epic_presenter.rb
ee/app/presenters/epic_presenter.rb
+0
-1
ee/spec/fixtures/api/schemas/epic_meta_data.json
ee/spec/fixtures/api/schemas/epic_meta_data.json
+1
-4
ee/spec/frontend/boards/components/board_settings_sidebar_spec.js
...frontend/boards/components/board_settings_sidebar_spec.js
+0
-1
ee/spec/helpers/ee/labels_helper_spec.rb
ee/spec/helpers/ee/labels_helper_spec.rb
+0
-1
ee/spec/lib/banzai/filter/label_reference_filter_spec.rb
ee/spec/lib/banzai/filter/label_reference_filter_spec.rb
+0
-3
spec/frontend/labels_select_spec.js
spec/frontend/labels_select_spec.js
+0
-11
No files found.
app/assets/javascripts/boards/components/board_form.vue
View file @
51eb28ac
...
@@ -58,11 +58,6 @@ export default {
...
@@ -58,11 +58,6 @@ export default {
required
:
false
,
required
:
false
,
default
:
false
,
default
:
false
,
},
},
scopedLabelsDocumentationLink
:
{
type
:
String
,
required
:
false
,
default
:
'
#
'
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -208,7 +203,6 @@ export default {
...
@@ -208,7 +203,6 @@ export default {
:can-admin-board=
"canAdminBoard"
:can-admin-board=
"canAdminBoard"
:milestone-path=
"milestonePath"
:milestone-path=
"milestonePath"
:labels-path=
"labelsPath"
:labels-path=
"labelsPath"
:scoped-labels-documentation-link=
"scopedLabelsDocumentationLink"
:enable-scoped-labels=
"enableScopedLabels"
:enable-scoped-labels=
"enableScopedLabels"
:project-id=
"projectId"
:project-id=
"projectId"
:group-id=
"groupId"
:group-id=
"groupId"
...
...
app/assets/javascripts/boards/components/boards_selector.vue
View file @
51eb28ac
...
@@ -86,11 +86,6 @@ export default {
...
@@ -86,11 +86,6 @@ export default {
required
:
false
,
required
:
false
,
default
:
false
,
default
:
false
,
},
},
scopedLabelsDocumentationLink
:
{
type
:
String
,
required
:
false
,
default
:
'
#
'
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -348,7 +343,6 @@ export default {
...
@@ -348,7 +343,6 @@ export default {
:scoped-issue-board-feature-enabled=
"scopedIssueBoardFeatureEnabled"
:scoped-issue-board-feature-enabled=
"scopedIssueBoardFeatureEnabled"
:weights=
"weights"
:weights=
"weights"
:enable-scoped-labels=
"enabledScopedLabels"
:enable-scoped-labels=
"enabledScopedLabels"
:scoped-labels-documentation-link=
"scopedLabelsDocumentationLink"
/>
/>
</span>
</span>
</div>
</div>
...
...
app/assets/javascripts/boards/components/issue_card_inner.vue
View file @
51eb28ac
...
@@ -102,9 +102,6 @@ export default {
...
@@ -102,9 +102,6 @@ export default {
orderedLabels
()
{
orderedLabels
()
{
return
sortBy
(
this
.
issue
.
labels
.
filter
(
this
.
isNonListLabel
),
'
title
'
);
return
sortBy
(
this
.
issue
.
labels
.
filter
(
this
.
isNonListLabel
),
'
title
'
);
},
},
helpLink
()
{
return
boardsStore
.
scopedLabels
.
helpLink
;
},
},
},
methods
:
{
methods
:
{
isIndexLessThanlimit
(
index
)
{
isIndexLessThanlimit
(
index
)
{
...
@@ -181,7 +178,6 @@ export default {
...
@@ -181,7 +178,6 @@ export default {
:description=
"label.description"
:description=
"label.description"
size=
"sm"
size=
"sm"
:scoped=
"showScopedLabel(label)"
:scoped=
"showScopedLabel(label)"
:scoped-labels-documentation-link=
"helpLink"
@
click=
"filterByLabel(label)"
@
click=
"filterByLabel(label)"
/>
/>
</
template
>
</
template
>
...
...
app/assets/javascripts/labels_select.js
View file @
51eb28ac
...
@@ -55,7 +55,6 @@ export default class LabelsSelect {
...
@@ -55,7 +55,6 @@ export default class LabelsSelect {
})
})
.
get
();
.
get
();
const
scopedLabels
=
$dropdown
.
data
(
'
scopedLabels
'
);
const
scopedLabels
=
$dropdown
.
data
(
'
scopedLabels
'
);
const
scopedLabelsDocumentationLink
=
$dropdown
.
data
(
'
scopedLabelsDocumentationLink
'
);
const
{
handleClick
}
=
options
;
const
{
handleClick
}
=
options
;
$sidebarLabelTooltip
.
tooltip
();
$sidebarLabelTooltip
.
tooltip
();
...
@@ -104,7 +103,6 @@ export default class LabelsSelect {
...
@@ -104,7 +103,6 @@ export default class LabelsSelect {
labels
:
sortBy
(
data
.
labels
,
'
title
'
),
labels
:
sortBy
(
data
.
labels
,
'
title
'
),
issueUpdateURL
,
issueUpdateURL
,
enableScopedLabels
:
scopedLabels
,
enableScopedLabels
:
scopedLabels
,
scopedLabelsDocumentationLink
,
});
});
labelCount
=
data
.
labels
.
length
;
labelCount
=
data
.
labels
.
length
;
...
@@ -497,14 +495,6 @@ export default class LabelsSelect {
...
@@ -497,14 +495,6 @@ export default class LabelsSelect {
return
escapeStr
(
label
.
text_color
===
'
#FFFFFF
'
?
label
.
color
:
label
.
text_color
);
return
escapeStr
(
label
.
text_color
===
'
#FFFFFF
'
?
label
.
color
:
label
.
text_color
);
};
};
const
infoIconTemplate
=
template
(
[
'
<a href="<%= scopedLabelsDocumentationLink %>" class="gl-link gl-label-icon" target="_blank" rel="noopener">
'
,
'
<i class="fa fa-question-circle"></i>
'
,
'
</a>
'
,
].
join
(
''
),
);
const
scopedLabelTemplate
=
template
(
const
scopedLabelTemplate
=
template
(
[
[
'
<span class="gl-label gl-label-scoped" style="color: <%= escapeStr(label.color) %>;">
'
,
'
<span class="gl-label gl-label-scoped" style="color: <%= escapeStr(label.color) %>;">
'
,
...
@@ -516,7 +506,6 @@ export default class LabelsSelect {
...
@@ -516,7 +506,6 @@ export default class LabelsSelect {
'
<%- label.title.slice(label.title.lastIndexOf("::") + 2) %>
'
,
'
<%- label.title.slice(label.title.lastIndexOf("::") + 2) %>
'
,
'
</span>
'
,
'
</span>
'
,
'
</a>
'
,
'
</a>
'
,
'
<%= infoIconTemplate({ label, scopedLabelsDocumentationLink, escapeStr }) %>
'
,
'
</span>
'
,
'
</span>
'
,
].
join
(
''
),
].
join
(
''
),
);
);
...
@@ -538,7 +527,7 @@ export default class LabelsSelect {
...
@@ -538,7 +527,7 @@ export default class LabelsSelect {
'
<% labels.forEach(function(label){ %>
'
,
'
<% labels.forEach(function(label){ %>
'
,
'
<% if (isScopedLabel(label) && enableScopedLabels) { %>
'
,
'
<% if (isScopedLabel(label) && enableScopedLabels) { %>
'
,
'
<span class="d-inline-block position-relative scoped-label-wrapper">
'
,
'
<span class="d-inline-block position-relative scoped-label-wrapper">
'
,
'
<%= scopedLabelTemplate({ label, issueUpdateURL, isScopedLabel, enableScopedLabels, rightLabelTextColor,
infoIconTemplate, scopedLabelsDocumentationLink,
tooltipTitleTemplate, escapeStr, linkAttrs:
\'
data-html="true"
\'
}) %>
'
,
'
<%= scopedLabelTemplate({ label, issueUpdateURL, isScopedLabel, enableScopedLabels, rightLabelTextColor, tooltipTitleTemplate, escapeStr, linkAttrs:
\'
data-html="true"
\'
}) %>
'
,
'
</span>
'
,
'
</span>
'
,
'
<% } else { %>
'
,
'
<% } else { %>
'
,
'
<%= labelTemplate({ label, issueUpdateURL, isScopedLabel, enableScopedLabels, tooltipTitleTemplate, escapeStr, linkAttrs: "" }) %>
'
,
'
<%= labelTemplate({ label, issueUpdateURL, isScopedLabel, enableScopedLabels, tooltipTitleTemplate, escapeStr, linkAttrs: "" }) %>
'
,
...
@@ -551,7 +540,6 @@ export default class LabelsSelect {
...
@@ -551,7 +540,6 @@ export default class LabelsSelect {
...
tplData
,
...
tplData
,
labelTemplate
,
labelTemplate
,
rightLabelTextColor
,
rightLabelTextColor
,
infoIconTemplate
,
scopedLabelTemplate
,
scopedLabelTemplate
,
tooltipTitleTemplate
,
tooltipTitleTemplate
,
isScopedLabel
,
isScopedLabel
,
...
...
app/assets/javascripts/vue_shared/components/sidebar/labels_select/base.vue
View file @
51eb28ac
...
@@ -80,11 +80,6 @@ export default {
...
@@ -80,11 +80,6 @@ export default {
required
:
false
,
required
:
false
,
default
:
false
,
default
:
false
,
},
},
scopedLabelsDocumentationLink
:
{
type
:
String
,
required
:
false
,
default
:
'
#
'
,
},
},
},
computed
:
{
computed
:
{
hiddenInputName
()
{
hiddenInputName
()
{
...
@@ -136,7 +131,6 @@ export default {
...
@@ -136,7 +131,6 @@ export default {
<dropdown-value
<dropdown-value
:labels=
"context.labels"
:labels=
"context.labels"
:label-filter-base-path=
"labelFilterBasePath"
:label-filter-base-path=
"labelFilterBasePath"
:scoped-labels-documentation-link=
"scopedLabelsDocumentationLink"
:enable-scoped-labels=
"enableScopedLabels"
:enable-scoped-labels=
"enableScopedLabels"
>
>
<slot></slot>
<slot></slot>
...
@@ -157,7 +151,6 @@ export default {
...
@@ -157,7 +151,6 @@ export default {
:namespace=
"namespace"
:namespace=
"namespace"
:labels=
"context.labels"
:labels=
"context.labels"
:show-extra-options=
"!showCreate"
:show-extra-options=
"!showCreate"
:scoped-labels-documentation-link=
"scopedLabelsDocumentationLink"
:enable-scoped-labels=
"enableScopedLabels"
:enable-scoped-labels=
"enableScopedLabels"
/>
/>
<div
<div
...
...
app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_button.vue
View file @
51eb28ac
...
@@ -36,11 +36,6 @@ export default {
...
@@ -36,11 +36,6 @@ export default {
required
:
false
,
required
:
false
,
default
:
false
,
default
:
false
,
},
},
scopedLabelsDocumentationLink
:
{
type
:
String
,
required
:
false
,
default
:
'
#
'
,
},
},
},
computed
:
{
computed
:
{
dropdownToggleText
()
{
dropdownToggleText
()
{
...
@@ -72,7 +67,6 @@ export default {
...
@@ -72,7 +67,6 @@ export default {
:data-namespace-path="namespace"
:data-namespace-path="namespace"
:data-show-any="showExtraOptions"
:data-show-any="showExtraOptions"
:data-scoped-labels="enableScopedLabels"
:data-scoped-labels="enableScopedLabels"
:data-scoped-labels-documentation-link="scopedLabelsDocumentationLink"
type="button"
type="button"
class="dropdown-menu-toggle wide js-label-select js-multiselect js-context-config-modal"
class="dropdown-menu-toggle wide js-label-select js-multiselect js-context-config-modal"
data-toggle="dropdown"
data-toggle="dropdown"
...
...
app/assets/javascripts/vue_shared/components/sidebar/labels_select/dropdown_value.vue
View file @
51eb28ac
...
@@ -20,11 +20,6 @@ export default {
...
@@ -20,11 +20,6 @@ export default {
required
:
false
,
required
:
false
,
default
:
false
,
default
:
false
,
},
},
scopedLabelsDocumentationLink
:
{
type
:
String
,
required
:
false
,
default
:
'
#
'
,
},
},
},
computed
:
{
computed
:
{
isEmpty
()
{
isEmpty
()
{
...
@@ -64,7 +59,6 @@ export default {
...
@@ -64,7 +59,6 @@ export default {
:title=
"label.title"
:title=
"label.title"
:description=
"label.description"
:description=
"label.description"
:scoped=
"showScopedLabels(label)"
:scoped=
"showScopedLabels(label)"
:scoped-labels-documentation-link=
"scopedLabelsDocumentationLink"
/>
/>
</
template
>
</
template
>
</div>
</div>
...
...
app/assets/javascripts/vue_shared/components/sidebar/labels_select_vue/dropdown_value.vue
View file @
51eb28ac
...
@@ -45,7 +45,6 @@ export default {
...
@@ -45,7 +45,6 @@ export default {
:background-color=
"label.color"
:background-color=
"label.color"
:target=
"labelFilterUrl(label)"
:target=
"labelFilterUrl(label)"
:scoped=
"scopedLabel(label)"
:scoped=
"scopedLabel(label)"
:scoped-labels-documentation-link=
"scopedLabelsDocumentationPath"
tooltip-placement=
"top"
tooltip-placement=
"top"
/>
/>
</
template
>
</
template
>
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
51eb28ac
...
@@ -167,10 +167,6 @@
...
@@ -167,10 +167,6 @@
}
}
}
}
a
.gl-label-icon
{
color
:
$gray-500
;
}
.gl-label
.gl-label-link
:hover
{
.gl-label
.gl-label-link
:hover
{
text-decoration
:
none
;
text-decoration
:
none
;
color
:
inherit
;
color
:
inherit
;
...
@@ -180,11 +176,6 @@
...
@@ -180,11 +176,6 @@
}
}
}
}
.gl-label
.gl-label-icon
:hover
{
text-decoration
:
none
;
color
:
$gray-500
;
}
.btn-link
{
.btn-link
{
color
:
inherit
;
color
:
inherit
;
}
}
...
@@ -826,10 +817,6 @@
...
@@ -826,10 +817,6 @@
}
}
}
}
}
}
.gl-label-icon
{
color
:
$gray-500
;
}
}
}
@media
(
max-width
:
map-get
(
$grid-breakpoints
,
lg
)
-1
)
{
@media
(
max-width
:
map-get
(
$grid-breakpoints
,
lg
)
-1
)
{
...
...
app/assets/stylesheets/pages/labels.scss
View file @
51eb28ac
...
@@ -460,8 +460,7 @@
...
@@ -460,8 +460,7 @@
// Label inside title of Delete Label Modal
// Label inside title of Delete Label Modal
.modal-header
.page-title
{
.modal-header
.page-title
{
.scoped-label-wrapper
{
.scoped-label-wrapper
{
.scoped-label
,
.scoped-label
{
.gl-label-icon
{
line-height
:
20px
;
line-height
:
20px
;
}
}
...
...
app/assets/stylesheets/pages/milestone.scss
View file @
51eb28ac
...
@@ -68,10 +68,6 @@ $status-box-line-height: 26px;
...
@@ -68,10 +68,6 @@ $status-box-line-height: 26px;
.gl-label-link
{
.gl-label-link
{
color
:
inherit
;
color
:
inherit
;
}
}
.gl-label-icon
{
color
:
$gray-500
;
}
}
}
}
}
...
...
app/assets/stylesheets/pages/notes.scss
View file @
51eb28ac
...
@@ -688,8 +688,7 @@ $note-form-margin-left: 72px;
...
@@ -688,8 +688,7 @@ $note-form-margin-left: 72px;
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
.gl-label-link
:hover
,
.gl-label-link
:hover
{
.gl-label-icon
:hover
{
text-decoration
:
none
;
text-decoration
:
none
;
color
:
inherit
;
color
:
inherit
;
...
...
app/views/shared/boards/components/_board.html.haml
View file @
51eb28ac
...
@@ -38,8 +38,7 @@
...
@@ -38,8 +38,7 @@
":description"
=>
"list.label.description"
,
":description"
=>
"list.label.description"
,
"tooltipPlacement"
=>
"bottom"
,
"tooltipPlacement"
=>
"bottom"
,
":size"
=>
'(!list.isExpanded ? "sm" : "")'
,
":size"
=>
'(!list.isExpanded ? "sm" : "")'
,
":scoped"
=>
"showScopedLabels(list.label)"
,
":scoped"
=>
"showScopedLabels(list.label)"
}
":scoped-labels-documentation-link"
=>
"helpLink"
}
-
if
can?
(
current_user
,
:admin_list
,
current_board_parent
)
-
if
can?
(
current_user
,
:admin_list
,
current_board_parent
)
%board-delete
{
"inline-template"
=>
true
,
%board-delete
{
"inline-template"
=>
true
,
...
...
app/views/shared/boards/components/sidebar/_labels.html.haml
View file @
51eb28ac
...
@@ -12,8 +12,7 @@
...
@@ -12,8 +12,7 @@
":background-color"
=>
"label.color"
,
":background-color"
=>
"label.color"
,
":title"
=>
"label.title"
,
":title"
=>
"label.title"
,
":description"
=>
"label.description"
,
":description"
=>
"label.description"
,
":scoped"
=>
"showScopedLabels(label)"
,
":scoped"
=>
"showScopedLabels(label)"
}
":scoped-labels-documentation-link"
=>
"helpLink"
}
-
if
can_admin_issue?
-
if
can_admin_issue?
.selectbox
.selectbox
...
...
ee/app/assets/javascripts/boards/components/board_scope.vue
View file @
51eb28ac
...
@@ -35,11 +35,6 @@ export default {
...
@@ -35,11 +35,6 @@ export default {
type
:
String
,
type
:
String
,
required
:
true
,
required
:
true
,
},
},
scopedLabelsDocumentationLink
:
{
type
:
String
,
required
:
false
,
default
:
'
#
'
,
},
enableScopedLabels
:
{
enableScopedLabels
:
{
type
:
Boolean
,
type
:
Boolean
,
required
:
false
,
required
:
false
,
...
@@ -119,7 +114,6 @@ export default {
...
@@ -119,7 +114,6 @@ export default {
:context=
"board"
:context=
"board"
:labels-path=
"labelsPath"
:labels-path=
"labelsPath"
:can-edit=
"canAdminBoard"
:can-edit=
"canAdminBoard"
:scoped-labels-documentation-link=
"scopedLabelsDocumentationLink"
:enable-scoped-labels=
"enableScopedLabels"
:enable-scoped-labels=
"enableScopedLabels"
ability-name=
"issue"
ability-name=
"issue"
@
onLabelClick=
"handleLabelClick"
@
onLabelClick=
"handleLabelClick"
...
...
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
View file @
51eb28ac
...
@@ -39,7 +39,6 @@ class BoardsStoreEE {
...
@@ -39,7 +39,6 @@ class BoardsStoreEE {
boardWeight
,
boardWeight
,
weightFeatureAvailable
,
weightFeatureAvailable
,
scopedLabels
,
scopedLabels
,
scopedLabelsDocumentationLink
,
},
},
}
=
this
.
$boardApp
;
}
=
this
.
$boardApp
;
this
.
store
.
boardConfig
=
{
this
.
store
.
boardConfig
=
{
...
@@ -53,7 +52,6 @@ class BoardsStoreEE {
...
@@ -53,7 +52,6 @@ class BoardsStoreEE {
this
.
store
.
weightFeatureAvailable
=
parseBoolean
(
weightFeatureAvailable
);
this
.
store
.
weightFeatureAvailable
=
parseBoolean
(
weightFeatureAvailable
);
this
.
store
.
scopedLabels
=
{
this
.
store
.
scopedLabels
=
{
enabled
:
parseBoolean
(
scopedLabels
),
enabled
:
parseBoolean
(
scopedLabels
),
helpLink
:
scopedLabelsDocumentationLink
,
};
};
this
.
initBoardFilters
();
this
.
initBoardFilters
();
}
}
...
...
ee/app/assets/javascripts/epic/components/sidebar_items/sidebar_labels.vue
View file @
51eb28ac
...
@@ -35,7 +35,6 @@ export default {
...
@@ -35,7 +35,6 @@ export default {
'
labelsWebUrl
'
,
'
labelsWebUrl
'
,
'
epicsWebUrl
'
,
'
epicsWebUrl
'
,
'
scopedLabels
'
,
'
scopedLabels
'
,
'
scopedLabelsDocumentationLink
'
,
'
epicLabelsSelectInProgress
'
,
'
epicLabelsSelectInProgress
'
,
]),
]),
epicContext
()
{
epicContext
()
{
...
@@ -118,7 +117,6 @@ export default {
...
@@ -118,7 +117,6 @@ export default {
:labels-fetch-path=
"labelsPath"
:labels-fetch-path=
"labelsPath"
:labels-manage-path=
"labelsWebUrl"
:labels-manage-path=
"labelsWebUrl"
:labels-filter-base-path=
"epicsWebUrl"
:labels-filter-base-path=
"epicsWebUrl"
:scoped-labels-documentation-path=
"scopedLabelsDocumentationLink"
class=
"block labels js-labels-block"
class=
"block labels js-labels-block"
@
updateSelectedLabels=
"handleUpdateSelectedLabels"
@
updateSelectedLabels=
"handleUpdateSelectedLabels"
@
onDropdownClose=
"handleDropdownClose"
@
onDropdownClose=
"handleDropdownClose"
...
...
ee/app/helpers/ee/boards_helper.rb
View file @
51eb28ac
...
@@ -26,7 +26,6 @@ module EE
...
@@ -26,7 +26,6 @@ module EE
weight_feature_available:
current_board_parent
.
feature_available?
(
:issue_weights
).
to_s
,
weight_feature_available:
current_board_parent
.
feature_available?
(
:issue_weights
).
to_s
,
show_promotion:
show_feature_promotion
,
show_promotion:
show_feature_promotion
,
scoped_labels:
current_board_parent
.
feature_available?
(
:scoped_labels
)
&
.
to_s
,
scoped_labels:
current_board_parent
.
feature_available?
(
:scoped_labels
)
&
.
to_s
,
scoped_labels_documentation_link:
help_page_path
(
'user/project/labels.md'
,
anchor:
'scoped-labels-premium'
)
}
}
super
.
merge
(
data
)
super
.
merge
(
data
)
...
...
ee/app/helpers/ee/labels_helper.rb
View file @
51eb28ac
...
@@ -30,7 +30,7 @@ module EE
...
@@ -30,7 +30,7 @@ module EE
<<~
HTML
.
chomp
.
html_safe
<<~
HTML
.
chomp
.
html_safe
<span class="d-inline-block position-relative scoped-label-wrapper">
<span class="d-inline-block position-relative scoped-label-wrapper">
<span class="
#{
wrapper_classes
.
join
(
' '
)
}
" style="color:
#{
label
.
color
}
">
#{
label_html
+
scoped_labels_doc_link
}
</span>
<span class="
#{
wrapper_classes
.
join
(
' '
)
}
" style="color:
#{
label
.
color
}
">
#{
label_html
}
</span>
</span>
</span>
HTML
HTML
end
end
...
@@ -45,7 +45,6 @@ module EE
...
@@ -45,7 +45,6 @@ module EE
def
label_dropdown_data
(
edit_context
,
opts
=
{})
def
label_dropdown_data
(
edit_context
,
opts
=
{})
scoped_labels_fields
=
{
scoped_labels_fields
=
{
scoped_labels:
edit_context
&
.
feature_available?
(
:scoped_labels
)
&
.
to_s
,
scoped_labels:
edit_context
&
.
feature_available?
(
:scoped_labels
)
&
.
to_s
,
scoped_labels_documentation_link:
help_page_path
(
'user/project/labels.md'
,
anchor:
'scoped-labels-premium'
)
}
}
return
super
.
merge
(
scoped_labels_fields
)
unless
edit_context
.
is_a?
(
Group
)
return
super
.
merge
(
scoped_labels_fields
)
unless
edit_context
.
is_a?
(
Group
)
...
@@ -70,13 +69,5 @@ module EE
...
@@ -70,13 +69,5 @@ module EE
super
+
[
'epics'
]
super
+
[
'epics'
]
end
end
private
def
scoped_labels_doc_link
help_url
=
::
Gitlab
::
Routing
.
url_helpers
.
help_page_url
(
'user/project/labels.md'
,
anchor:
'scoped-labels-premium'
)
%(<a href="#{help_url}" class="gl-link gl-label-icon" target="_blank" rel="noopener"><i class="fa fa-question-circle"></i></a>)
.
html_safe
end
end
end
end
end
ee/app/presenters/epic_presenter.rb
View file @
51eb28ac
...
@@ -79,7 +79,6 @@ class EpicPresenter < Gitlab::View::Presenter::Delegated
...
@@ -79,7 +79,6 @@ class EpicPresenter < Gitlab::View::Presenter::Delegated
toggle_subscription_path:
toggle_subscription_group_epic_path
(
group
,
epic
),
toggle_subscription_path:
toggle_subscription_group_epic_path
(
group
,
epic
),
labels_web_url:
group_labels_path
(
group
),
labels_web_url:
group_labels_path
(
group
),
epics_web_url:
group_epics_path
(
group
),
epics_web_url:
group_epics_path
(
group
),
scoped_labels_documentation_link:
help_page_path
(
'user/project/labels.md'
,
anchor:
'scoped-labels-premium'
)
}
}
paths
[
:todo_delete_path
]
=
dashboard_todo_path
(
epic_pending_todo
)
if
epic_pending_todo
.
present?
paths
[
:todo_delete_path
]
=
dashboard_todo_path
(
epic_pending_todo
)
if
epic_pending_todo
.
present?
...
...
ee/spec/fixtures/api/schemas/epic_meta_data.json
View file @
51eb28ac
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"type"
:
"object"
,
"type"
:
"object"
,
"required"
:
[
"epic_id"
,
"created"
,
"author"
,
"ancestors"
,
"todo_exists"
,
"todo_path"
,
"lock_version"
,
"required"
:
[
"epic_id"
,
"created"
,
"author"
,
"ancestors"
,
"todo_exists"
,
"todo_path"
,
"lock_version"
,
"state"
,
"namespace"
,
"labels_path"
,
"toggle_subscription_path"
,
"labels_web_url"
,
"epics_web_url"
,
"state"
,
"namespace"
,
"labels_path"
,
"toggle_subscription_path"
,
"labels_web_url"
,
"epics_web_url"
,
"scoped_labels"
,
"s
coped_labels_documentation_link"
,
"s
tart_date"
,
"start_date_is_fixed"
,
"start_date_fixed"
,
"scoped_labels"
,
"start_date"
,
"start_date_is_fixed"
,
"start_date_fixed"
,
"start_date_from_milestones"
,
"start_date_sourcing_milestone_title"
,
"start_date_sourcing_milestone_dates"
,
"start_date_from_milestones"
,
"start_date_sourcing_milestone_title"
,
"start_date_sourcing_milestone_dates"
,
"due_date"
,
"due_date_is_fixed"
,
"due_date_fixed"
,
"due_date"
,
"due_date_is_fixed"
,
"due_date_fixed"
,
"due_date_from_milestones"
,
"due_date_sourcing_milestone_title"
,
"due_date_sourcing_milestone_dates"
],
"due_date_from_milestones"
,
"due_date_sourcing_milestone_title"
,
"due_date_sourcing_milestone_dates"
],
...
@@ -103,9 +103,6 @@
...
@@ -103,9 +103,6 @@
"scoped_labels"
:
{
"scoped_labels"
:
{
"type"
:
"boolean"
"type"
:
"boolean"
},
},
"scoped_labels_documentation_link"
:
{
"type"
:
"string"
},
"start_date"
:
{
"start_date"
:
{
"type"
:
[
"type"
:
[
"string"
,
"string"
,
...
...
ee/spec/frontend/boards/components/board_settings_sidebar_spec.js
View file @
51eb28ac
...
@@ -67,7 +67,6 @@ describe('BoardSettingsSideBar', () => {
...
@@ -67,7 +67,6 @@ describe('BoardSettingsSideBar', () => {
removeList
:
bs
.
removeList
,
removeList
:
bs
.
removeList
,
scopedLabels
:
{
scopedLabels
:
{
enabled
:
false
,
enabled
:
false
,
scopedLabelsDocumentationLink
:
''
,
},
},
};
};
...
...
ee/spec/helpers/ee/labels_helper_spec.rb
View file @
51eb28ac
...
@@ -57,7 +57,6 @@ describe LabelsHelper do
...
@@ -57,7 +57,6 @@ describe LabelsHelper do
show_any:
"true"
,
show_any:
"true"
,
default_label:
"Labels"
,
default_label:
"Labels"
,
scoped_labels:
"false"
,
scoped_labels:
"false"
,
scoped_labels_documentation_link:
"/help/user/project/labels.md#scoped-labels-premium"
}
}
end
end
...
...
ee/spec/lib/banzai/filter/label_reference_filter_spec.rb
View file @
51eb28ac
...
@@ -18,14 +18,12 @@ describe Banzai::Filter::LabelReferenceFilter do
...
@@ -18,14 +18,12 @@ describe Banzai::Filter::LabelReferenceFilter do
doc
=
reference_filter
(
"See
#{
scoped_label
.
to_reference
}
"
)
doc
=
reference_filter
(
"See
#{
scoped_label
.
to_reference
}
"
)
expect
(
doc
.
css
(
'.gl-label-scoped .gl-label-text'
).
map
(
&
:text
)).
to
eq
([
scoped_label
.
scoped_label_key
,
scoped_label
.
scoped_label_value
])
expect
(
doc
.
css
(
'.gl-label-scoped .gl-label-text'
).
map
(
&
:text
)).
to
eq
([
scoped_label
.
scoped_label_key
,
scoped_label
.
scoped_label_value
])
expect
(
doc
.
at_css
(
'a.gl-label-icon'
)[
'href'
]).
to
eq
(
'http://localhost/help/user/project/labels.md#scoped-labels-premium'
)
end
end
it
'renders common label'
do
it
'renders common label'
do
doc
=
reference_filter
(
"See
#{
label
.
to_reference
}
"
)
doc
=
reference_filter
(
"See
#{
label
.
to_reference
}
"
)
expect
(
doc
.
css
(
'.gl-label .gl-label-text'
).
map
(
&
:text
)).
to
eq
([
label
.
name
])
expect
(
doc
.
css
(
'.gl-label .gl-label-text'
).
map
(
&
:text
)).
to
eq
([
label
.
name
])
expect
(
doc
.
at_css
(
'a.gl-label-icon'
)).
to
be_nil
end
end
end
end
...
@@ -38,7 +36,6 @@ describe Banzai::Filter::LabelReferenceFilter do
...
@@ -38,7 +36,6 @@ describe Banzai::Filter::LabelReferenceFilter do
doc
=
reference_filter
(
"See
#{
scoped_label
.
to_reference
}
"
)
doc
=
reference_filter
(
"See
#{
scoped_label
.
to_reference
}
"
)
expect
(
doc
.
css
(
'.gl-label .gl-label-text'
).
map
(
&
:text
)).
to
eq
([
scoped_label
.
name
])
expect
(
doc
.
css
(
'.gl-label .gl-label-text'
).
map
(
&
:text
)).
to
eq
([
scoped_label
.
name
])
expect
(
doc
.
at_css
(
'a.gl-label-icon'
)).
to
be_nil
end
end
end
end
end
end
spec/frontend/labels_select_spec.js
View file @
51eb28ac
...
@@ -45,7 +45,6 @@ describe('LabelsSelect', () => {
...
@@ -45,7 +45,6 @@ describe('LabelsSelect', () => {
labels
:
mockLabels
,
labels
:
mockLabels
,
issueUpdateURL
:
mockUrl
,
issueUpdateURL
:
mockUrl
,
enableScopedLabels
:
true
,
enableScopedLabels
:
true
,
scopedLabelsDocumentationLink
:
'
docs-link
'
,
}),
}),
);
);
});
});
...
@@ -71,10 +70,6 @@ describe('LabelsSelect', () => {
...
@@ -71,10 +70,6 @@ describe('LabelsSelect', () => {
it
(
'
generated label item has a gl-label-text class
'
,
()
=>
{
it
(
'
generated label item has a gl-label-text class
'
,
()
=>
{
expect
(
$labelEl
.
find
(
'
span
'
).
hasClass
(
'
gl-label-text
'
)).
toEqual
(
true
);
expect
(
$labelEl
.
find
(
'
span
'
).
hasClass
(
'
gl-label-text
'
)).
toEqual
(
true
);
});
});
it
(
'
generated label item template does not have gl-label-icon class
'
,
()
=>
{
expect
(
$labelEl
.
find
(
'
.gl-label-icon
'
)).
toHaveLength
(
0
);
});
});
});
describe
(
'
when scoped label is present
'
,
()
=>
{
describe
(
'
when scoped label is present
'
,
()
=>
{
...
@@ -87,7 +82,6 @@ describe('LabelsSelect', () => {
...
@@ -87,7 +82,6 @@ describe('LabelsSelect', () => {
labels
:
mockScopedLabels
,
labels
:
mockScopedLabels
,
issueUpdateURL
:
mockUrl
,
issueUpdateURL
:
mockUrl
,
enableScopedLabels
:
true
,
enableScopedLabels
:
true
,
scopedLabelsDocumentationLink
:
'
docs-link
'
,
}),
}),
);
);
});
});
...
@@ -110,10 +104,6 @@ describe('LabelsSelect', () => {
...
@@ -110,10 +104,6 @@ describe('LabelsSelect', () => {
expect
(
$labelEl
.
find
(
'
i.fa-question-circle
'
)).
toHaveLength
(
1
);
expect
(
$labelEl
.
find
(
'
i.fa-question-circle
'
)).
toHaveLength
(
1
);
});
});
it
(
'
generated label item template has gl-label-icon class
'
,
()
=>
{
expect
(
$labelEl
.
find
(
'
.gl-label-icon
'
)).
toHaveLength
(
1
);
});
it
(
'
generated label item template has correct label styles
'
,
()
=>
{
it
(
'
generated label item template has correct label styles
'
,
()
=>
{
expect
(
$labelEl
.
find
(
'
span.gl-label-text
'
).
attr
(
'
style
'
)).
toBe
(
expect
(
$labelEl
.
find
(
'
span.gl-label-text
'
).
attr
(
'
style
'
)).
toBe
(
`background-color:
${
label
.
color
}
; color:
${
label
.
text_color
}
;`
,
`background-color:
${
label
.
color
}
; color:
${
label
.
text_color
}
;`
,
...
@@ -141,7 +131,6 @@ describe('LabelsSelect', () => {
...
@@ -141,7 +131,6 @@ describe('LabelsSelect', () => {
labels
:
mockScopedLabels2
,
labels
:
mockScopedLabels2
,
issueUpdateURL
:
mockUrl
,
issueUpdateURL
:
mockUrl
,
enableScopedLabels
:
true
,
enableScopedLabels
:
true
,
scopedLabelsDocumentationLink
:
'
docs-link
'
,
}),
}),
);
);
});
});
...
...
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