Commit e093ff23 authored by Daniel Tian's avatar Daniel Tian

Fix project filter returning too many search results

parent b9f9dd47
...@@ -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