Commit 147c46cc authored by Tim Zallmann's avatar Tim Zallmann

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
parents 0d9158d7 4775b93f
......@@ -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',
......
---
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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment