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
48c34172
Commit
48c34172
authored
Oct 13, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Approvers Group] Fixes afteer review
parent
7b702c68
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
CHANGELOG-EE.md
CHANGELOG-EE.md
+1
-1
app/assets/javascripts/approvals.js
app/assets/javascripts/approvals.js
+6
-6
doc/api/groups.md
doc/api/groups.md
+1
-1
doc/user/project/merge_requests/merge_request_approvals.md
doc/user/project/merge_requests/merge_request_approvals.md
+1
-1
No files found.
CHANGELOG-EE.md
View file @
48c34172
...
...
@@ -6,9 +6,9 @@ Please view this file on the master branch, on stable branches it's out of date.
-
Fix validations related to mirroring settings form. !773
-
Fix Git access panel for Wikis when Kerberos authentication is enabled (Borja Aparicio)
-
Decrease maximum time that GitLab waits for a mirror to finish !791 (Borja Aparicio)
-
User groups (that can be assigned as approvers)
## 8.12.5
-
User groups (that can be assigned as approvers)
-
No EE-specific changes
...
...
app/assets/javascripts/approvals.js
View file @
48c34172
(
function
()
{
$
(
function
()
{
$
(
"
.approver-list
"
).
on
(
"
click
"
,
"
.unsaved-approvers.approver .btn-remove
"
,
function
()
{
$
(
"
.approver-list
"
).
on
(
"
click
"
,
"
.unsaved-approvers.approver .btn-remove
"
,
function
(
ev
)
{
var
removeElement
=
$
(
this
).
closest
(
"
li
"
);
var
approverId
=
parseInt
(
removeElement
.
attr
(
"
id
"
).
replace
(
"
user_
"
,
""
));
var
approverId
=
parseInt
(
removeElement
.
attr
(
"
id
"
).
replace
(
"
user_
"
,
""
)
,
10
);
var
approverIds
=
$
(
"
input#merge_request_approver_ids
"
);
var
skipUsers
=
approverIds
.
data
(
"
skip-users
"
)
||
[];
var
approverIndex
=
skipUsers
.
indexOf
(
approverId
);
...
...
@@ -13,12 +13,12 @@
approverIds
.
data
(
"
skip-users
"
,
skipUsers
.
splice
(
approverIndex
,
1
));
}
return
false
;
ev
.
preventDefault
()
;
});
$
(
"
.approver-list
"
).
on
(
"
click
"
,
"
.unsaved-approvers.approver-group .btn-remove
"
,
function
()
{
$
(
"
.approver-list
"
).
on
(
"
click
"
,
"
.unsaved-approvers.approver-group .btn-remove
"
,
function
(
ev
)
{
var
removeElement
=
$
(
this
).
closest
(
"
li
"
);
var
approverGroupId
=
parseInt
(
removeElement
.
attr
(
"
id
"
).
replace
(
"
group_
"
,
""
));
var
approverGroupId
=
parseInt
(
removeElement
.
attr
(
"
id
"
).
replace
(
"
group_
"
,
""
)
,
10
);
var
approverGroupIds
=
$
(
"
input#merge_request_approver_group_ids
"
);
var
skipGroups
=
approverGroupIds
.
data
(
"
skip-groups
"
)
||
[];
var
approverGroupIndex
=
skipGroups
.
indexOf
(
approverGroupId
);
...
...
@@ -29,7 +29,7 @@
approverGroupIds
.
data
(
"
skip-groups
"
,
skipGroups
.
splice
(
approverGroupIndex
,
1
));
}
return
false
;
ev
.
preventDefault
()
;
});
$
(
"
form.merge-request-form
"
).
submit
(
function
()
{
...
...
doc/api/groups.md
View file @
48c34172
...
...
@@ -7,7 +7,7 @@ Get a list of groups. (As user: my groups or all available, as admin: all groups
Parameters:
-
`all_available`
(optional) - if passed, show all groups you have access to
-
`skip_groups`
(optional)(array of group
path
s) - if passed, skip groups
-
`skip_groups`
(optional)(array of group
ID
s) - if passed, skip groups
```
GET /groups
...
...
doc/user/project/merge_requests/merge_request_approvals.md
View file @
48c34172
...
...
@@ -62,7 +62,7 @@ sent to them and a todo is added to their list of todos.
> [Introduced][ee-743] in GitLab Enterprise Edition 8.13.
You can also
assign
one or more groups that can be assigned as approvers. It
You can also
define
one or more groups that can be assigned as approvers. It
works the same way like regular approvers do, the only difference is that you
assign several users with one action. One possible scenario would be to to assign
a group of approvers at the project level and change them later when creating
...
...
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