Skip to content

Commit

Permalink
Update metadata editor to use JupyterLab's new form editor (#2464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martha Cryan authored Jun 1, 2022
1 parent 6bc4fb3 commit 78cc89d
Show file tree
Hide file tree
Showing 39 changed files with 1,590 additions and 1,794 deletions.
9 changes: 6 additions & 3 deletions docs/source/user_guide/command-line-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,19 @@ Application-level properties within a schema reside as top-level properties with
"title": "Tags",
"description": "Tags for categorizing snippets",
"type": "array",
"items": {
"type": "string"
},
"uihints": {
"field_type": "tags"
"ui:field": "tags"
}
},
"language": {
"title": "Language",
"description": "Code snippet implementation language",
"type": "string",
"uihints": {
"field_type": "dropdown",
"ui:field": "dropdown",
"default_choices": [
"Python",
"Java",
Expand All @@ -120,7 +123,7 @@ Application-level properties within a schema reside as top-level properties with
"description": "Code snippet code lines",
"type": "array",
"uihints": {
"field_type": "code",
"ui:field": "code",
"category": "Source"
}
}
Expand Down
17 changes: 6 additions & 11 deletions elyra/metadata/schemas/airflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"enum": ["{GIT_TYPES_PLACEHOLDER}"],
"default": "{GIT_DEFAULT_TYPE_PLACEHOLDER}",
"uihints": {
"field_type": "dropdown",
"category": "Apache Airflow"
}
},
Expand Down Expand Up @@ -108,7 +107,7 @@
"description": "Token that has permission to push to the DAG repository",
"type": "string",
"uihints": {
"secure": true,
"ui:field": "password",
"category": "Apache Airflow"
}
},
Expand Down Expand Up @@ -144,7 +143,6 @@
],
"default": "USER_CREDENTIALS",
"uihints": {
"field_type": "dropdown",
"category": "Cloud Object Storage"
}
},
Expand All @@ -153,7 +151,7 @@
"description": "Kubernetes secret that's defined in the specified user namespace, containing the Cloud Object Storage username and password. This property is required for authentication type KUBERNETES_SECRET.",
"type": "string",
"uihints": {
"secure": true,
"ui:field": "password",
"category": "Cloud Object Storage"
}
},
Expand All @@ -171,7 +169,7 @@
"type": "string",
"minLength": 8,
"uihints": {
"secure": true,
"ui:field": "password",
"category": "Cloud Object Storage"
}
},
Expand All @@ -181,14 +179,11 @@
"uniqueItems": true,
"type": "array",
"items": {
"allOf": [
{ "minLength": 1 },
{ "pattern": "^[^ \t]+" },
{ "pattern": "[^ \t]+$" }
]
"minLength": 1,
"pattern": "^[^ \t]+([ \t]+[^ \t]+)*$"
},
"uihints": {
"field_type": "tags"
"ui:field": "tags"
}
}
},
Expand Down
16 changes: 8 additions & 8 deletions elyra/metadata/schemas/code-snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,19 @@
"type": "array",
"uniqueItems": true,
"items": {
"allOf": [
{ "minLength": 1 },
{ "pattern": "^[^ \t]+" },
{ "pattern": "[^ \t]+$" }
]
"minLength": 1,
"pattern": "^[^ \t]+([ \t]+[^ \t]+)*$"
},
"uihints": {
"field_type": "tags"
"ui:field": "tags"
}
},
"language": {
"title": "Language",
"description": "Code snippet implementation language",
"type": "string",
"uihints": {
"field_type": "dropdown",
"ui:field": "dropdown",
"default_choices": ["Python", "Java", "R", "Scala", "Markdown"],
"category": "Source"
},
Expand All @@ -63,8 +60,11 @@
"title": "Code",
"description": "Code snippet code lines",
"type": "array",
"items": {
"type": "string"
},
"uihints": {
"field_type": "code",
"ui:field": "code",
"category": "Source"
}
}
Expand Down
18 changes: 6 additions & 12 deletions elyra/metadata/schemas/kfp.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"enum": ["Argo", "Tekton"],
"default": "Argo",
"uihints": {
"field_type": "dropdown",
"category": "Kubeflow Pipelines"
}
},
Expand All @@ -91,7 +90,6 @@
"enum": ["{AUTH_PROVIDER_PLACEHOLDERS}"],
"default": "{DEFAULT_AUTH_PROVIDER_PLACEHOLDER}",
"uihints": {
"field_type": "dropdown",
"category": "Kubeflow Pipelines"
}
},
Expand All @@ -108,7 +106,7 @@
"description": "Password for the specified username. This property is required for all authentication types, except NO_AUTHENTICATION and KUBERNETES_SERVICE_ACCOUNT_TOKEN.",
"type": "string",
"uihints": {
"secure": true,
"ui:field": "password",
"category": "Kubeflow Pipelines"
}
},
Expand Down Expand Up @@ -144,7 +142,6 @@
],
"default": "USER_CREDENTIALS",
"uihints": {
"field_type": "dropdown",
"category": "Cloud Object Storage"
}
},
Expand All @@ -153,7 +150,7 @@
"description": "Kubernetes secret that's defined in the specified user namespace, containing the Cloud Object Storage username and password. This property is required for authentication type KUBERNETES_SECRET.",
"type": "string",
"uihints": {
"secure": true,
"ui:field": "password",
"category": "Cloud Object Storage"
}
},
Expand All @@ -171,7 +168,7 @@
"type": "string",
"minLength": 8,
"uihints": {
"secure": true,
"ui:field": "password",
"category": "Cloud Object Storage"
}
},
Expand All @@ -181,14 +178,11 @@
"uniqueItems": true,
"type": "array",
"items": {
"allOf": [
{ "minLength": 1 },
{ "pattern": "^[^ \t]+" },
{ "pattern": "[^ \t]+$" }
]
"minLength": 1,
"pattern": "^[^ \t]+([ \t]+[^ \t]+)*$"
},
"uihints": {
"field_type": "tags"
"ui:field": "tags"
}
}
},
Expand Down
5 changes: 0 additions & 5 deletions elyra/metadata/schemas/local-directory-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"type": "string",
"enum": ["KUBEFLOW_PIPELINES", "APACHE_AIRFLOW"],
"uihints": {
"field_type": "dropdown",
"category": "Runtime"
}
},
Expand All @@ -52,7 +51,6 @@
"maxLength": 18
},
"uihints": {
"field_type": "array",
"category": "Component Categories"
}
},
Expand All @@ -64,7 +62,6 @@
"type": "string"
},
"uihints": {
"field_type": "array",
"category": "Configuration"
}
},
Expand All @@ -73,8 +70,6 @@
"description": "Indicates whether a recursive search for component specification files should be performed on subdirectories",
"type": "boolean",
"uihints": {
"field_type": "boolean",
"placeholder": "false",
"category": "Configuration"
}
}
Expand Down
3 changes: 0 additions & 3 deletions elyra/metadata/schemas/local-file-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"type": "string",
"enum": ["KUBEFLOW_PIPELINES", "APACHE_AIRFLOW"],
"uihints": {
"field_type": "dropdown",
"category": "Runtime"
}
},
Expand All @@ -52,7 +51,6 @@
"maxLength": 18
},
"uihints": {
"field_type": "array",
"category": "Component Categories"
}
},
Expand All @@ -72,7 +70,6 @@
"type": "string"
},
"uihints": {
"field_type": "array",
"category": "Configuration"
}
}
Expand Down
4 changes: 2 additions & 2 deletions elyra/metadata/schemas/metadata-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"type": "string",
"enum": ["elyra", "rocks"],
"uihints": {
"field_type": "dropdown",
"ui:field": "dropdown",
"default_choices": ["elyra"]
}
},
Expand All @@ -108,7 +108,7 @@
"maxItems": 10,
"uniqueItems": true,
"uihints": {
"field_type": "code"
"ui:field": "code"
}
},
"object_test": {
Expand Down
4 changes: 2 additions & 2 deletions elyra/metadata/schemas/metadata-test2.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"type": "string",
"enum": ["elyra", "rocks"],
"uihints": {
"field_type": "dropdown",
"ui:field": "dropdown",
"default_choices": ["elyra"]
}
},
Expand All @@ -98,7 +98,7 @@
"maxItems": 10,
"uniqueItems": true,
"uihints": {
"field_type": "code"
"ui:field": "code"
}
},
"object_test": {
Expand Down
12 changes: 4 additions & 8 deletions elyra/metadata/schemas/runtime-image.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@
"uniqueItems": true,
"type": "array",
"items": {
"allOf": [
{ "minLength": 1 },
{ "pattern": "^[^ \t]+" },
{ "pattern": "[^ \t]+$" }
]
"minLength": 1,
"pattern": "^[^ \t]+([ \t]+[^ \t]+)*$"
},
"uihints": {
"field_type": "tags"
"ui:field": "tags"
}
},
"image_name": {
Expand All @@ -64,7 +61,6 @@
"type": "string",
"enum": ["Always", "IfNotPresent", "Never"],
"uihints": {
"field_type": "dropdown",
"category": "Source"
}
},
Expand All @@ -76,7 +72,7 @@
"maxLength": 253,
"uihints": {
"category": "Source",
"secure": true
"ui:field": "password"
}
}
},
Expand Down
3 changes: 0 additions & 3 deletions elyra/metadata/schemas/url-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"type": "string",
"enum": ["KUBEFLOW_PIPELINES", "APACHE_AIRFLOW"],
"uihints": {
"field_type": "dropdown",
"category": "Runtime"
}
},
Expand All @@ -52,7 +51,6 @@
"maxLength": 18
},
"uihints": {
"field_type": "array",
"category": "Component Categories"
}
},
Expand All @@ -65,7 +63,6 @@
"format": "uri"
},
"uihints": {
"field_type": "array",
"category": "Configuration"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@
"description": "List of runtime types this catalog supports",
"type": "string",
"enum": ["APACHE_AIRFLOW"],
"default": "APACHE_AIRFLOW",
"uihints": {
"field_type": "dropdown"
}
"default": "APACHE_AIRFLOW"
},
"categories": {
"title": "Category Names",
Expand All @@ -54,7 +51,6 @@
},
"default": ["Core packages"],
"uihints": {
"field_type": "array",
"category": "Component Categories"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@
"description": "List of runtime types this catalog supports",
"type": "string",
"enum": ["APACHE_AIRFLOW"],
"default": "APACHE_AIRFLOW",
"uihints": {
"field_type": "dropdown"
}
"default": "APACHE_AIRFLOW"
},
"categories": {
"title": "Category Names",
Expand All @@ -54,7 +51,6 @@
},
"default": ["provider packages"],
"uihints": {
"field_type": "array",
"category": "Component Categories"
}
},
Expand Down
Loading

0 comments on commit 78cc89d

Please sign in to comment.