mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Park (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-7674) Update the generic Protobuf to JSON facility to not output deprecated fields
Date Tue, 20 Jun 2017 09:18:00 GMT

    [ https://issues.apache.org/jira/browse/MESOS-7674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16055423#comment-16055423
] 

Michael Park commented on MESOS-7674:
-------------------------------------

https://reviews.apache.org/r/60207/
https://reviews.apache.org/r/60222/
https://reviews.apache.org/r/60223/

> 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)

Mime
View raw message