Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-4655

Decision: Storing jobs form schema

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Won't Do
    • Affects Version/s: DC/OS 1.13
    • Fix Version/s: None
    • Component/s: dcos-ui
    • Labels:
      None

      Description

      AC: Decide how to store and retrieve jobs form JSON schema.

      Options:

      Context:

      • JSON schema in its current form has some elements that are incompatible with react-jsonschema-form
        • additionalProperties (used with labels) and patternProperties (used with env and secrets) are not supported
        • UCR, docker: neither are required but both have nested fields that are required if selected (currently the form schema bubbles this up to make them both required)
      • UCR, docker: only one of these options can be selected but that is not indicated by the JSON schema
      • JSON schema is not structured by tab like the schema we receive for the Framework form is
      • Translation of form fields needs to be considered

      These constraints mean that the schema will have to be modified either directly or by the client. Storing on the client would give greater flexibility for structuring the schema in a way that suits the UI and would make translation easier, but comes at the cost of potentially not having the latest schema details from metronome.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nataliesmith Natalie Smith
              Team:
              Frontend Team
              Watchers:
              Julian Gieseke, Natalie Smith
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: