fix(discovery): fix bug in event-based discovery that causes unnecessary API calls to Bitbucket Cloud

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2025-03-26 11:36:05 +01:00
parent 32619f07f8
commit 146e41b996
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-bitbucket-cloud': patch
---
Fixed bug in event-based discovery that caused unnecessary API calls to Bitbucket Cloud
@@ -326,6 +326,8 @@ export class BitbucketCloudEntityProvider implements EntityProvider {
const optRepoFilter = repoSlug ? ` repo:${repoSlug}` : '';
const query = `"${catalogFilename}" path:${catalogPath}${optRepoFilter}`;
if (repoSlug) return this.processQuery(workspace, query);
const projects = this.client
.listProjectsByWorkspace(workspace)
.iterateResults();