Merge branch '38052-use-simple-api-for-projects' into 'master'

Use `simple=true` for projects API in Projects dropdown for better search performance

Closes #38052

See merge request gitlab-org/gitlab-ce!14585
This commit is contained in:
Tim Zallmann 2017-10-02 07:39:07 +00:00
commit 147c46cca1
3 changed files with 7 additions and 2 deletions

View file

@ -19,7 +19,7 @@ export default class ProjectsService {
getSearchedProjects(searchQuery) {
return this.projectsPath.get({
simple: false,
simple: true,
per_page: 20,
membership: !!gon.current_user_id,
order_by: 'last_activity_at',

View file

@ -0,0 +1,5 @@
---
title: Use `simple=true` for projects API in Projects dropdown for better search performance
merge_request:
author:
type: other

View file

@ -34,7 +34,7 @@ describe('ProjectsService', () => {
const searchQuery = 'lab';
const queryParams = {
simple: false,
simple: true,
per_page: 20,
membership: true,
order_by: 'last_activity_at',