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 2839b230b0f Migrate Qdrant connection UI metadata from Python hook to
provider.yaml (#62644)
2839b230b0f is described below
commit 2839b230b0fc752b97251dd73028a3195216fd20
Author: fat-catTW <[email protected]>
AuthorDate: Wed Mar 11 18:51:53 2026 +0800
Migrate Qdrant connection UI metadata from Python hook to provider.yaml
(#62644)
Co-authored-by: Amogh Desai <[email protected]>
---
providers/qdrant/provider.yaml | 50 ++++++++++++++++++++++
.../airflow/providers/qdrant/get_provider_info.py | 43 +++++++++++++++++++
2 files changed, 93 insertions(+)
diff --git a/providers/qdrant/provider.yaml b/providers/qdrant/provider.yaml
index e1a8ccd63aa..7cd9461db86 100644
--- a/providers/qdrant/provider.yaml
+++ b/providers/qdrant/provider.yaml
@@ -66,6 +66,56 @@ hooks:
connection-types:
- hook-class-name: airflow.providers.qdrant.hooks.qdrant.QdrantHook
connection-type: qdrant
+ conn-fields:
+ url:
+ label: URL
+ schema:
+ type:
+ - string
+ - 'null'
+ description: >-
+ Optional. Qualified URL of the Qdrant instance.
+ Example: https://xyz-example.eu-central.aws.cloud.qdrant.io:6333
+ grpc_port:
+ label: GRPC Port
+ schema:
+ type:
+ - integer
+ - 'null'
+ default: 6334
+ description: Optional. Port of the gRPC interface.
+ prefer_gprc:
+ label: Prefer GRPC
+ schema:
+ type:
+ - boolean
+ - 'null'
+ default: false
+ description: Optional. Whether to use gPRC interface whenever
possible in custom methods.
+ https:
+ label: HTTPS
+ schema:
+ type:
+ - boolean
+ - 'null'
+ description: Optional. Whether to use HTTPS(SSL) protocol.
+ prefix:
+ label: Prefix
+ schema:
+ type:
+ - string
+ - 'null'
+ description: >-
+ Optional. Prefix to the REST URL path.
+ Example: service/v1 will result in
+ http://localhost:6333/service/v1/{qdrant-endpoint} for REST API.
+ ui-field-behaviour:
+ hidden-fields:
+ - schema
+ - login
+ - extra
+ relabeling:
+ password: API Key
operators:
- integration-name: Qdrant
diff --git a/providers/qdrant/src/airflow/providers/qdrant/get_provider_info.py
b/providers/qdrant/src/airflow/providers/qdrant/get_provider_info.py
index 0be3a3738c7..f20c57b9daf 100644
--- a/providers/qdrant/src/airflow/providers/qdrant/get_provider_info.py
+++ b/providers/qdrant/src/airflow/providers/qdrant/get_provider_info.py
@@ -42,6 +42,49 @@ def get_provider_info():
{
"hook-class-name":
"airflow.providers.qdrant.hooks.qdrant.QdrantHook",
"connection-type": "qdrant",
+ "conn-fields": {
+ "url": {
+ "label": "URL",
+ "schema": {
+ "type": ["string", "null"],
+ "description": "Optional. Qualified URL of the
Qdrant instance. Example:
https://xyz-example.eu-central.aws.cloud.qdrant.io:6333",
+ },
+ },
+ "grpc_port": {
+ "label": "GRPC Port",
+ "schema": {
+ "type": ["integer", "null"],
+ "default": 6334,
+ "description": "Optional. Port of the gRPC
interface.",
+ },
+ },
+ "prefer_gprc": {
+ "label": "Prefer GRPC",
+ "schema": {
+ "type": ["boolean", "null"],
+ "default": False,
+ "description": "Optional. Whether to use gPRC
interface whenever possible in custom methods.",
+ },
+ },
+ "https": {
+ "label": "HTTPS",
+ "schema": {
+ "type": ["boolean", "null"],
+ "description": "Optional. Whether to use
HTTPS(SSL) protocol.",
+ },
+ },
+ "prefix": {
+ "label": "Prefix",
+ "schema": {
+ "type": ["string", "null"],
+ "description": "Optional. Prefix to the REST URL
path. Example: service/v1 will result in
http://localhost:6333/service/v1/{qdrant-endpoint} for REST API.",
+ },
+ },
+ },
+ "ui-field-behaviour": {
+ "hidden-fields": ["schema", "login", "extra"],
+ "relabeling": {"password": "API Key"},
+ },
}
],
"operators": [