[
https://issues.apache.org/jira/browse/MESOS-7674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Park updated MESOS-7674:
--------------------------------
Shepherd: Neil Conway
> Update the generic Protobuf to JSON facility to not output deprecated fields
> ----------------------------------------------------------------------------
>
> Key: MESOS-7674
> URL: https://issues.apache.org/jira/browse/MESOS-7674
> Project: Mesos
> Issue Type: Bug
> Components: stout
> Reporter: Michael Park
> Assignee: Michael Park
> Fix For: 1.4.0
>
>
> The current generic Protobuf to JSON conversion logic in
> {{stout/protobuf.hpp}} prints out fields even if they are deprecated. It
> would be useful to not print deprecated fields so that the user is not
> confused as to why they're seeing it.
> In the context of reservation refinement, the {{Resource.role}} field is
> printed even if it's not set, because it's an optional field with a default
> value. For now, we've added a terrible hack to avoid having to be printed. It
> would be much better to update the generic Protobuf to JSON code to not print
> deprecated fields, and we can remove this hack.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)