From 35c02f380b055685047579e275ac5478e32f3d10 Mon Sep 17 00:00:00 2001 From: justinpakzad <114518232+justinpakzad@users.noreply.github.com> Date: Sat, 28 Feb 2026 17:21:09 -0500 Subject: [PATCH 1/2] Migrate pinecone connection UI to metadata YAML --- providers/pinecone/provider.yaml | 28 +++++++++++++++++++ .../providers/pinecone/get_provider_info.py | 16 +++++++++++ 2 files changed, 44 insertions(+) diff --git a/providers/pinecone/provider.yaml b/providers/pinecone/provider.yaml index d181e6d291a3a..773f8169ea68c 100644 --- a/providers/pinecone/provider.yaml +++ b/providers/pinecone/provider.yaml @@ -68,6 +68,34 @@ hooks: connection-types: - hook-class-name: airflow.providers.pinecone.hooks.pinecone.PineconeHook connection-type: pinecone + ui-field-behaviour: + hidden-fields: + - port + - schema + relabeling: + login: Pinecone Environment + host: Pinecone Host + password: Pinecone API key + conn-fields: + region: + label: Pinecone Region + schema: + type: + - string + - 'null' + debug_curl: + label: PINECONE_DEBUG_CURL + schema: + type: + - boolean + - 'null' + default: false + project_id: + label: Project ID + schema: + type: + - string + - 'null' operators: - integration-name: Pinecone diff --git a/providers/pinecone/src/airflow/providers/pinecone/get_provider_info.py b/providers/pinecone/src/airflow/providers/pinecone/get_provider_info.py index 03b22d762dc1a..b298ba565c931 100644 --- a/providers/pinecone/src/airflow/providers/pinecone/get_provider_info.py +++ b/providers/pinecone/src/airflow/providers/pinecone/get_provider_info.py @@ -41,6 +41,22 @@ def get_provider_info(): { "hook-class-name": "airflow.providers.pinecone.hooks.pinecone.PineconeHook", "connection-type": "pinecone", + "ui-field-behaviour": { + "hidden-fields": ["port", "schema"], + "relabeling": { + "login": "Pinecone Environment", + "host": "Pinecone Host", + "password": "Pinecone API key", + }, + }, + "conn-fields": { + "region": {"label": "Pinecone Region", "schema": {"type": ["string", "null"]}}, + "debug_curl": { + "label": "PINECONE_DEBUG_CURL", + "schema": {"type": ["boolean", "null"], "default": False}, + }, + "project_id": {"label": "Project ID", "schema": {"type": ["string", "null"]}}, + }, } ], "operators": [ From fd05ad4a5bcfc572e0938282d8a0639d56838462 Mon Sep 17 00:00:00 2001 From: justinpakzad <114518232+justinpakzad@users.noreply.github.com> Date: Sat, 28 Feb 2026 18:21:10 -0500 Subject: [PATCH 2/2] Fixed yaml formatting issue --- providers/pinecone/provider.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/providers/pinecone/provider.yaml b/providers/pinecone/provider.yaml index 773f8169ea68c..5db7836f4e1f6 100644 --- a/providers/pinecone/provider.yaml +++ b/providers/pinecone/provider.yaml @@ -70,8 +70,8 @@ connection-types: connection-type: pinecone ui-field-behaviour: hidden-fields: - - port - - schema + - port + - schema relabeling: login: Pinecone Environment host: Pinecone Host @@ -81,21 +81,21 @@ connection-types: label: Pinecone Region schema: type: - - string - - 'null' + - string + - 'null' debug_curl: label: PINECONE_DEBUG_CURL schema: type: - - boolean - - 'null' + - boolean + - 'null' default: false project_id: label: Project ID schema: type: - - string - - 'null' + - string + - 'null' operators: - integration-name: Pinecone