fix(DesignerV2): Fix Consumption resubmit (Retry) URL missing workflowId path (v5.961)#9230
Conversation
…wId path (#9222) * Fix Consumption resubmit URL missing workflowId path The ConsumptionRunService.resubmitRun() method was constructing the resubmit URL without the workflowId path segment, resulting in requests to 'https://management.azure.com/triggers/...' instead of the correct 'https://management.azure.com/{workflowId}/triggers/...'. This caused 404 errors when clicking the Retry button in the run history blade. Fixes #9194 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add unit tests for ConsumptionRunService.resubmitRun Verifies the resubmit URL includes workflowId, covers ARM resource paths, and tests error handling. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Throw instead of returning Error in resubmitRun Change resubmitRun to throw on failure so useMutation correctly surfaces errors to callers instead of silently resolving. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
✅ Contributors
✅ Screenshots/Videos
Summary Table
The PR passes review for title/body compliance. The advised risk level is low and matches the submitter's assessment. Last updated: Mon, 01 Jun 2026 17:25:30 GMT |
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | No change needed |
| Commit Type | ✅ | No change needed |
| Risk Level | ✅ | No change needed |
| What & Why | ✅ | No change needed |
| Impact of Change | ✅ | No change needed |
| Test Plan | ✅ | No change needed |
| Contributors | Optional: add names if anyone else contributed | |
| Screenshots/Videos | ✅ | No change needed |
PR passed. The advised risk level remains low and does not exceed the submitter's estimate.
Last updated: Mon, 01 Jun 2026 16:33:33 GMT
There was a problem hiding this comment.
Pull request overview
Fixes a bug in ConsumptionRunService.resubmitRun() where the resubmit API URL was missing the workflowId path segment, causing 404 errors on the Retry button in the Consumption run history blade. Also corrects an error-handling bug where failures were being returned instead of thrown, silently swallowing errors.
Changes:
- Inject
workflowIdfrom options and include it in the resubmit URL template, matching the pattern used by sibling methods (getRuns,getScopeRepetitions). - Change
return new Error(...)tothrow new Error(...)so resubmit failures actually propagate to callers. - Add unit tests covering URL construction (including ARM resource paths) and error propagation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| libs/logic-apps-shared/src/designer-client-services/lib/consumption/run.ts | Adds workflowId to the resubmit URL and throws (rather than returns) on failure. |
| libs/logic-apps-shared/src/designer-client-services/lib/consumption/tests/run.spec.ts | New resubmitRun tests for URL construction with workflowId and error propagation. |
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
Commit Type
Risk Level
What & Why
Fixes #9194 — The Retry button in the run history blade for Consumption Logic Apps was failing silently with 404 errors.
ConsumptionRunService.resubmitRun()was constructing the resubmit API URL without theworkflowIdpath segment, resulting in requests tohttps://management.azure.com/triggers/...instead of the correcthttps://management.azure.com/{workflowId}/triggers/....Added
workflowIdto the URL template, matching the pattern used by other methods in the same class (e.g.,getRuns(),getScopeRepetitions()).Impact of Change
Test Plan
Contributors
Screenshots/Videos