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:
@@ -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
|
||||
+2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user