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 how query responses are sent in upsert HTTP responses. #4375

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Dec 7, 2019

Right now the results of the upsert query are attached to the final
response at the same level as other field (e.g "message", "code") which
introduces the restriction that the names of these fields cannot be used
to name queries.

This PR gets rid of this restriction by attaching the response to the
queries in the "queries" field. This eliminates the need to check for
certain keywords in the query.

Fixes #4361


This change is Reviewable

Right now the results of the upsert query are attached to the final
response at the same level as other field (e.g "message", "code") which
introduces the restriction that the names of these fields cannot be used
to name queries.

This PR gets rid of this restriction by attaching the response to the
queries in the "queries" field. This eliminates the need to check for
certain keywords in the query.
@martinmr martinmr requested review from manishrjain and a team as code owners December 7, 2019 00:14
@martinmr
Copy link
Contributor Author

martinmr commented Dec 7, 2019

@mangalaman93 Is there any changes that have to be done for gRPC responses?

@martinmr martinmr requested a review from mangalaman93 December 7, 2019 00:25
@mangalaman93
Copy link
Contributor

gRPC response is fine. Please get it approved by @manishrjain before we merge.

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @mangalaman93)

@martinmr martinmr merged commit 83ac411 into master Dec 11, 2019
@martinmr martinmr deleted the martinmr/fix-query-response branch December 11, 2019 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Predicate named "code" or "message" generates errors
3 participants