Commit 4a17ac29 authored by kushalpandya's avatar kushalpandya

Use `simple=true` for projects API for better performance

parent 39b4dab0
...@@ -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: false, simple: true,
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',
......
...@@ -34,7 +34,7 @@ describe('ProjectsService', () => { ...@@ -34,7 +34,7 @@ describe('ProjectsService', () => {
const searchQuery = 'lab'; const searchQuery = 'lab';
const queryParams = { const queryParams = {
simple: false, simple: true,
per_page: 20, per_page: 20,
membership: true, membership: true,
order_by: 'last_activity_at', 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