Skip to content

Commit

Permalink
Update datascience pipeline run URL in Elyra (opendatahub-io#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlassak authored and harshad16 committed Jul 14, 2023
1 parent 67b5d17 commit d9785b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter/datascience/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN mkdir /opt/app-root/runtimes && \
sed -i "s/Kubeflow Pipelines/Data Science Pipelines/g" /opt/app-root/lib/python3.9/site-packages/elyra/metadata/schemas/kfp.json && \
sed -i "s/kubeflow-service/data-science-pipeline-service/g" /opt/app-root/lib/python3.9/site-packages/elyra/metadata/schemas/kfp.json && \
sed -i "s/\"default\": \"Argo\",/\"default\": \"Tekton\",/g" /opt/app-root/lib/python3.9/site-packages/elyra/metadata/schemas/kfp.json && \
# Workaround for passing ssl_sa_cert
# Workaround for passing ssl_sa_cert and to ensure that Elyra redirects to a correct pipeline run URL
patch /opt/app-root/lib/python3.9/site-packages/elyra/pipeline/kfp/kfp_authentication.py -i utils/kfp_authentication.patch && \
patch /opt/app-root/lib/python3.9/site-packages/elyra/pipeline/kfp/processor_kfp.py -i utils/processor_kfp.patch && \
# switch to Data Science Pipeline in component catalog \
Expand Down
19 changes: 19 additions & 0 deletions jupyter/datascience/ubi9-python-3.9/utils/processor_kfp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,22 @@
)
else:
client = ArgoClient(
@@ -435,7 +435,7 @@

self.log_pipeline_info(
pipeline_name,
- f"pipeline submitted: {public_api_endpoint}/#/runs/details/{run.id}",
+ f"pipeline submitted: {public_api_endpoint}/{run.id}",
duration=time.time() - t0,
)

@@ -451,7 +451,7 @@

return KfpPipelineProcessorResponse(
run_id=run.id,
- run_url=f"{public_api_endpoint}/#/runs/details/{run.id}",
+ run_url=f"{public_api_endpoint}/{run.id}",
object_storage_url=object_storage_url,
object_storage_path=object_storage_path,
)

0 comments on commit d9785b7

Please sign in to comment.