New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 847687 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

add support for JSON field names in field mask

Project Member Reported by no...@chromium.org, May 30 2018

Issue description

when response is in JSONPB format, the field names in a fieldmask must use camelCase.

Update https://cs.chromium.org/chromium/infra/luci/appengine/components/components/protoutil/field_masks.py
to support camelCase.

This does not affect clients that use binary encoding
 

Comment 1 by no...@chromium.org, May 30 2018

Status: Started (was: Assigned)
Project Member

Comment 3 by bugdroid1@chromium.org, May 30 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/luci/luci-py.git/+/427f59f773f8bd67da170ca9f567395451d04ab1

commit 427f59f773f8bd67da170ca9f567395451d04ab1
Author: Nodir Turakulov <nodir@google.com>
Date: Wed May 30 20:48:46 2018

[prpc] add context.(request|response)_encoding

Add Context.request_encoding and Context.response_encoding.
Context.response_encoding will be used to use decide whether to interpret
field names in a field mask as json names.

Bug:  847687 
Change-Id: I7dab95b504430bf046139d2ba04a61e753710b7a
Reviewed-on: https://chromium-review.googlesource.com/1079812
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Nodir Turakulov <nodir@chromium.org>

[modify] https://crrev.com/427f59f773f8bd67da170ca9f567395451d04ab1/appengine/components/components/prpc/__init__.py
[modify] https://crrev.com/427f59f773f8bd67da170ca9f567395451d04ab1/appengine/components/components/prpc/context.py
[modify] https://crrev.com/427f59f773f8bd67da170ca9f567395451d04ab1/appengine/components/components/prpc/server.py

Project Member

Comment 4 by bugdroid1@chromium.org, Jun 1 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/infra/+/52f7af524e6b722c936502a94a255ed948854709

commit 52f7af524e6b722c936502a94a255ed948854709
Author: Nodir Turakulov <nodir@google.com>
Date: Fri Jun 01 15:40:28 2018

[buildbucket] Add support for JSONPB field mask

If response is JSON, parse field mask with json_names=True

Bug:  847687 
Change-Id: Ibe5c624e1695dfbb7fb6e9efb71f1baf04391edd
Reviewed-on: https://chromium-review.googlesource.com/1079848
Commit-Queue: Nodir Turakulov <nodir@chromium.org>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>

[modify] https://crrev.com/52f7af524e6b722c936502a94a255ed948854709/appengine/cr-buildbucket/v2/api.py

Comment 5 by no...@chromium.org, Jun 1 2018

Status: Fixed (was: Started)

Sign in to add a comment