feat(knowledge): persist Cosmos DB resource ID - #9598
Open
Bryan Bennett (bjbennet) wants to merge 3 commits into
Open
feat(knowledge): persist Cosmos DB resource ID#9598Bryan Bennett (bjbennet) wants to merge 3 commits into
Bryan Bennett (bjbennet) wants to merge 3 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Bryan Bennett (bjbennet)
September 3, 2026 17:43
View session
Contributor
🤖 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
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | No change needed |
| Commit Type | ✅ | No change needed |
| Risk Level | ✅ | Medium is correct and consistent |
| What & Why | ✅ | No change needed |
| Impact of Change | ✅ | No change needed |
| Test Plan | ✅ | Unit tests present |
| Contributors | ✅ | Contributor credited |
| Screenshots/Videos | Not required (non-visual change) |
All required checks pass. This PR is compliant and cleared to merge. 🎉
Powered by: Copilot CLI (claude-opus-4.8) | Last updated: Thu, 03 Sep 2026 21:07:26 GMT
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Existing connections cannot persist updates, and requiring resourceId breaks compatibility with legacy connection data.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Persists Cosmos DB resource IDs for Knowledge Hub connections and restores them during editing.
Changes:
- Adds
cosmosDB.resourceIdserialization and restoration. - Extends connection models and focused unit coverage.
- Requires fixes for legacy compatibility and updating existing connections.
File summaries
| File | Review |
|---|---|
libs/logic-apps-shared/src/designer-client-services/lib/standard/connection.ts |
Adds resourceId, but it must remain optional for legacy data compatibility. |
libs/logic-apps-shared/src/designer-client-services/lib/standard/__tests__/connection.spec.ts |
Tests resource ID serialization. |
libs/designer/src/lib/core/knowledge/utils/connection.ts |
Adds serialization, but existing connections are not overwritten by host writers. |
libs/designer/src/lib/core/knowledge/utils/__test__/connection.spec.ts |
Tests metadata and edit restoration; host-writer update coverage is still needed. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Type
Risk Level
What & Why
Knowledge hub connections currently persist the selected Cosmos DB endpoint but discard the Azure resource ID chosen in the connection wizard. This change serializes the existing Cosmos DB account selection as
cosmosDB.resourceId, making the account identity available alongside the endpoint inconnections.json.Impact of Change
KnowledgeHubConnectionModel.cosmosDBnow includes a requiredresourceIdproperty.knowledgeHubConnections.HubConnection.cosmosDB.resourceIdand restores it when editing.Test Plan
Contributors
@brbenn_microsoft
Screenshots/Videos
N/A - no visual changes.