Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
projects.thm.de
GitLab
Commits
e53dd752
Commit
e53dd752
authored
Feb 25, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow mass-unassigning of issues
Fixes #867 [ci skip]
parent
8490a8ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
CHANGELOG
CHANGELOG
+1
-0
app/assets/javascripts/project_users_select.js.coffee
app/assets/javascripts/project_users_select.js.coffee
+1
-1
spec/services/issues/bulk_update_service_spec.rb
spec/services/issues/bulk_update_service_spec.rb
+19
-0
No files found.
CHANGELOG
View file @
e53dd752
...
...
@@ -11,6 +11,7 @@ v 7.9.0 (unreleased)
- Fix ordering of imported but unchanged projects (Marco Wessel)
- Mobile UI improvements: make aside content expandable
- Generalize image upload in drag and drop in markdown to all files (Hannes Rosenögger)
- Fix mass-unassignment of issues (Robert Speicher)
v 7.8.1
- Fix run of custom post receive hooks
...
...
app/assets/javascripts/project_users_select.js.coffee
View file @
e53dd752
...
...
@@ -15,7 +15,7 @@ class @ProjectUsersSelect
name
:
'Unassigned'
,
avatar
:
null
,
username
:
'none'
,
id
:
''
id
:
-
1
}
data
.
results
.
unshift
(
nullUser
)
...
...
spec/services/issues/bulk_update_service_spec.rb
View file @
e53dd752
...
...
@@ -84,6 +84,25 @@
expect
(
@project
.
issues
.
first
.
assignee
).
to
eq
(
@new_assignee
)
}
it
'allows mass-unassigning'
do
@project
.
issues
.
first
.
update_attribute
(
:assignee
,
@new_assignee
)
expect
(
@project
.
issues
.
first
.
assignee
).
not_to
be_nil
@params
[
:update
][
:assignee_id
]
=
-
1
Issues
::
BulkUpdateService
.
new
(
@project
,
@user
,
@params
).
execute
expect
(
@project
.
issues
.
first
.
assignee
).
to
be_nil
end
it
'does not unassign when assignee_id is not present'
do
@project
.
issues
.
first
.
update_attribute
(
:assignee
,
@new_assignee
)
expect
(
@project
.
issues
.
first
.
assignee
).
not_to
be_nil
@params
[
:update
][
:assignee_id
]
=
''
Issues
::
BulkUpdateService
.
new
(
@project
,
@user
,
@params
).
execute
expect
(
@project
.
issues
.
first
.
assignee
).
not_to
be_nil
end
end
describe
:update_milestone
do
...
...
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