Repository navigation
feat: centralize Standard management APIs with session-token routing - #9668
Conversation
🤖 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
This PR passes the title and body review. The submitted High risk level matches the advised risk level and the
|
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
There was a problem hiding this comment.
🟡 Changes recommended
Error handling can report failed mutations as successful, bypass save validation, or replace existing MCP configuration after failed enumeration.
5 open issues
Propagate session acquisition failures through save validation · New Do not replace existing MCP servers after enumeration failure · New Normalize controlled fallback failures in run mutations · New Recheck context before dispatching queued requests · New Read Retry-After headers case-insensitively · New
What changed in this PR
Centralizes 14 Logic Apps Standard management APIs behind a shared client with opt-in session-token routing. Existing application roots remain ARM-only unless an embedding host supplies direct-access configuration.
Changes:
- Adds session acquisition, caching, renewal, context isolation, and controlled ARM fallback.
- Integrates named management methods into shared services and Standalone helpers.
- Adds an offline test route, integration tests, and host-integration documentation.
| File | Description |
|---|---|
| libs/logic-apps-shared/src/designer-client-services/lib/standard/search.ts | Routes operation and connector searches through named methods. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/run.ts | Integrates run queries, trigger execution, cancellation, and resubmission. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/README.md | Documents routing, lifecycle, transport requirements, and verification boundaries. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/operationmanifest.ts | Delegates connector metadata requests. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/management.ts | Implements the management API catalog and session-routing client. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/index.ts | Exports management APIs and types. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/connector.ts | Delegates dynamic connector invocation. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/__tests__/management.spec.ts | Tests routing, sessions, recovery, and service integration. |
| libs/logic-apps-shared/src/designer-client-services/lib/base/resource.ts | Integrates resource actions and workflow inventory. |
| apps/Standalone/src/designer/app/LocalDesigner/StandardManagementTestHost.tsx | Adds offline operation and scenario controls. |
| apps/Standalone/src/designer/app/LocalDesigner/standardManagementHost.ts | Composes real services with synthetic transports. |
| apps/Standalone/src/designer/app/LocalDesigner/__test__/standardManagementHost.spec.tsx | Tests offline host operations and lifecycle behavior. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/Services/WorkflowAndArtifacts.tsx | Centralizes management helpers and scopes query cache keys. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/Services/StandardManagement.ts | Adds ARM transport, lifecycle ownership, and host configuration. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/laDesignerV2.tsx | Wires management ownership into the v2 designer. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/laDesigner.tsx | Wires management ownership into the existing designer. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/__test__/vitest.config.ts | Configures focused helper and lifecycle tests. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/__test__/standardManagement.spec.tsx | Tests helper delegation, transport behavior, and context changes. |
| apps/Standalone/src/App.tsx | Registers the lazy-loaded offline test route. |
Review effort: Balanced
b86616f to
b9b2237
Compare
b9b2237 to
f1e2f5b
Compare
Add named entry points for the 14 in-scope APIs, shared session acquisition and caching, opt-in Standalone lifecycle integration, and an offline management test host. Keep direct access disabled by default; defer production Portal and live-backend host wiring. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
f1e2f5b to
3caa6e3
Compare


Commit Type
Risk Level
What & Why
Centralize the 14 in-scope Logic Apps Standard management APIs behind named methods on StandardManagementHttpClient. Share profile selection, session issuance/cache/renewal, feature gating, and controlled direct-runtime/ARM routing so callers do not manage tokens or construct direct URLs.
Impact of Change
/) and V2 (/v2) Standalone designers expose an opt-in Standard management APIs > Enable direct management with session tokens setting for Azure-connected Standard apps. Off uses ARM; on routes the fourteen supported APIs through the shared session client. Local fixtures, Consumption, hybrid, and excluded ARM APIs retain their existing paths./standard-managementroute remains an additional synthetic regression host, not the feature's primary app.Test Plan
Known Issues / Draft Exit Criteria
Contributors
Implementation assisted by Copilot.
Screenshots/Videos
Not included. The feature is integrated into the existing designer; no deployed-backend behavior is claimed.