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

Standardisation of rest apis #847

Merged
merged 5 commits into from
Sep 13, 2019

Conversation

axsaucedo
Copy link
Contributor

Fixes #739

When a REST request gets parsed into a Proto, all the integers get converted to floats, which ends up changing the requests. This was fixed for the /predict endpoint in #707. This has now been done with all the APIs except the feedback API as that uses a different GRPC object.

@axsaucedo
Copy link
Contributor Author

/assign @axsaucedo

@axsaucedo
Copy link
Contributor Author

/assign @cliveseldon

@axsaucedo
Copy link
Contributor Author

/unassign @cliveseldon

@axsaucedo
Copy link
Contributor Author

/cc @cliveseldon

@seldondev seldondev requested a review from ukclivecox September 6, 2019 16:46
@axsaucedo
Copy link
Contributor Author

/uncc @arnaudvl

@seldondev seldondev removed the request for review from arnaudvl September 6, 2019 16:47
@jklaise
Copy link
Contributor

jklaise commented Sep 12, 2019

@axsaucedo should the changes for the feedback API be done in a different PR?

@axsaucedo
Copy link
Contributor Author

@jklaise my thoughts were to keep the feedback as is, as the only reason we're modifying the rest of the APIs is due to the requirement for proxy servers (TFserving and potentially others). The feedback API currently doesn't seem to require this functionality, and feedback may be different as we implement the stateful metrics piece. I think for now perhaps as you say we can create an issue to address this in a different PR if required. What are your thoughts.

@jklaise
Copy link
Contributor

jklaise commented Sep 12, 2019

There is another side effect which was solved for the /predict endpoint and this PR solves for others (apart from /send-feedback) - default values of metrics were missing, i.e. if a metric has a value of 0, protobuf conversion interprets it as missing and returns the metric e.g. as {"key":"accuracy", "type": "GAUGE} when it should be {"key":"accuracy", "type": "GAUGE, "value": 0}, this will need to be fixed for the /send-feedback endpoint too for the stateful metrics. But I agree that this could be a separate PR possibly with additional functionality.

@axsaucedo
Copy link
Contributor Author

@jklaise I've added #861 to reflect the changes requested from the metrics piece. let me know if you think anything else needs changing (also if @cliveseldon has any further requests)

@ukclivecox
Copy link
Contributor

I think you will need to rebase for this to be mergable.

@jklaise
Copy link
Contributor

jklaise commented Sep 13, 2019

/lgtm

@seldondev seldondev removed the lgtm label Sep 13, 2019
@seldondev
Copy link
Collaborator

New changes are detected. LGTM label has been removed.

@axsaucedo
Copy link
Contributor Author

Thanks @jklaise
/approve

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: axsaucedo, jklaise

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 806e31b into SeldonIO:master Sep 13, 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.

Ensure JSON format is not modified for ALL the REST APIs (only implemented for /predict)
4 participants