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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
4a17ac29
Commit
4a17ac29
authored
Sep 29, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `simple=true` for projects API for better performance
parent
39b4dab0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/projects_dropdown/service/projects_service.js
...javascripts/projects_dropdown/service/projects_service.js
+1
-1
spec/javascripts/projects_dropdown/service/projects_service_spec.js
...cripts/projects_dropdown/service/projects_service_spec.js
+1
-1
No files found.
app/assets/javascripts/projects_dropdown/service/projects_service.js
View file @
4a17ac29
...
@@ -19,7 +19,7 @@ export default class ProjectsService {
...
@@ -19,7 +19,7 @@ export default class ProjectsService {
getSearchedProjects
(
searchQuery
)
{
getSearchedProjects
(
searchQuery
)
{
return
this
.
projectsPath
.
get
({
return
this
.
projectsPath
.
get
({
simple
:
fals
e
,
simple
:
tru
e
,
per_page
:
20
,
per_page
:
20
,
membership
:
!!
gon
.
current_user_id
,
membership
:
!!
gon
.
current_user_id
,
order_by
:
'
last_activity_at
'
,
order_by
:
'
last_activity_at
'
,
...
...
spec/javascripts/projects_dropdown/service/projects_service_spec.js
View file @
4a17ac29
...
@@ -34,7 +34,7 @@ describe('ProjectsService', () => {
...
@@ -34,7 +34,7 @@ describe('ProjectsService', () => {
const
searchQuery
=
'
lab
'
;
const
searchQuery
=
'
lab
'
;
const
queryParams
=
{
const
queryParams
=
{
simple
:
fals
e
,
simple
:
tru
e
,
per_page
:
20
,
per_page
:
20
,
membership
:
true
,
membership
:
true
,
order_by
:
'
last_activity_at
'
,
order_by
:
'
last_activity_at
'
,
...
...
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