Skip to content

Feature/allow application intent read only#302

Merged
erikdarlingdata merged 2 commits intoerikdarlingdata:devfrom
ClaudioESSilva:feature/Allow-ApplicationIntent-ReadOnly
Apr 29, 2026
Merged

Feature/allow application intent read only#302
erikdarlingdata merged 2 commits intoerikdarlingdata:devfrom
ClaudioESSilva:feature/Allow-ApplicationIntent-ReadOnly

Conversation

@ClaudioESSilva
Copy link
Copy Markdown
Contributor

@ClaudioESSilva ClaudioESSilva commented Apr 29, 2026

What does this PR do?

Implements #301

Which component(s) does this affect?

  • Desktop App (PlanViewer.App)
  • Core Library (PlanViewer.Core)
  • CLI Tool (PlanViewer.Cli)
  • SSMS Extension (PlanViewer.Ssms)
  • Tests
  • Documentation

How was this tested?

The "Connect to Server" dialog:
image

When connected to a Secondary, visually mention that.
image

Checklist

  • I have read the contributing guide
  • My code builds with zero warnings (dotnet build -c Debug)
  • All tests pass (dotnet test)
  • I have not introduced any hardcoded credentials or server names

@erikdarlingdata erikdarlingdata merged commit 1e8cc96 into erikdarlingdata:dev Apr 29, 2026
3 checks passed
@erikdarlingdata
Copy link
Copy Markdown
Owner

Thanks for the contribution, @ClaudioESSilva! Clean implementation — merged.

Doing a small round of cleanup follow-up now (the duplicated connection-string builder, label wording, and a couple of style nits I called out in the review). Will land as a separate PR so the credit on this feature stays with you.

erikdarlingdata added a commit that referenced this pull request Apr 29, 2026
- Rename "(Secondary)" indicator to "(Read-only)" — read-only intent
  requests routing to a secondary but doesn't guarantee it (the listener
  may still route to the primary if no readable replica is available).
- Deduplicate SqlConnectionStringBuilder construction by adding a
  GetConnectionString(username, password, db) overload on ServerConnection
  and routing both the dialog test path and the runtime path through it.
- XAML nits: drop redundant Margin and trailing whitespace on the new
  Read-only intent checkbox.

No behavior change.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants