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
f981e12f
Commit
f981e12f
authored
Jul 17, 2019
by
Winnie Hellmann
Committed by
Mike Greiling
Jul 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog entry
(cherry picked from commit 6f5f24cfb3b70d69ed784414e3735f13d28be570)
parent
c948c590
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
54 additions
and
50 deletions
+54
-50
app/assets/javascripts/boards/components/board_form.vue
app/assets/javascripts/boards/components/board_form.vue
+1
-2
app/assets/javascripts/boards/components/boards_selector.vue
app/assets/javascripts/boards/components/boards_selector.vue
+2
-2
app/assets/javascripts/boards/index.js
app/assets/javascripts/boards/index.js
+1
-1
app/assets/javascripts/boards/mount_multiple_boards_switcher.js
...sets/javascripts/boards/mount_multiple_boards_switcher.js
+35
-2
app/views/shared/boards/_switcher.html.haml
app/views/shared/boards/_switcher.html.haml
+3
-2
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+1
-1
changelogs/unreleased/winh-multiple-issueboards-core.yml
changelogs/unreleased/winh-multiple-issueboards-core.yml
+5
-0
ee/app/assets/javascripts/boards/components/assignee_select.vue
.../assets/javascripts/boards/components/assignee_select.vue
+3
-2
ee/app/assets/javascripts/boards/mount_multiple_boards_switcher.js
...sets/javascripts/boards/mount_multiple_boards_switcher.js
+0
-35
spec/javascripts/boards/components/board_form_spec.js
spec/javascripts/boards/components/board_form_spec.js
+1
-1
spec/javascripts/boards/components/boards_selector_spec.js
spec/javascripts/boards/components/boards_selector_spec.js
+2
-2
No files found.
ee/
app/assets/javascripts/boards/components/board_form.vue
→
app/assets/javascripts/boards/components/board_form.vue
View file @
f981e12f
<
script
>
<
script
>
import
Flash
from
'
~/flash
'
;
import
Flash
from
'
~/flash
'
;
import
DeprecatedModal
from
'
~/vue_shared/components/deprecated_modal.vue
'
;
import
DeprecatedModal
from
'
~/vue_shared/components/deprecated_modal.vue
'
;
import
BoardScope
from
'
./board_scope.vue
'
;
import
{
visitUrl
}
from
'
~/lib/utils/url_utility
'
;
import
{
visitUrl
}
from
'
~/lib/utils/url_utility
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
...
@@ -17,7 +16,7 @@ const boardDefaults = {
...
@@ -17,7 +16,7 @@ const boardDefaults = {
export
default
{
export
default
{
components
:
{
components
:
{
BoardScope
,
BoardScope
:
()
=>
import
(
'
ee_component/boards/components/board_scope.vue
'
)
,
DeprecatedModal
,
DeprecatedModal
,
},
},
props
:
{
props
:
{
...
...
ee/
app/assets/javascripts/boards/components/boards_selector.vue
→
app/assets/javascripts/boards/components/boards_selector.vue
View file @
f981e12f
...
@@ -10,9 +10,9 @@ import {
...
@@ -10,9 +10,9 @@ import {
}
from
'
@gitlab/ui
'
;
}
from
'
@gitlab/ui
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
import
BoardForm
from
'
./board_form.vue
'
;
import
httpStatusCodes
from
'
~/lib/utils/http_status
'
;
import
httpStatusCodes
from
'
~/lib/utils/http_status
'
;
import
boardsStore
from
'
../stores/boards_store
'
;
import
BoardForm
from
'
./board_form.vue
'
;
const
MIN_BOARDS_TO_VIEW_RECENT
=
10
;
const
MIN_BOARDS_TO_VIEW_RECENT
=
10
;
...
...
app/assets/javascripts/boards/index.js
View file @
f981e12f
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
mountMultipleBoardsSwitcher
from
'
ee_else_ce/boards/mount_multiple_boards_switcher
'
;
import
Flash
from
'
~/flash
'
;
import
Flash
from
'
~/flash
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
__
}
from
'
~/locale
'
;
import
'
./models/label
'
;
import
'
./models/label
'
;
...
@@ -31,6 +30,7 @@ import {
...
@@ -31,6 +30,7 @@ import {
}
from
'
~/lib/utils/common_utils
'
;
}
from
'
~/lib/utils/common_utils
'
;
import
boardConfigToggle
from
'
ee_else_ce/boards/config_toggle
'
;
import
boardConfigToggle
from
'
ee_else_ce/boards/config_toggle
'
;
import
toggleFocusMode
from
'
ee_else_ce/boards/toggle_focus
'
;
import
toggleFocusMode
from
'
ee_else_ce/boards/toggle_focus
'
;
import
mountMultipleBoardsSwitcher
from
'
./mount_multiple_boards_switcher
'
;
let
issueBoardsApp
;
let
issueBoardsApp
;
...
...
app/assets/javascripts/boards/mount_multiple_boards_switcher.js
View file @
f981e12f
// this will be moved from EE to CE as part of https://gitlab.com/gitlab-org/gitlab-ce/issues/53811
import
Vue
from
'
vue
'
;
export
default
()
=>
{};
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
BoardsSelector
from
'
~/boards/components/boards_selector.vue
'
;
export
default
()
=>
{
const
boardsSwitcherElement
=
document
.
getElementById
(
'
js-multiple-boards-switcher
'
);
return
new
Vue
({
el
:
boardsSwitcherElement
,
components
:
{
BoardsSelector
,
},
data
()
{
const
{
dataset
}
=
boardsSwitcherElement
;
const
boardsSelectorProps
=
{
...
dataset
,
currentBoard
:
JSON
.
parse
(
dataset
.
currentBoard
),
hasMissingBoards
:
parseBoolean
(
dataset
.
hasMissingBoards
),
canAdminBoard
:
parseBoolean
(
dataset
.
canAdminBoard
),
multipleIssueBoardsAvailable
:
parseBoolean
(
dataset
.
multipleIssueBoardsAvailable
),
projectId
:
Number
(
dataset
.
projectId
),
groupId
:
Number
(
dataset
.
groupId
),
scopedIssueBoardFeatureEnabled
:
parseBoolean
(
dataset
.
scopedIssueBoardFeatureEnabled
),
weights
:
JSON
.
parse
(
dataset
.
weights
),
};
return
{
boardsSelectorProps
};
},
render
(
createElement
)
{
return
createElement
(
BoardsSelector
,
{
props
:
this
.
boardsSelectorProps
,
});
},
});
};
ee/
app/views/shared/boards/_switcher.html.haml
→
app/views/shared/boards/_switcher.html.haml
View file @
f981e12f
-
parent
=
board
.
parent
-
parent
=
board
.
parent
-
milestone_filter_opts
=
{
format: :json
}
-
milestone_filter_opts
=
{
format: :json
}
-
milestone_filter_opts
=
milestone_filter_opts
.
merge
(
only_group_milestones:
true
)
if
board
.
group_board?
-
milestone_filter_opts
=
milestone_filter_opts
.
merge
(
only_group_milestones:
true
)
if
board
.
group_board?
-
weights
=
Gitlab
.
ee?
?
([
Issue
::
WEIGHT_ANY
]
+
Issue
.
weight_options
)
:
[]
#js-multiple-boards-switcher
.inline.boards-switcher
{
data:
{
current_board:
current_board_json
.
to_json
,
#js-multiple-boards-switcher
.inline.boards-switcher
{
data:
{
current_board:
current_board_json
.
to_json
,
milestone_path:
milestones_filter_path
(
milestone_filter_opts
),
milestone_path:
milestones_filter_path
(
milestone_filter_opts
),
...
@@ -11,5 +12,5 @@
...
@@ -11,5 +12,5 @@
labels_path:
labels_filter_path_with_defaults
(
only_group_labels:
true
,
include_descendant_groups:
true
),
labels_path:
labels_filter_path_with_defaults
(
only_group_labels:
true
,
include_descendant_groups:
true
),
project_id:
@project
&
.
id
,
project_id:
@project
&
.
id
,
group_id:
@group
&
.
id
,
group_id:
@group
&
.
id
,
scoped_issue_board_feature_enabled:
parent
.
feature_available?
(
:scoped_issue_board
)
?
'true'
:
'false'
,
scoped_issue_board_feature_enabled:
Gitlab
.
ee?
&&
parent
.
feature_available?
(
:scoped_issue_board
)
?
'true'
:
'false'
,
weights:
([
Issue
::
WEIGHT_ANY
]
+
Issue
.
weight_options
)
.
to_json
}
}
weights:
weights
.
to_json
}
}
app/views/shared/issuable/_search_bar.html.haml
View file @
f981e12f
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
.issues-filters
{
class:
(
"w-100"
if
type
==
:boards_modal
)
}
.issues-filters
{
class:
(
"w-100"
if
type
==
:boards_modal
)
}
.issues-details-filters.filtered-search-block.d-flex.flex-column.flex-md-row
{
class:
block_css_class
,
"v-pre"
=>
type
==
:boards_modal
}
.issues-details-filters.filtered-search-block.d-flex.flex-column.flex-md-row
{
class:
block_css_class
,
"v-pre"
=>
type
==
:boards_modal
}
-
if
type
==
:boards
-
if
type
==
:boards
=
render
_if_exists
"shared/boards/switcher"
,
board:
board
=
render
"shared/boards/switcher"
,
board:
board
=
form_tag
page_filter_path
,
method: :get
,
class:
'filter-form js-filter-form w-100'
do
=
form_tag
page_filter_path
,
method: :get
,
class:
'filter-form js-filter-form w-100'
do
-
if
params
[
:search
].
present?
-
if
params
[
:search
].
present?
=
hidden_field_tag
:search
,
params
[
:search
]
=
hidden_field_tag
:search
,
params
[
:search
]
...
...
changelogs/unreleased/winh-multiple-issueboards-core.yml
0 → 100644
View file @
f981e12f
---
title
:
Move multiple issue boards to core
merge_request
:
30503
author
:
type
:
changed
ee/app/assets/javascripts/boards/components/assignee_select.vue
View file @
f981e12f
...
@@ -48,7 +48,8 @@ export default {
...
@@ -48,7 +48,8 @@ export default {
},
},
selected
:
{
selected
:
{
type
:
Object
,
type
:
Object
,
required
:
true
,
required
:
false
,
default
:
()
=>
null
,
},
},
wrapperClass
:
{
wrapperClass
:
{
type
:
String
,
type
:
String
,
...
@@ -58,7 +59,7 @@ export default {
...
@@ -58,7 +59,7 @@ export default {
},
},
computed
:
{
computed
:
{
hasValue
()
{
hasValue
()
{
return
this
.
selected
.
id
>
0
;
return
this
.
selected
&&
this
.
selected
.
id
>
0
;
},
},
selectedId
()
{
selectedId
()
{
return
this
.
selected
?
this
.
selected
.
id
:
null
;
return
this
.
selected
?
this
.
selected
.
id
:
null
;
...
...
ee/app/assets/javascripts/boards/mount_multiple_boards_switcher.js
deleted
100644 → 0
View file @
c948c590
import
Vue
from
'
vue
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
BoardsSelector
from
'
ee/boards/components/boards_selector.vue
'
;
export
default
()
=>
{
const
boardsSwitcherElement
=
document
.
getElementById
(
'
js-multiple-boards-switcher
'
);
return
new
Vue
({
el
:
boardsSwitcherElement
,
components
:
{
BoardsSelector
,
},
data
()
{
const
{
dataset
}
=
boardsSwitcherElement
;
const
boardsSelectorProps
=
{
...
dataset
,
currentBoard
:
JSON
.
parse
(
dataset
.
currentBoard
),
hasMissingBoards
:
parseBoolean
(
dataset
.
hasMissingBoards
),
canAdminBoard
:
parseBoolean
(
dataset
.
canAdminBoard
),
multipleIssueBoardsAvailable
:
parseBoolean
(
dataset
.
multipleIssueBoardsAvailable
),
projectId
:
Number
(
dataset
.
projectId
),
groupId
:
Number
(
dataset
.
groupId
),
scopedIssueBoardFeatureEnabled
:
parseBoolean
(
dataset
.
scopedIssueBoardFeatureEnabled
),
weights
:
JSON
.
parse
(
dataset
.
weights
),
};
return
{
boardsSelectorProps
};
},
render
(
createElement
)
{
return
createElement
(
BoardsSelector
,
{
props
:
this
.
boardsSelectorProps
,
});
},
});
};
ee/
spec/javascripts/boards/components/board_form_spec.js
→
spec/javascripts/boards/components/board_form_spec.js
View file @
f981e12f
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
import
boardForm
from
'
ee
/boards/components/board_form.vue
'
;
import
boardForm
from
'
~
/boards/components/board_form.vue
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
describe
(
'
board_form.vue
'
,
()
=>
{
describe
(
'
board_form.vue
'
,
()
=>
{
...
...
ee/
spec/javascripts/boards/components/boards_selector_spec.js
→
spec/javascripts/boards/components/boards_selector_spec.js
View file @
f981e12f
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
BoardService
from
'
ee
/boards/services/board_service
'
;
import
BoardService
from
'
~
/boards/services/board_service
'
;
import
BoardsSelector
from
'
ee
/boards/components/boards_selector.vue
'
;
import
BoardsSelector
from
'
~
/boards/components/boards_selector.vue
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
import
{
TEST_HOST
}
from
'
spec/test_constants
'
;
import
{
TEST_HOST
}
from
'
spec/test_constants
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
import
boardsStore
from
'
~/boards/stores/boards_store
'
;
...
...
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