Skip to content

Conversation

michaelnebel
Copy link
Contributor

No description provided.

@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 12:16
Copilot

This comment was marked as outdated.

@michaelnebel michaelnebel force-pushed the csharp/improvedatabasequalitydiagnostics branch 3 times, most recently from 6b0657b to cafe644 Compare September 4, 2025 13:17
@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 13:17
Copy link
Contributor

@Copilot 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

This PR improves the database quality diagnostics message for C# by including specific health metrics in the diagnostic output. The enhancement provides users with concrete percentage values for call targets and expression types to help them better understand database quality issues.

Key changes:

  • Enhanced diagnostic message to include specific database health metrics with percentage values
  • Refactored the diagnostic creation logic to capture and display both call target and expression type statistics
  • Updated expected test outputs to reflect the new message format

Reviewed Changes

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

File Description
csharp/ql/src/change-notes/2025-09-04-database-diagnostics.md Documents the enhancement to include database health metrics in diagnostic messages
csharp/ql/src/Telemetry/DatabaseQualityDiagnostics.ql Refactors diagnostic logic to capture specific metrics and updates the diagnostic message format
csharp/ql/integration-tests/all-platforms/standalone/DatabaseQualityDiagnostics.expected Updates expected test output to match the new diagnostic message format

@michaelnebel michaelnebel force-pushed the csharp/improvedatabasequalitydiagnostics branch from cafe644 to 02e2b65 Compare September 4, 2025 13:31
@michaelnebel michaelnebel changed the title C#: Improve database quality diagnostics message. C#: Improve database quality diagnostics query. Sep 5, 2025
@michaelnebel michaelnebel force-pushed the csharp/improvedatabasequalitydiagnostics branch from 02e2b65 to 70b3a46 Compare September 5, 2025 09:17
@michaelnebel michaelnebel marked this pull request as ready for review September 5, 2025 10:40
@michaelnebel michaelnebel requested a review from a team as a code owner September 5, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant