fix(catalog-backend-module-github): decreases number of teams fetched in graphql at a time

Signed-off-by: Jonathan Nagayoshi <jonathan@nagayoshi.com.br>
This commit is contained in:
Jonathan Nagayoshi
2024-01-25 21:24:42 +00:00
parent 9a8d556661
commit 94771339d8
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-github': patch
---
Decreased number of teams fetched by GraphQL Query responsible for fetching Teams and Members in organization, due to timeouts when running against big organizations
@@ -193,7 +193,7 @@ export async function getOrganizationTeams(
const query = `
query teams($org: String!, $cursor: String) {
organization(login: $org) {
teams(first: 100, after: $cursor) {
teams(first: 50, after: $cursor) {
pageInfo { hasNextPage, endCursor }
nodes {
slug