backstage icon indicating copy to clipboard operation
backstage copied to clipboard

catalog: use LoggerService instead of winston Logger in ldap module

Open Roshick opened this issue 1 year ago • 5 comments

Hey, I just made a Pull Request!

:heavy_check_mark: Checklist

  • [x] 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)
  • [x] All your commits have a Signed-off-by line in the message. (more info)

Roshick avatar May 07 '24 14:05 Roshick

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/plugin-catalog-backend-module-ldap plugins/catalog-backend-module-ldap patch v0.5.34-next.2

backstage-goalie[bot] avatar May 07 '24 15:05 backstage-goalie[bot]

Note that you'll need to run yarn build:api-reports and commit the results of that too.

Hm this is breaking, isn't it. Then you'll have to bump the changeset to minor. Or alternatively, change the code to accept EITHER a logger service or a winston logger, and it somehow converting it internally if needed.

freben avatar May 10 '24 13:05 freben

@freben as far as I can see this should not be breaking as the new LoggerService is a subset of the old Logger, so for the consumer it shouldn't matter which one they insert as a dependency.

Roshick avatar May 11 '24 07:05 Roshick

Try it in a test. Not sure they're type compatible even if the names are the same. Try to pass in (null as unknown) as WinstonLogger) and see if your editor or typescript complains. I'm not at the computer to check atm

freben avatar May 11 '24 09:05 freben

I'll try it on monday when I'm on my company computer via local linking in our backstage instance.

Roshick avatar May 11 '24 10:05 Roshick

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

github-actions[bot] avatar May 12 '24 11:05 github-actions[bot]

Uffizzi Cluster pr-24675 was deleted.

github-actions[bot] avatar May 12 '24 11:05 github-actions[bot]