You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Michael Park <mp...@apache.org> on 2017/06/19 20:40:01 UTC

Review Request 60207: Added `emit_default_value` option to `JSON::protobuf`.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60207/
-----------------------------------------------------------

Review request for mesos, Neil Conway and Vinod Kone.


Repository: mesos


Description
-------

See summary.


Diffs
-----

  3rdparty/stout/include/stout/protobuf.hpp 2735354256f35d2792c3690bcc8fc61c3f6d9524 


Diff: https://reviews.apache.org/r/60207/diff/1/


Testing
-------


Thanks,

Michael Park


Re: Review Request 60207: Added `emit_default_value` option to `JSON::protobuf`.

Posted by Neil Conway <ne...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60207/#review178294
-----------------------------------------------------------


Fix it, then Ship it!




Needs test coverage.


3rdparty/stout/include/stout/protobuf.hpp
Line 835 (original), 835 (patched)
<https://reviews.apache.org/r/60207/#comment252183>

    Update this comment.


- Neil Conway


On June 19, 2017, 8:40 p.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60207/
> -----------------------------------------------------------
> 
> (Updated June 19, 2017, 8:40 p.m.)
> 
> 
> Review request for mesos, Neil Conway and Vinod Kone.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   3rdparty/stout/include/stout/protobuf.hpp 2735354256f35d2792c3690bcc8fc61c3f6d9524 
> 
> 
> Diff: https://reviews.apache.org/r/60207/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 60207: Changed the semantics of `JSON::protobuf` for deprecated fields [14/N].

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60207/
-----------------------------------------------------------

(Updated June 19, 2017, 10:34 p.m.)


Review request for mesos, Neil Conway and Vinod Kone.


Summary (updated)
-----------------

Changed the semantics of `JSON::protobuf` for deprecated fields [14/N].


Repository: mesos


Description (updated)
-------

Updated `JSON::protobuf` to not emit a __deprecated__ optional field
with a default value if it's explicitily set.


Diffs (updated)
-----

  3rdparty/stout/include/stout/protobuf.hpp 2735354256f35d2792c3690bcc8fc61c3f6d9524 


Diff: https://reviews.apache.org/r/60207/diff/2/

Changes: https://reviews.apache.org/r/60207/diff/1-2/


Testing
-------


Thanks,

Michael Park


Re: Review Request 60207: Added `emit_default_value` option to `JSON::protobuf`.

Posted by Neil Conway <ne...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60207/#review178303
-----------------------------------------------------------



I wonder if an `enum` would be clearer at call-sites than a boolean. e.g., `OMIT_DEFAULT_VALUES`, `INCLUDE_DEFAULT_VALUES`.

- Neil Conway


On June 19, 2017, 8:40 p.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60207/
> -----------------------------------------------------------
> 
> (Updated June 19, 2017, 8:40 p.m.)
> 
> 
> Review request for mesos, Neil Conway and Vinod Kone.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   3rdparty/stout/include/stout/protobuf.hpp 2735354256f35d2792c3690bcc8fc61c3f6d9524 
> 
> 
> Diff: https://reviews.apache.org/r/60207/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Michael Park
> 
>