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 13789d02d6a Migrate dbt Cloud connection UI fields to YAML config
(#62579)
13789d02d6a is described below
commit 13789d02d6a92134166f65d3b93aa124dc27a213
Author: Josh Fell <[email protected]>
AuthorDate: Wed Mar 11 06:51:42 2026 -0400
Migrate dbt Cloud connection UI fields to YAML config (#62579)
This change adds the corresponding connection configuration for UI
fields directly in the provider.yaml file.
Co-authored-by: Amogh Desai <[email protected]>
---
providers/dbt/cloud/provider.yaml | 11 +++++++++++
.../src/airflow/providers/dbt/cloud/get_provider_info.py | 8 ++++++++
2 files changed, 19 insertions(+)
diff --git a/providers/dbt/cloud/provider.yaml
b/providers/dbt/cloud/provider.yaml
index a27c7dc1107..c0da84706dd 100644
--- a/providers/dbt/cloud/provider.yaml
+++ b/providers/dbt/cloud/provider.yaml
@@ -113,6 +113,17 @@ triggers:
connection-types:
- hook-class-name: airflow.providers.dbt.cloud.hooks.dbt.DbtCloudHook
connection-type: dbt_cloud
+ ui-field-behaviour:
+ hidden-fields:
+ - schema
+ - port
+ relabeling:
+ login: Account ID
+ password: API Token
+ host: Tenant
+ placeholders:
+ host: "Defaults to 'cloud.getdbt.com'."
+ extra: Optional JSON-formatted extra.
extra-links:
- airflow.providers.dbt.cloud.operators.dbt.DbtCloudRunJobOperatorLink
diff --git
a/providers/dbt/cloud/src/airflow/providers/dbt/cloud/get_provider_info.py
b/providers/dbt/cloud/src/airflow/providers/dbt/cloud/get_provider_info.py
index 4e484266e6f..f0119e2ea98 100644
--- a/providers/dbt/cloud/src/airflow/providers/dbt/cloud/get_provider_info.py
+++ b/providers/dbt/cloud/src/airflow/providers/dbt/cloud/get_provider_info.py
@@ -51,6 +51,14 @@ def get_provider_info():
{
"hook-class-name":
"airflow.providers.dbt.cloud.hooks.dbt.DbtCloudHook",
"connection-type": "dbt_cloud",
+ "ui-field-behaviour": {
+ "hidden-fields": ["schema", "port"],
+ "relabeling": {"login": "Account ID", "password": "API
Token", "host": "Tenant"},
+ "placeholders": {
+ "host": "Defaults to 'cloud.getdbt.com'.",
+ "extra": "Optional JSON-formatted extra.",
+ },
+ },
}
],
"extra-links":
["airflow.providers.dbt.cloud.operators.dbt.DbtCloudRunJobOperatorLink"],