This is an automated email from the ASF dual-hosted git repository.
amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new d73a1752aea Migrate Weaviate connection UI metadata to YAML (#62765)
d73a1752aea is described below
commit d73a1752aea03c6e75d30b6b3ec475ccbeb4ee41
Author: Henry Chen <[email protected]>
AuthorDate: Wed Mar 11 18:53:44 2026 +0800
Migrate Weaviate connection UI metadata to YAML (#62765)
---
providers/weaviate/provider.yaml | 40 ++++++++++++++++++++++
.../providers/weaviate/get_provider_info.py | 20 +++++++++++
2 files changed, 60 insertions(+)
diff --git a/providers/weaviate/provider.yaml b/providers/weaviate/provider.yaml
index 3b42c196f9d..92b2ef9676b 100644
--- a/providers/weaviate/provider.yaml
+++ b/providers/weaviate/provider.yaml
@@ -74,6 +74,46 @@ hooks:
connection-types:
- hook-class-name: airflow.providers.weaviate.hooks.weaviate.WeaviateHook
connection-type: weaviate
+ ui-field-behaviour:
+ hidden-fields:
+ - schema
+ relabeling:
+ login: OIDC Username
+ password: OIDC Password
+ conn-fields:
+ http_secure:
+ label: Use https
+ schema:
+ type:
+ - boolean
+ - 'null'
+ default: false
+ token:
+ label: Weaviate API Key
+ schema:
+ type:
+ - string
+ - 'null'
+ format: password
+ grpc_host:
+ label: gRPC host
+ schema:
+ type:
+ - string
+ - 'null'
+ grpc_port:
+ label: gRPC port
+ schema:
+ type:
+ - string
+ - 'null'
+ grpc_secure:
+ label: Use a secure channel for the underlying gRPC API
+ schema:
+ type:
+ - boolean
+ - 'null'
+ default: false
operators:
- integration-name: Weaviate
diff --git
a/providers/weaviate/src/airflow/providers/weaviate/get_provider_info.py
b/providers/weaviate/src/airflow/providers/weaviate/get_provider_info.py
index c41ecbf158c..1098ddcc86e 100644
--- a/providers/weaviate/src/airflow/providers/weaviate/get_provider_info.py
+++ b/providers/weaviate/src/airflow/providers/weaviate/get_provider_info.py
@@ -42,6 +42,26 @@ def get_provider_info():
{
"hook-class-name":
"airflow.providers.weaviate.hooks.weaviate.WeaviateHook",
"connection-type": "weaviate",
+ "ui-field-behaviour": {
+ "hidden-fields": ["schema"],
+ "relabeling": {"login": "OIDC Username", "password": "OIDC
Password"},
+ },
+ "conn-fields": {
+ "http_secure": {
+ "label": "Use https",
+ "schema": {"type": ["boolean", "null"], "default":
False},
+ },
+ "token": {
+ "label": "Weaviate API Key",
+ "schema": {"type": ["string", "null"], "format":
"password"},
+ },
+ "grpc_host": {"label": "gRPC host", "schema": {"type":
["string", "null"]}},
+ "grpc_port": {"label": "gRPC port", "schema": {"type":
["string", "null"]}},
+ "grpc_secure": {
+ "label": "Use a secure channel for the underlying gRPC
API",
+ "schema": {"type": ["boolean", "null"], "default":
False},
+ },
+ },
}
],
"operators": [