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
4d444e91
Commit
4d444e91
authored
Jun 04, 2021
by
NataliaTepluhina
Committed by
Natalia Tepluhina
Jun 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cases for projectMembers
parent
95c4e171
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ee/app/assets/javascripts/boards/stores/actions.js
ee/app/assets/javascripts/boards/stores/actions.js
+4
-2
ee/app/assets/javascripts/oncall_schedules/components/rotations/components/add_edit_rotation_modal.vue
...mponents/rotations/components/add_edit_rotation_modal.vue
+1
-1
No files found.
ee/app/assets/javascripts/boards/stores/actions.js
View file @
4d444e91
...
...
@@ -535,7 +535,9 @@ export default {
})
.
then
(({
data
})
=>
{
const
[
firstError
]
=
data
.
workspace
.
errors
||
[];
const
assignees
=
data
.
workspace
.
assignees
.
nodes
.
map
(({
user
})
=>
user
);
const
assignees
=
data
.
workspace
.
assignees
.
nodes
.
filter
((
x
)
=>
x
?.
user
)
.
map
(({
user
})
=>
user
);
if
(
firstError
)
{
throw
new
Error
(
firstError
);
...
...
@@ -543,7 +545,7 @@ export default {
commit
(
types
.
RECEIVE_ASSIGNEES_SUCCESS
,
// User field is nullable and we only want to display non-null users
assignees
.
filter
((
u
)
=>
u
)
,
assignees
,
);
})
.
catch
((
e
)
=>
{
...
...
ee/app/assets/javascripts/oncall_schedules/components/rotations/components/add_edit_rotation_modal.vue
View file @
4d444e91
...
...
@@ -94,7 +94,7 @@ export default {
};
},
update
({
project
:
{
projectMembers
:
{
nodes
=
[]
}
=
{}
}
=
{}
}
=
{})
{
return
nodes
.
map
(({
user
})
=>
({
...
user
}));
return
nodes
.
filter
((
x
)
=>
x
?.
user
).
map
(({
user
})
=>
({
...
user
}));
},
error
(
error
)
{
this
.
error
=
error
;
...
...
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