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

Packages with "enum" Schema Types Should Present a Drop Down

    Details

      Description

      When creating a package, you have to define a schema in the config file:

      "name": {
        "description": "Display name for the service on the DC/OS dashboard",
        "type": "string",
        "default": "my-app"
      },
      "format": {
        "description": "A sample config option - which format to use",
        "type": "string",
        "default": "json",
        "enum": [
          "json",
          "yaml"
        ]
      },
      ...
      

      This controls what values are allowed to be entered when installing the package via the Universe.

      Currently, when a value specifies "enum" for its allowed values (a valid JSONSchema markup), the package install dialog shows a textbox.

      To make this easier for the user, a drop-down select box should be shown with the allowed values as options.

        Attachments

          Activity

            People

            • Assignee:
              amr Amr Abdelrazik
              Reporter:
              mattf Matt Fuller (Inactive)
              Team:
              Frontend Team
              Watchers:
              Amr Abdelrazik, Julian Gieseke
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: