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

Rename and segment avro_client functionality #29

Merged
merged 16 commits into from
Jul 17, 2024

Conversation

fatimarahman
Copy link
Contributor

@fatimarahman fatimarahman commented Jul 2, 2024

To service DE-101 (Python rewrite of Firehose Avro decoding), I have made the following changes:

  • Split Avro decoding and encoding capabilities into separate classes (AvroDecoder and AvroEncoder)
  • Made retrieving JSON schemas a publicly accessible functionality
  • Added ability to decode batches of records to AvroDecoder (+ additional tests to make sure this works)

@fatimarahman fatimarahman self-assigned this Jul 2, 2024
@fatimarahman
Copy link
Contributor Author

Are we still using flake8 as the linter here? Or should I switch it to black in the Makefile?

@aaronfriedman6
Copy link
Contributor

Are we still using flake8 as the linter here? Or should I switch it to black in the Makefile?

Yeah since this is used by multiple teams I don't think we should switch to black because it will require touching all the files and will make the git history a little confusing. Do you mind keeping the linter as flake8 and reverting the reformatting commit?

@fatimarahman
Copy link
Contributor Author

Fixed it! @aaronfriedman6

Copy link
Contributor

@aaronfriedman6 aaronfriedman6 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 -- just a couple small changes plus one more function and I think it'll be good to go!

CHANGELOG.md Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
src/nypl_py_utils/classes/avro_client.py Outdated Show resolved Hide resolved
src/nypl_py_utils/classes/avro_client.py Outdated Show resolved Hide resolved
tests/test_avro_client.py Outdated Show resolved Hide resolved
src/nypl_py_utils/classes/avro_client.py Show resolved Hide resolved
src/nypl_py_utils/classes/avro_client.py Outdated Show resolved Hide resolved
tests/test_avro_client.py Outdated Show resolved Hide resolved
src/nypl_py_utils/classes/avro_client.py Outdated Show resolved Hide resolved
src/nypl_py_utils/classes/avro_client.py Outdated Show resolved Hide resolved
src/nypl_py_utils/classes/avro_client.py Outdated Show resolved Hide resolved
@aaronfriedman6
Copy link
Contributor

I think you accidentally switched back to using the black formatter

Copy link
Contributor

@aaronfriedman6 aaronfriedman6 left a comment

Choose a reason for hiding this comment

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

In addition to the comments, please reformat to flake8 and update the CHANGELOG -- then this should be good to go!

src/nypl_py_utils/classes/avro_client.py Outdated Show resolved Hide resolved
tests/test_avro_client.py Show resolved Hide resolved
aaronfriedman6
aaronfriedman6 previously approved these changes Jul 17, 2024
src/nypl_py_utils/classes/avro_client.py Outdated Show resolved Hide resolved
@fatimarahman fatimarahman merged commit 41ef2df into main Jul 17, 2024
2 checks passed
@fatimarahman fatimarahman deleted the de-101/python-rewrite branch July 17, 2024 14:24
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