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:
commit
147c46cca1
3 changed files with 7 additions and 2 deletions
|
@ -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',
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Use `simple=true` for projects API in Projects dropdown for better search performance
|
||||
merge_request:
|
||||
author:
|
||||
type: other
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue