You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Michael Park (JIRA)" <ji...@apache.org> on 2017/06/14 22:37:00 UTC

[jira] [Created] (MESOS-7674) Update the generic Protobuf to JSON facility to not output deprecated fields

Michael Park created MESOS-7674:
-----------------------------------

             Summary: 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


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)