forked from backstage/backstage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: fix event support for Bitbucket Cloud
Fixes the event-based updates at `BitbucketCloudEntityProvider`. Previously, this entity provider had optional event support for legacy backends that could be enabled by passing `catalogApi`, `events`, and `tokenManager`. For the new/current backend system, the `catalogModuleBitbucketCloudEntityProvider` (`catalog.bitbucket-cloud-entity-provider`), event support was enabled by default. A recent change removed `tokenManager` as a dependency from the module as well as removed it as input. While this didn't break the instantiation of the module, it broke the event-based updates and led to a runtime misbehavior, accompanied by an info log message. This change will replace the use of `tokenManager` with the use of `auth` (`AuthService`). Additionally, it will make `catalogApi` and `events` required dependencies. For the current backend system, this change is transparent and doesn't require any action. For the legacy backend system, this change will require you to pass those dependencies if you didn't do it already. **BREAKING CHANGES:** > _(For legacy backend users only.)_ > > Previously optional `catalogApi`, and `events` are required now. > A new required dependency `auth` was added. Fixes: backstage#26925 Relates-to: PR backstage#26141 Signed-off-by: Patrick Jungermann <[email protected]>
- Loading branch information
1 parent
1b05958
commit 6343c8d
Showing
8 changed files
with
135 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
'@backstage/plugin-catalog-backend-module-bitbucket-cloud': minor | ||
--- | ||
|
||
Fixes the event-based updates at `BitbucketCloudEntityProvider`. | ||
|
||
Previously, this entity provider had optional event support for legacy backends | ||
that could be enabled by passing `catalogApi`, `events`, and `tokenManager`. | ||
|
||
For the new/current backend system, the `catalogModuleBitbucketCloudEntityProvider` | ||
(`catalog.bitbucket-cloud-entity-provider`), event support was enabled by default. | ||
|
||
A recent change removed `tokenManager` as a dependency from the module as well as removed it as input. | ||
While this didn't break the instantiation of the module, it broke the event-based updates, | ||
and led to a runtime misbehavior, accompanied by an info log message. | ||
|
||
This change will replace the use of `tokenManager` with the use of `auth` (`AuthService`). | ||
|
||
Additionally, to simplify, it will make `catalogApi` and `events` required dependencies. | ||
For the current backend system, this change is transparent and doesn't require any action. | ||
For the legacy backend system, this change will require you to pass those dependencies | ||
if you didn't do it already. | ||
|
||
BREAKING CHANGES: | ||
|
||
_(For legacy backend users only.)_ | ||
|
||
Previously optional `catalogApi`, and `events` are required now. | ||
A new required dependency `auth` was added. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.