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

WIP: Cleanup codebase #78

Merged
merged 5 commits into from
Mar 14, 2023
Merged

WIP: Cleanup codebase #78

merged 5 commits into from
Mar 14, 2023

Conversation

sjwiesman
Copy link
Contributor

@sjwiesman sjwiesman commented Mar 13, 2023

What type of PR is this? (check all applicable)

  • ♻️ Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 👷 Optimization
  • 📝 Documentation Update
  • 🚩 Other

Description

This is an attempt to begin cleaning up the codebase by adding new abstractions around formats and Kafka. This does break the Jest tests, but honestly, I'm not sure how useful those are.

Related Tickets & Documents

Added to documentation?

  • 📜 readme
  • 🙅 no documentation needed

[optional] What gif best describes this PR or how it makes you feel?

Copy link
Collaborator

@chuck-alt-delete chuck-alt-delete left a comment

Choose a reason for hiding this comment

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

This all looks great! Much cleaner. Just a couple of minor notes.

src/kafka/kafkaConfig.ts Outdated Show resolved Hide resolved
src/formats/avroFormat.ts Outdated Show resolved Hide resolved
src/formats/avroFormat.ts Show resolved Hide resolved
});

if (global.debug) {
console.log(`Connecting to Kafka producer...`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be "Connecting to Kafka broker...", right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, whoops

src/dataGenerator.ts Show resolved Hide resolved
sjwiesman and others added 2 commits March 13, 2023 15:27
Co-authored-by: Chuck Larrieu Casias <87353672+chuck-alt-delete@users.noreply.github.com>
Copy link
Collaborator

@bobbyiliev bobbyiliev left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you for taking the time to make all of those refactoring changes!

@sjwiesman sjwiesman marked this pull request as ready for review March 14, 2023 14:07
@sjwiesman sjwiesman merged commit 639dcae into main Mar 14, 2023
@sjwiesman sjwiesman deleted the cleanup branch March 14, 2023 14:08
recursethis pushed a commit to recursethis/materialize-datagen that referenced this pull request Feb 26, 2024
Co-authored-by: Chuck Larrieu Casias <87353672+chuck-alt-delete@users.noreply.github.com>
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

3 participants