Skip to content

Add explicit release notes URL when they are mentioned in error messages#6516

Open
0xced wants to merge 1 commit intonpgsql:mainfrom
0xced:release-notes-url
Open

Add explicit release notes URL when they are mentioned in error messages#6516
0xced wants to merge 1 commit intonpgsql:mainfrom
0xced:release-notes-url

Conversation

@0xced
Copy link
Copy Markdown
Contributor

@0xced 0xced commented Mar 21, 2026

It's not hard to find the Npgsql release notes but it's even better if the exact URL is just one click away because it's included in the error messages.

It's not hard to find the Npgsql release notes but it's even better if the exact URL is just one click away because it's included in the error messages.
@0xced 0xced requested review from roji and vonzshik as code owners March 21, 2026 15:55
Copilot AI review requested due to automatic review settings March 21, 2026 15:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds direct links to the relevant Npgsql release notes in user-facing messages (runtime exception text and obsolete API diagnostics), making it easier for users to click through to the exact documentation referenced.

Changes:

  • Embed explicit https://www.npgsql.org/doc/release-notes/<version>.0.html URLs in several resource-based error messages (8.0).
  • Embed explicit release notes URLs in [Obsolete] messages for deprecated type-mapping configuration APIs (7.0, 9.0).
  • Regenerate the NpgsqlStrings.Designer.cs resource designer after updating the .resx.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/Npgsql/Properties/NpgsqlStrings.resx Adds explicit 8.0 release notes URL into multiple user-facing resource strings.
src/Npgsql/Properties/NpgsqlStrings.Designer.cs Updates generated resource accessors/docs to reflect the .resx string changes.
src/Npgsql/NpgsqlConnectionStringBuilder.cs Updates [Obsolete] messages to include the 9.0 release notes URL.
src/Npgsql/NpgsqlConnection.cs Updates [Obsolete] messages/comments to include the 7.0 release notes URL.
Files not reviewed (1)
  • src/Npgsql/Properties/NpgsqlStrings.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't need to point to release notes of a specific version (which BTW will be out of support at the end of the year). If the current docs at /doc/types/basic.html are insufficient, better to improve them rather than pointing people to release notes, IMHO.

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.

3 participants