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
faae4544
Commit
faae4544
authored
Feb 26, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8869 from tsigo/rs-issue-867
Allow mass-unassigning of issues
parents
7fef8456
e53dd752
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 @
faae4544
...
...
@@ -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 @
faae4544
...
...
@@ -15,7 +15,7 @@ class @ProjectUsersSelect
name
:
'Unassigned'
,
avatar
:
null
,
username
:
'none'
,
id
:
''
id
:
-
1
}
data
.
results
.
unshift
(
nullUser
)
...
...
spec/services/issues/bulk_update_
context
_spec.rb
→
spec/services/issues/bulk_update_
service
_spec.rb
View file @
faae4544
...
...
@@ -84,6 +84,25 @@ describe Issues::BulkUpdateService do
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