Skip to content

Remove rollbar-backend legacy backend #4778

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

modethirteen
Copy link

@modethirteen modethirteen commented Jul 27, 2025

Hey, I just made a Pull Request!

Per #4776 (review), this is a breaking change to remove rollbar-backend's deprecated legacy backend interface, enabling a cleaner approach to upcoming improvements.

✔️ 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)

The rollbar backend plugin did not have the id expected by
the frontend plugin and all rollbar to backend requests
failed.

Signed-off-by: James Andrew Vaughn <[email protected]>
@modethirteen modethirteen marked this pull request as ready for review July 27, 2025 18:36
@modethirteen modethirteen requested review from andrewthauer and a team as code owners July 27, 2025 18:36
@modethirteen modethirteen requested a review from awanlin July 27, 2025 18:36
@backstage-goalie
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-rollbar-backend workspaces/rollbar/plugins/rollbar-backend major v0.5.0

@modethirteen modethirteen force-pushed the rollbar-backend-remove-legacy-backend branch 3 times, most recently from 9ae6511 to 8f488c6 Compare July 27, 2025 18:50
Copy link
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Thanks @modethirteen, left a pair of comments, these some of this that I don't think we can simply change as they weren't part of the deprecation notice.

@andrewthauer, would like your feedback on this, would it be safe to make these changes I've commented on?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we can make these changes, they weren't part of the deprecation, for those using this it would be very much an unexpected change.

Copy link
Author

@modethirteen modethirteen Jul 27, 2025

Choose a reason for hiding this comment

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

I understood the path to be total encapsulation in the new backend system plugin registration mechanism, so that might be a misalignment on my part.

It was originally the desire to keep compatibility with the existing RollbarApi constructor that created all the branching code we wanted to avoid in #4776.

If we need to keep RollbarApi as a public interface, is it ok if the constructor now depends on CacheService? This is a major version bump anyways so folks could use the RollbarApi directly but update their call sites to include CacheService. That feels like a reasonable compromise.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, you're moving a bit too fast for me and now these PRs have been changed from what I had seen so it's getting really hard for me to work back on this. Sorry, wasn't expecting you to make changes and work more linearly.

Copy link
Author

@modethirteen modethirteen Jul 27, 2025

Choose a reason for hiding this comment

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

No problem, it's not exactly working hours in North America. I removed the more controversial public interface changes (restored the api module export from index.ts) and I'll await feedback on how to proceed with #4776, which breaks constructor compatibility. I'm a little unsure of how to proceed with a dependency change if we're still exposing the RollbarApi constructor after this refactor - I have one possible path outlined in #4776 (comment).

BREAKING CHANGE: This removes the deprecated createRouter
interface. Going forward the rollbar backend plugin must be
registered using createBackendPlugin

Signed-off-by: James Andrew Vaughn <[email protected]>
@modethirteen modethirteen force-pushed the rollbar-backend-remove-legacy-backend branch from 8f488c6 to 91da254 Compare July 27, 2025 19:59
Copy link
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Thanks, I think this is pretty close to being able to approve and merge. Left one comment about the changeset, easy fix. Then to get the CI green you'll need to update the API Report and commit the changes, details on that here: https://github.com/backstage/community-plugins/blob/main/CONTRIBUTING.md#api-reports

@@ -0,0 +1,5 @@
---
'@backstage-community/plugin-rollbar-backend': major
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'@backstage-community/plugin-rollbar-backend': major
'@backstage-community/plugin-rollbar-backend': minor

Missed this last time around, as this plugin/package is still 0.x we use minor for breaking changes following the upstream Backstage conventions: https://github.com/backstage/backstage/blob/master/REVIEWING.md#reviewing-changeset-bump-levels

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.

2 participants