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: #26925
Relates-to: PR #26141
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
- Fixes the support for the new backend system that was broken entirely
(with and without events support).
- Migrates the `BitbucketCloudEntityProvider` to use the `EventsService`.
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
* Added more documentation on migrating catalog modules to the new backend system. (A-Github)
* Tweaked a few existing documentation page to recommend schedules are set via
Signed-off-by: Alex Crome <afscrome@users.noreply.github.com>
The purpose of this change is to highlight the style of API access token required to enable the Bitbucket Cloud integration as it was not previously clear. The existing error will not distinguish between an Atlassian Account key(which wont work) and a Bitbucket App Password(which will.
Signed-off-by: John Kriter <john.r.kriter@accenture.com>
Add a new entity provider `BitbucketCloudEntityProvider`
as a new plugin `@backstage/plugin-catalog-backend-module-bitbucket-cloud`.
The new plugin utilizes `@backstage/plugin-bitbucket-cloud-common`
and it fully independent of `@backstage/plugin-catalog-backend-module-bitbucket`
which provides a catalog processors supporting Bitbucket Cloud and Bitbucket Server.
Relates-to: #9923
Relates-to: #10183
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>