Skip to content

Commit

Permalink
adjust hidden fields
Browse files Browse the repository at this point in the history
  • Loading branch information
topherinternational committed Aug 18, 2024
1 parent af763f9 commit bb934c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions airflow/providers/cloudant/hooks/cloudant.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class CloudantHook(BaseHook):
def get_ui_field_behaviour(cls) -> dict[str, Any]:
"""Return custom field behaviour."""
return {
"hidden_fields": ["port", "extra"],
"relabeling": {"host": "Account", "login": "Username (or API Key)", "schema": "Database"},
"hidden_fields": ["schema", "port", "extra"],
"relabeling": {"host": "Account", "login": "Username (or API Key)"},
}

def __init__(self, cloudant_conn_id: str = default_conn_name) -> None:
Expand Down Expand Up @@ -87,4 +87,5 @@ def _validate_connection(conn: Connection) -> None:

if missing_params:
raise AirflowException(
f"Missing connection parameter{'s' if len(missing_params) > 1 else ''}: {', '.join(missing_params)}")
f"Missing connection parameter{'s' if len(missing_params) > 1 else ''}: {', '.join(missing_params)}"
)

0 comments on commit bb934c2

Please sign in to comment.