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

Functionality for model wrapper to return JSON on any Dict return #1174

Merged
merged 3 commits into from
Dec 3, 2019

Conversation

axsaucedo
Copy link
Contributor

Fixes #1145

@axsaucedo
Copy link
Contributor Author

It seems the path for the tests is already covered by test_create_rest_response_jsondata

@axsaucedo
Copy link
Contributor Author

/cc @adriangonz @cliveseldon

@axsaucedo axsaucedo changed the title WIP: Functionality for model wrapper to return JSON on any Dict return Functionality for model wrapper to return JSON on any Dict return Dec 2, 2019
@axsaucedo
Copy link
Contributor Author

/test integration

1 similar comment
@axsaucedo
Copy link
Contributor Author

/test integration

@adriangonz
Copy link
Contributor

It's a bit scary that we haven't broken any tests after the change. Perhaps it would be good to add one for the new behaviour @axsaucedo?

@axsaucedo
Copy link
Contributor Author

@adriangonz all the current tests (and expected workflows) for jsonData actually do cover this, as it expects that any inputs of jsonData return a dictionary and hence a jsonData, however now the logic is not based on the input being jsonData, but on the return value being a Dict. This would still cover it, but for the sake of explicitness I'll add another tests that sends a numpy array as input and returns a dict, which would explicitly test that no matter what the input, as long as the output is a dict, it will return jsonData.

@seldondev seldondev added size/S and removed size/XS labels Dec 2, 2019
@seldondev
Copy link
Collaborator

seldondev commented Dec 2, 2019

@axsaucedo: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
integration 6fb7297 link /test integration

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@axsaucedo
Copy link
Contributor Author

@adriangonz I added now 👍

@adriangonz
Copy link
Contributor

/approve

Nice! Looks great!

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adriangonz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@seldondev seldondev merged commit dc04beb into SeldonIO:master Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardise Data Mappings in Seldon Wrapper
3 participants