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: Implement a SingerWriter class in singer_sdk.io_base and use it to emit Singer messages #2058

Conversation

BuzzCutNorman
Copy link
Contributor

@BuzzCutNorman BuzzCutNorman commented Nov 20, 2023

Creates a SingerWriter class in singer_sdk.io_base which the write_message(), and format_message functions from singer_sdk._singerlib.messages are placed into. After doinng this all the stdin and stdout methods, json encoders, and json decoder would be in one file. SingerWriter was added as an inherited class of Tap just like SingerReader is an inherited class of Target.


📚 Documentation preview 📚: https://meltano-sdk--2058.org.readthedocs.build/en/2058/

Copy link

codspeed-hq bot commented Nov 20, 2023

CodSpeed Performance Report

Merging #2058 will not alter performance

Comparing BuzzCutNorman:refactor-add-singerwriter-class-to-io-base (f105b5b) with main (8e6a070)

Summary

✅ 1 untouched benchmarks

Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8e6a070) 87.45% compared to head (f105b5b) 87.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2058      +/-   ##
==========================================
+ Coverage   87.45%   87.46%   +0.01%     
==========================================
  Files          58       58              
  Lines        4861     4867       +6     
  Branches      994      993       -1     
==========================================
+ Hits         4251     4257       +6     
  Misses        429      429              
  Partials      181      181              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edgarrmondragon edgarrmondragon changed the title refactor: Add SingerWriter Class to singer_sdk.io_base refactor: Implement a SingerWriter class in singer_sdk.io_base and use it to emit Singer messages Nov 21, 2023
Copy link
Collaborator

@edgarrmondragon edgarrmondragon left a comment

Choose a reason for hiding this comment

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

Thanks @BuzzCutNorman!

@edgarrmondragon edgarrmondragon added this pull request to the merge queue Nov 21, 2023
Merged via the queue into meltano:main with commit f96df37 Nov 21, 2023
27 checks passed
@BuzzCutNorman BuzzCutNorman deleted the refactor-add-singerwriter-class-to-io-base branch November 28, 2023 15:10
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