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

Fix kafka json byte encoding to match rest server #1622

Merged

Conversation

DerTiedemann
Copy link
Contributor

fixes #1621

@sakoush
Copy link
Member

sakoush commented Mar 11, 2024

@DerTiedemann many thanks for you draft PR. This looks fine in general. We are happy to potentially accept your contribution once it is ready and reviewed.

refactored common logic into new codec class
@DerTiedemann DerTiedemann force-pushed the tiedemann/fix/kafka-json-bytes-encoding branch from 81d61ee to a7172a9 Compare March 13, 2024 13:09
@DerTiedemann DerTiedemann marked this pull request as ready for review March 13, 2024 13:27
@DerTiedemann
Copy link
Contributor Author

@sakoush ready for review!

@sakoush sakoush self-requested a review March 15, 2024 22:19
Copy link
Member

@sakoush sakoush left a comment

Choose a reason for hiding this comment

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

@DerTiedemann many thanks for your contribution, this looks great. I left minor comments but should be good to go once they are addressed.

tests/codecs/test_json.py Outdated Show resolved Hide resolved
tests/codecs/test_json.py Show resolved Hide resolved
mlserver/codecs/json.py Outdated Show resolved Hide resolved
tests/codecs/test_json.py Show resolved Hide resolved
@sakoush
Copy link
Member

sakoush commented Apr 19, 2024

@DerTiedemann any feedback on review comments?

@DerTiedemann
Copy link
Contributor Author

I haven't been able to work on this recently. In general they are fine and I agree with the requested changes.

@DerTiedemann DerTiedemann requested a review from sakoush May 8, 2024 09:20
@CLAassistant
Copy link

CLAassistant commented May 22, 2024

CLA assistant check
All committers have signed the CLA.

The function encode_to_json_bytes is the same as _render
Copy link
Member

@sakoush sakoush left a comment

Choose a reason for hiding this comment

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

Lgtm. Many thanks for your contribution @DerTiedemann

@sakoush
Copy link
Member

sakoush commented May 29, 2024

@DerTiedemann I have re-triggered CI actions. Looks like there are some issues, e.g linting. For now please discard macos tests as they are currently broken anyway.

@sakoush sakoush merged commit 2446e39 into SeldonIO:master Jul 4, 2024
26 checks passed
@sakoush
Copy link
Member

sakoush commented Jul 4, 2024

@DerTiedemann many thanks for the contribution. I rebased, fixed minor linting issues and merged it.

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.

[BUG]: Kafka Message cannot be serialized to JSON when dict contains bytes
3 participants