Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NBS1.0] Deprecate database manager from commons package #25257

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

camilaibs
Copy link
Contributor

@camilaibs camilaibs commented Jun 15, 2024

Hey, I just made a Pull Request!

Ref: #25148
The DatabaseService types and implementations were extracted to the package @backstage/backend-defaults and deprecated from @backstage/backend-commons. This change is a preparation for the New Backend System stable release.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented Jun 15, 2024

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/backend-common packages/backend-common patch v0.23.0-next.3

@camilaibs camilaibs changed the title refactor: deprecate common database manager [NBS1.0] Deprecate database manager from commons package Jun 15, 2024
@camilaibs camilaibs force-pushed the camilaibs/nbs10-deprecate-database-common-impl branch 2 times, most recently from 5889127 to c466a76 Compare June 15, 2024 08:20
* @public
* @deprecated Use `DatabaseManager` from the `@backstage/backend-defaults` package instead
*/
export class DatabaseManager implements LegacyRootDatabaseService {
Copy link
Contributor Author

@camilaibs camilaibs Jun 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

I could not extends the _DatabaseManager class as its constructor is private and could not assign it to constant because constants cannot be used as a class type.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when you do the export const X = _X style? I think we're already doing that in several places. Do we need to fix those?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I start getting the error of constants cannot be used as type:
image

Copy link
Contributor Author

@camilaibs camilaibs Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the error only happens to classes because they can be used both as value and type...

@camilaibs camilaibs force-pushed the camilaibs/nbs10-deprecate-database-common-impl branch 2 times, most recently from baa8a48 to 9f519be Compare June 15, 2024 08:27
@camilaibs camilaibs marked this pull request as ready for review June 15, 2024 08:27
@camilaibs camilaibs requested review from a team as code owners June 15, 2024 08:27
@camilaibs camilaibs requested review from a team and backstage-service as code owners June 15, 2024 08:37
@camilaibs camilaibs requested a review from acierto June 15, 2024 08:37
@github-actions github-actions bot added storybook https://backstage.io/storybook area:catalog Related to the Catalog Project Area area:techdocs Related to the TechDocs Project Area microsite Changes to backstage.io homepage Features for the composable homepage area:scaffolder Everything and all things related to the scaffolder project area area:discoverability Related to the Discoverability Project Area labels Jun 15, 2024
@camilaibs camilaibs force-pushed the camilaibs/nbs10-deprecate-database-common-impl branch from dc7c256 to f8c5bee Compare June 15, 2024 08:38
@github-actions github-actions bot removed storybook https://backstage.io/storybook area:catalog Related to the Catalog Project Area area:techdocs Related to the TechDocs Project Area labels Jun 15, 2024
@github-actions github-actions bot removed microsite Changes to backstage.io homepage Features for the composable homepage area:scaffolder Everything and all things related to the scaffolder project area area:discoverability Related to the Discoverability Project Area labels Jun 15, 2024
Copy link
Member

@freben freben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@freben
Copy link
Member

freben commented Jun 17, 2024

rebase needed though!

Signed-off-by: Camila Belo <camilaibs@gmail.com>
@camilaibs camilaibs force-pushed the camilaibs/nbs10-deprecate-database-common-impl branch from f8c5bee to ed3074e Compare June 17, 2024 12:18
@camilaibs camilaibs enabled auto-merge June 17, 2024 12:41
@camilaibs camilaibs merged commit 2e46ba1 into master Jun 17, 2024
27 checks passed
@camilaibs camilaibs deleted the camilaibs/nbs10-deprecate-database-common-impl branch June 17, 2024 12:49
Copy link
Contributor

Thank you for contributing to Backstage! The changes in this pull request will be part of the 1.28.0 release, scheduled for Tue, 18 Jun 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants