Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3312

Factor out JSON to repeated protobuf conversion

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.25.0
    • None
    • Mesosphere Sprint 17, Mesosphere Sprint 18, Mesosphere Sprint 19
    • 2

    Description

      In general, we have the collection of protobuf messages as another protobuf message, which makes JSON -> protobuf conversion straightforward. This is not always the case, for example, Resources class is not a protobuf, though protobuf-convertible.

      To facilitate conversions like JSON -> Resources and avoid writing code for each particular case, we propose to introduce JSON::Array -> repeated protobuf conversion. With this in place, JSON::Array -> Resources boils down to JSON::Array -> repeated Resource -> (extra c-tor call) -> Resources.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            alexr Alex R
            alexr Alex R
            Michael Park Michael Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprints:
                Mesosphere Sprint 17 ended 31/Aug/15
                Mesosphere Sprint 18 ended 14/Sep/15
                Mesosphere Sprint 19 ended 28/Sep/15
                View on Board

                Slack

                  Issue deployment