Commit 8916009a authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '284471-fix-project-filter-too-many-search-results' into 'master'

Fix new project filter returning too many search results

See merge request gitlab-org/gitlab!68353
parents f2a5454d e093ff23
...@@ -92,7 +92,6 @@ export default { ...@@ -92,7 +92,6 @@ export default {
manual: true, manual: true,
variables() { variables() {
return { return {
pageSize: 20,
fullPath: this.groupFullPath, fullPath: this.groupFullPath,
// The IDs have to be in the format "gid://gitlab/Project/${projectId}" // The IDs have to be in the format "gid://gitlab/Project/${projectId}"
ids: convertToGraphQLIds(PROJECT_ENTITY_NAME, this.uncachedIds), ids: convertToGraphQLIds(PROJECT_ENTITY_NAME, this.uncachedIds),
...@@ -125,6 +124,7 @@ export default { ...@@ -125,6 +124,7 @@ export default {
}, },
variables() { variables() {
return { return {
pageSize: 20,
fullPath: this.groupFullPath, fullPath: this.groupFullPath,
search: this.searchTerm, search: this.searchTerm,
}; };
......
query instanceProjects($search: String) { query instanceProjects($search: String, $pageSize: Int) {
instance: instanceSecurityDashboard { instance: instanceSecurityDashboard {
projects(search: $search) { projects(search: $search, first: $pageSize) {
nodes { nodes {
id id
name name
......
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