-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[NBS1.0] Deprecate database manager from commons package #25257
Conversation
Changed Packages
|
5889127
to
c466a76
Compare
* @public | ||
* @deprecated Use `DatabaseManager` from the `@backstage/backend-defaults` package instead | ||
*/ | ||
export class DatabaseManager implements LegacyRootDatabaseService { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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...
baa8a48
to
9f519be
Compare
dc7c256
to
f8c5bee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
rebase needed though! |
Signed-off-by: Camila Belo <camilaibs@gmail.com>
f8c5bee
to
ed3074e
Compare
Thank you for contributing to Backstage! The changes in this pull request will be part of the |
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
Signed-off-by
line in the message. (more info)