This is an automated email from the ASF dual-hosted git repository.
potiuk 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 e247ca1cde6 Make Airbyte connection fields properly labeled in Airflow
3 (#58342)
e247ca1cde6 is described below
commit e247ca1cde640cb252c19713f33ee0bea67002d2
Author: Henry Chen <[email protected]>
AuthorDate: Sun Nov 16 00:03:10 2025 +0800
Make Airbyte connection fields properly labeled in Airflow 3 (#58342)
---
.../src/airflow/providers/airbyte/hooks/airbyte.py | 7 ++++++-
.../airbyte/tests/unit/airbyte/hooks/test_airbyte.py | 15 +++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py
b/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py
index 494ab660b25..51233a477af 100644
--- a/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py
+++ b/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py
@@ -103,7 +103,12 @@ class AirbyteHook(BaseHook):
"extra",
"port",
],
- "relabeling": {"login": "Client ID", "password": "Client Secret",
"schema": "Token URL"},
+ "relabeling": {
+ "host": "Server URL",
+ "login": "Client ID",
+ "password": "Client Secret",
+ "schema": "Token URL",
+ },
"placeholders": {},
}
diff --git a/providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py
b/providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py
index 9dd563da9aa..4559beb3359 100644
--- a/providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py
+++ b/providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py
@@ -224,3 +224,18 @@ class TestAirbyteHook:
# Check if the session is created correctly
assert hook.airbyte_api is not None
assert hook.airbyte_api.sdk_configuration.client.proxies ==
self._mock_proxy["proxies"]
+
+ def test_get_ui_field_behaviour(self):
+ """
+ Test the UI field behavior configuration for Airbyte connections.
+ """
+ assert AirbyteHook.get_ui_field_behaviour() == {
+ "hidden_fields": ["extra", "port"],
+ "relabeling": {
+ "host": "Server URL",
+ "login": "Client ID",
+ "password": "Client Secret",
+ "schema": "Token URL",
+ },
+ "placeholders": {},
+ }