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

Tsk 757 add support for tuple in payload #763

Merged
merged 7 commits into from
Sep 13, 2024

Conversation

hh-space-invader
Copy link
Contributor

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you installed pre-commit with pip3 install pre-commit and set up hooks with pre-commit install?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link

netlify bot commented Sep 2, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit 7ae4280
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/66de4050cc116b00086dbf1e
😎 Deploy Preview https://deploy-preview-763--poetic-froyo-8baba7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -183,6 +183,7 @@ def test_not_jsonable_payload():
{"frozenset": frozenset([1, 2])},
{"set": {1, 2}},
{"uuid": uuid.uuid4()},
{"listvalue": [1, 1]},
Copy link
Member

Choose a reason for hiding this comment

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

I think it should be tested somewhere else
This test is about not jsonable types in payload, however lists and tuples are jsonable

e.g.

>>> import json
>>> json.dumps({"a": (1,2)})
'{"a": [1, 2]}'

Copy link
Member

Choose a reason for hiding this comment

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

Could we maybe add it to the random payload generator in fixtures?

@generall
Copy link
Member

generall commented Sep 3, 2024

why do we need this?

@joein
Copy link
Member

joein commented Sep 4, 2024

@generall

  1. mostly for the congruence, it works this way with http
  2. there is a request Tuple not supported in GRPC payload by Qdrant Client #757 , according to which we used to provide such a behaviour earlier

@joein joein self-requested a review September 9, 2024 08:41
@joein joein merged commit c107fb3 into dev Sep 13, 2024
14 checks passed
joein pushed a commit that referenced this pull request Sep 16, 2024
* Add support for tuple in payload for grpc

* chore: delete health_check_pb2_grpc.py

* chore: Modify payload test case to test tuple datatype

* chore: Removed test case for tuple
We cannot test tuple as the return value is listvalue, so i only kept the list

* chore: Remove excess prints in info endpoint

* chore: Added tuple in random payload generator

* feat: convert the tuple payload of local mode to list for congruence
@hh-space-invader hh-space-invader deleted the TSK-757-add-support-for-tuple-in-payload branch September 25, 2024 07:23
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.

3 participants