fix(designer): Prevent deletionConnection occurring on Non-Arm Connections#8369
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This fix prevents unwanted connection deletions when builtin (non-ARM) connections fail during creation. The issue occurred because the error handling code was deleting connections regardless of whether they were ARM resources or local builtin connections, which could lead to unintended deletion of existing managed connections.
- Extracts the ARM resource check into a variable for reuse
- Conditionally deletes connections only for ARM resources in error handling
- Prevents builtin connection failures from affecting managed connections
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
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | |
| Commit Type | ✅ | |
| Risk Level | ✅ | |
| What & Why | ✅ | |
| Impact of Change | ✅ | |
| Test Plan | ✅ | |
| Contributors | Tag others if relevant, especially if they contributed ideas or reviews. | |
| Screenshots/Videos | ✅ |
Your PR fully passes the title and template review! Just remember to always give credit to contributors in the future if teamwork occurs. Well done and thank you for maintaining high documentation quality!
Last updated: Mon, 13 Oct 2025 20:18:32 GMT
takyyon
approved these changes
Oct 13, 2025
rllyy97
approved these changes
Oct 13, 2025
Eric-B-Wu
enabled auto-merge (squash)
October 13, 2025 20:26
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
We delete the created connection for every newly created connection that errors. However, this delete is also happening for local connections as well. With connectors such as sql having both builtin and managed connectors, this would make it so that a failed builtin in sql connection could delete a managed connection. To prevent this from happening because we don't create builtin connections in ARM we can prevent the deletion from happening.
Impact of Change
Test Plan
Contributors
@Eric-B-Wu
Screenshots/Videos