Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
0bce8cb26341
Commit
a63f4579
authored
Apr 05, 2017
by
Alfredo Sumaran
Committed by
Jacob Schatz
Apr 05, 2017
Browse files
Make group skip validation in the frontend
parent
da6016356d52
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/groups_select.js
View file @
0bce8cb2
...
@@ -45,14 +45,14 @@ window.GroupsSelect = (function() {
...
@@ -45,14 +45,14 @@ window.GroupsSelect = (function() {
page
,
page
,
per_page
:
GroupsSelect
.
PER_PAGE
,
per_page
:
GroupsSelect
.
PER_PAGE
,
all_available
,
all_available
,
skip_groups
,
};
};
},
},
results
:
function
(
data
,
page
)
{
results
:
function
(
data
,
page
)
{
if
(
data
.
length
)
return
{
results
:
[]
};
if
(
data
.
length
)
return
{
results
:
[]
};
const
result
s
=
data
.
length
?
data
:
data
.
results
||
[];
const
group
s
=
data
.
length
?
data
:
data
.
results
||
[];
const
more
=
data
.
pagination
?
data
.
pagination
.
more
:
false
;
const
more
=
data
.
pagination
?
data
.
pagination
.
more
:
false
;
const
results
=
groups
.
filter
(
group
=>
skip_groups
.
indexOf
(
group
.
id
)
===
-
1
);
return
{
return
{
results
,
results
,
...
...
changelogs/unreleased/fix-groups-long-url.yml
0 → 100644
View file @
0bce8cb2
---
title
:
Skip groups validation on the client
merge_request
:
author
:
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