Skip to content

Commit

Permalink
Replace console links with studio links (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-shree authored May 29, 2024
1 parent 9248f35 commit 2a45646
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 2a45646

Please sign in to comment.