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

refactor: simplify mr blobby v2 abstractions #27896

Merged
merged 9 commits into from
Jan 27, 2025
Merged

Conversation

pl
Copy link
Contributor

@pl pl commented Jan 26, 2025

Problem

After the feedback from code reviews this week, it was clear that the code would be more readable for the team if some indirections were removed. Initially, I added the abstractions to make it easier to isolate the test dependencies, but Jest provides an API for mocking modules, so the indirections were not necessary to isolate the dependencies for testing.

Changes

I inlined several constructor invocations to make the code more linear to read.

I also moved the tests to be alongside the implementation files.

Does this work well for both Cloud and self-hosted?

Yest

How did you test this code?

Unit tests.

@pl pl requested review from benjackwhite, meikelmosby and a team January 26, 2025 15:34
@pl pl changed the title refactor: simplify kafka offset manager refactor: simplify mr blobby v2 abstractions Jan 26, 2025
Copy link
Contributor

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

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

Didn't check things too closely as there are a lot of mini changes here but the overall abstraction levels seems much cleaner and easier to parse.

@pl pl merged commit c0d674f into master Jan 27, 2025
95 checks passed
@pl pl deleted the pl/mrbv2_simplify_classes branch January 27, 2025 09:15
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