marathon icon indicating copy to clipboard operation
marathon copied to clipboard

Advanced JSON editing mode in app modal

Open philipnrmn opened this issue 11 years ago • 8 comments

As a user, I want to create an app using all fields in its definition from the GUI.

Currently the app modal does not expose all the fields available in the API. This means that a user cannot, for example, specify forcePullImage=true on a docker application.

The modal would become very unwieldy if all fields were available to be edited. We should therefore provide an advanced mode which allows the user to deal directly with the JSON app definition.

ACs

  • a tab allows the user to switch between the form and the JSON editor
  • switching between the two tabs preserves the latest edits in either mode
  • the editor need only check for JSON validity

philipnrmn avatar Aug 20 '15 12:08 philipnrmn

Consider adding 'copy to clipboard', possibly upload and download buttons.

philipnrmn avatar Sep 03 '15 16:09 philipnrmn

@leemunroe What do you think about this issue?

mwasn avatar Nov 17 '15 13:11 mwasn

I can say that I would really appreciate that feature.

kolloch avatar Nov 17 '15 13:11 kolloch

I'd like to note, if I submit an app via JSON (which includes "forcePullImage": true) and then edit it via the UI, the forcePullImage reverts to false. So adding all options to the UI would be great.

mindscratch avatar Nov 17 '15 14:11 mindscratch

Sounds great. We have redesigning the create view in the backlog MARATHON-187 - wondering if it's worth exploring this hand in hand so we don't duplicate work.

leemunroe avatar Nov 17 '15 17:11 leemunroe

@gkleiman pointed out to me that offering requirePorts in the UI would significantly improve the utility of the ports field, thought I'd tack that on to this story instead of creating a story for a new field in the modal.

philipnrmn avatar Dec 04 '15 14:12 philipnrmn

Related for possible implications https://github.com/mesosphere/marathon/issues/3087

pierluigi avatar Jan 28 '16 15:01 pierluigi

Glad that this is happening. I updated a docker image, so I need to set forcePullImage on the app.

mgummelt avatar Feb 02 '16 21:02 mgummelt