Skip to content

Commit 0100090

Browse files
[SDK/CLI] Update portal link to remove flight (#388)
# Description Remove flights since now it's not needed after UI new release. # All Promptflow Contribution checklist: - [x] **The pull request does not introduce [breaking changes]** - [ ] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [x] **I have read the [contribution guidelines](../CONTRIBUTING.md).** ## General Guidelines and Best Practices - [x] Title of the pull request is clear and informative. - [ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### Testing Guidelines - [ ] Pull request includes test coverage for the included changes. --------- Co-authored-by: Zhengfei Wang <[email protected]>
1 parent 8ac2224 commit 0100090

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/promptflow/promptflow/_sdk/_constants.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ def get_list_view_type(archived_only: bool, include_archived: bool) -> ListViewT
212212
VIS_PORTAL_URL_TMPL = (
213213
"https://ml.azure.com/prompts/flow/bulkrun/runs/outputs"
214214
"?wsid=/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}"
215-
"/providers/Microsoft.MachineLearningServices/workspaces/{workspace_name}"
216-
"&flight=promptfilestorage,PFPackageTools,PFRunList,PromptBatchRunDesignV2,PFSourceRun"
217-
"&runId={names}"
215+
"/providers/Microsoft.MachineLearningServices/workspaces/{workspace_name}&runId={names}"
218216
)
219217

220218

src/promptflow/promptflow/azure/operations/_run_operations.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ def _run_history_endpoint_url(self):
121121

122122
def _get_run_portal_url(self, run_id: str):
123123
"""Get the portal url for the run."""
124-
url = (
125-
f"https://ml.azure.com/prompts/flow/bulkrun/run/{run_id}/details?wsid="
126-
f"{self._common_azure_url_pattern}&flight=promptfilestorage,PFSourceRun=false"
127-
)
124+
url = f"https://ml.azure.com/prompts/flow/bulkrun/run/{run_id}/details?wsid={self._common_azure_url_pattern}"
128125
return url
129126

130127
def _get_input_portal_url_from_input_uri(self, input_uri):

src/promptflow/tests/sdk_cli_azure_test/e2etests/test_run_operations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ def test_show_run(self, remote_client):
180180
"start_time": "2023-08-08T07:32:56.637761+00:00",
181181
"end_time": "2023-08-08T07:33:07.853922+00:00",
182182
"duration": "00:00:11.2161606",
183-
"portal_url": "https://ml.azure.com/prompts/flow/bulkrun/run/classification_accuracy_eval_default_20230808_153241_422491/details?wsid=/subscriptions/96aede12-2f73-41cb-b983-6d11a904839b/resourceGroups/promptflow/providers/Microsoft.MachineLearningServices/workspaces/promptflow-eastus&flight=promptfilestorage,PFSourceRun=false", # noqa: E501
183+
"portal_url": "https://ml.azure.com/prompts/flow/bulkrun/run/classification_accuracy_eval_default_20230808_153241_422491/details?wsid=/subscriptions/96aede12-2f73-41cb-b983-6d11a904839b/resourceGroups/promptflow/providers/Microsoft.MachineLearningServices/workspaces/promptflow-eastus", # noqa: E501
184184
"data": "azureml://datastores/workspaceblobstore/paths/LocalUpload/312cca2af474e5f895013392b6b38f45/data.jsonl", # noqa: E501
185185
"data_portal_url": "https://ml.azure.com/data/datastore/workspaceblobstore/edit?wsid=/subscriptions/96aede12-2f73-41cb-b983-6d11a904839b/resourceGroups/promptflow/providers/Microsoft.MachineLearningServices/workspaces/promptflow-eastus&activeFilePath=LocalUpload/312cca2af474e5f895013392b6b38f45/data.jsonl#browseTab", # noqa: E501
186186
"output": "azureml://locations/eastus/workspaces/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/data/azureml_classification_accuracy_eval_default_20230808_153241_422491_output_data_flow_outputs/versions/1", # noqa: E501
187187
"output_portal_url": "https://ml.azure.com/data/azureml_classification_accuracy_eval_default_20230808_153241_422491_output_data_flow_outputs/1/details?wsid=/subscriptions/96aede12-2f73-41cb-b983-6d11a904839b/resourceGroups/promptflow/providers/Microsoft.MachineLearningServices/workspaces/promptflow-eastus", # noqa: E501
188188
"run": "web_classification_default_20230804_143634_056856",
189-
"input_run_portal_url": "https://ml.azure.com/prompts/flow/bulkrun/run/web_classification_default_20230804_143634_056856/details?wsid=/subscriptions/96aede12-2f73-41cb-b983-6d11a904839b/resourceGroups/promptflow/providers/Microsoft.MachineLearningServices/workspaces/promptflow-eastus&flight=promptfilestorage,PFSourceRun=false", # noqa: E501
189+
"input_run_portal_url": "https://ml.azure.com/prompts/flow/bulkrun/run/web_classification_default_20230804_143634_056856/details?wsid=/subscriptions/96aede12-2f73-41cb-b983-6d11a904839b/resourceGroups/promptflow/providers/Microsoft.MachineLearningServices/workspaces/promptflow-eastus", # noqa: E501
190190
}
191191

192192
def test_show_run_details(self, remote_client):

0 commit comments

Comments
 (0)