From 2a45646e7ebb5cb07fe842b27495089ea9d94e2a Mon Sep 17 00:00:00 2001 From: d-shree <101096921+d-shree@users.noreply.github.com> Date: Wed, 29 May 2024 13:51:42 +0530 Subject: [PATCH] Replace console links with studio links (#162) --- CHANGELOG.md | 3 +++ pyproject.toml | 2 +- .../upload_for_call_and_slot_tagging/__init__.py | 13 ++++--------- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c66a05e6..8ed64342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Changelog +1.2.6 +- [x] replace: Console links with Studio links in pipelines + 1.2.5 - [x] fix: Missing dependency in chrome installation diff --git a/pyproject.toml b/pyproject.toml index aeb2fa3b..cb8ab7e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "skit-pipelines" -version = "1.2.5" +version = "1.2.6" description = "Kubeflow components for ml workflows at skit.ai." authors = ["ltbringer "] license = "MIT" diff --git a/skit_pipelines/components/upload_for_call_and_slot_tagging/__init__.py b/skit_pipelines/components/upload_for_call_and_slot_tagging/__init__.py index 6fd56f6d..fa5edf9b 100644 --- a/skit_pipelines/components/upload_for_call_and_slot_tagging/__init__.py +++ b/skit_pipelines/components/upload_for_call_and_slot_tagging/__init__.py @@ -41,15 +41,10 @@ def fetch_calls_for_slots( df["date"] = df["reftime"].apply(lambda x: parser.isoparse(x).strftime("%Y-%m-%d")) - if pipeline_constants.REGION == pipeline_constants.AP_SOUTH_1: - df["call_link"] = df["call_uuid"].apply( - lambda x: f"{pipeline_constants.CONSOLE_URL}/{org_id}/call-report/#/call?uuid={x}" - ) - else: - df["call_link"] = df.apply( - lambda x: f"{pipeline_constants.STUDIO_URL}/clients/{x.client_uuid}/voice-agents/{x.flow_uuid}/calls/{x.call_uuid}", - axis=1, - ) + df["call_link"] = df.apply( + lambda x: f"{pipeline_constants.STUDIO_URL}/clients/{x.client_uuid}/voice-agents/{x.flow_uuid}/calls/{x.call_uuid}", + axis=1, + ) df["language"] = language_code print(df.head())