Skip to content

Fix kafka json byte encoding to match rest server#1622

Merged
sakoush merged 6 commits into
SeldonIO:masterfrom
DerTiedemann:tiedemann/fix/kafka-json-bytes-encoding
Jul 4, 2024
Merged

Fix kafka json byte encoding to match rest server#1622
sakoush merged 6 commits into
SeldonIO:masterfrom
DerTiedemann:tiedemann/fix/kafka-json-bytes-encoding

Conversation

@DerTiedemann

Copy link
Copy Markdown
Contributor

fixes #1621

@sakoush

sakoush commented Mar 11, 2024

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor Author

@sakoush ready for review!

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

@sakoush sakoush left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread tests/codecs/test_json.py Outdated
Comment thread tests/codecs/test_json.py
Comment thread mlserver/codecs/json.py Outdated
Comment thread tests/codecs/test_json.py
@sakoush

sakoush commented Apr 19, 2024

Copy link
Copy Markdown
Contributor

@DerTiedemann any feedback on review comments?

@DerTiedemann

Copy link
Copy Markdown
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

CLAassistant commented May 22, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

The function encode_to_json_bytes is the same as _render

@sakoush sakoush left a comment

Copy link
Copy Markdown
Contributor

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

sakoush commented May 29, 2024

Copy link
Copy Markdown
Contributor

@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
@sakoush

sakoush commented Jul 4, 2024

Copy link
Copy Markdown
Contributor

@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