Repository navigation
Pre-release walk fixes (#744) - #747
Merged
Merged
Conversation
…ettings label (#744) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU
…overage test (#744) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU
…s it (#744) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU
…y are not a repeat of the type, and the CLI output hash pins them (#744) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU
erikdarlingdata
marked this pull request as ready for review
December 1, 2026 04:54
|
Reviewed. No correctness, untrusted-input, security or repo-convention problems found. Version files, NoWarn and T-SQL are untouched, and no new Core file needs a Web.csproj link. I grepped for code that depends on the removed "Key Lookup:" / "Exchange spill:" etc. message prefixes and found none outside the updated tests. The rule-40 ratio formatting is correct for the tested values (0.005, 0.00012). Coverage is good: each fix has a test. One non-blocking nit is inline. |
This was referenced Dec 1, 2026
Merged
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.
Part of #744
App items (6, 7, 9)
6. Human Advice "(Node 7) (Node 7)".
ResultMapperalready fills a warning'sOperatorwithOperatorLabel.Format(node), which always ends in "(Node N)". The card tag inAdviceContentBuilder.CardSections.csadded the suffix again. It now adds it only when the operator text does not already carry it (the fallbacknode.PhysicalOppath has no suffix, so the guard stays instead of dropping the code). Test:AdviceCardsTests.ACardTagShowsTheNodeOnce(golden plan tags show one node; a bare "Hash Match" with node 7 still reads "Hash Match (Node 7)").7. Editor "." commits the completion.
OnTextEnteringinQuerySessionControl.Editor.csnow closes the completion window without inserting when the typed character is ".". Other non-identifier characters behave as before.OnTextEntering/OnTextEnteredbecame internal and anIsCompletionOpenproperty was added so a headless test can drive them. Test:EditorCompletionDotTests.ADotClosesTheKeywordListWithoutCommittingIt(opens the list on "sys", types ".", the list closes and the text stays "sys").9. Settings label. "Default metric for top" is now "Default metric for top queries" (matches the
AppSettingsServicedoc comment for that setting).Core, web and MCP items (1, 2, 3, 4, 5, 8)
1. Rule 40 wording. The message says "1 execution" and "1 join execution" for a count that prints as "1". A ratio below 0.01 prints two significant digits (0.001 reads "0.001", 0.00012 reads "0.00012"); other ratios keep N2. Tests:
NestedLoopsInnerCheckTests(SingularExecutionWordForACountOfOne,RatioBelowOneHundredthIsNotPrintedAsZero).2. Key Lookup / RID Lookup icon.
PlanIconMappernow maps "Key Lookup (Clustered)" tobookmark_lookupand "RID Lookup (Heap)" torid_lookup. NewPlanIconCoverageTestsparses every fixture plan and checks each node'sIconNamehas a png in the Core embedded resources and inwwwroot/icons. It found no other missing names.3. Doubled prefix. Messages that began with their own WarningType, which surfaces print in front: Key Lookup, RID Lookup, Exchange Spill ("Exchange spill: 4 writes ..." now "4 writes ..."), Many-to-Many Merge Join, and Table-Valued Function (the function name now leads). Baseline lines, the golden advice file and the affected tests were updated by hand-editing the changed lines and regenerating
WarningBaseline.txt; the diff holds only these lines plus the rule 40 lines from item 1. New testEveryFixture_WarningMessageDoesNotRepeatItsOwnWarningType.4. Web body statements.
Index.razorlays outPlanStatements.EnumerateAll(parsedPlan)instead ofBatches[*].Statements. That was the only loop overBatchesinPlanViewer.Web. The web project builds clean; no test (Razor page), so unverified in a browser.5. MCP get_plan_warnings. Passes
includeOperatorWarnings: true. Each item already carriesnode_idandoperator. The[Description]now says it covers statement and operator warnings. The old testGetPlanWarnings_PreservesTheHistoricalStatementWarningScopepinned "No warnings" on row_goal_plan, which has an operator warning, so it becameGetPlanWarnings_ReturnsOperatorWarningsAndNamesTheirNode(key_lookup_plan, node_id, operator, severity filter).8. MCP instructions. "30 rules" is now 37 in
McpInstructions.csand inREADME.md(tree line); the README rules paragraph already said 37. How I counted:IsRuleDisabled(n)gates in PlanViewer.Core cover 1-20, 22-24, 26-30 and 32-40 = 37 distinct rules (rules 7 and 29 only raise the severity of other warnings, so they never appear as aRuleNumberliteral; 21 was removed, 25 and 31 are unused). The Joins line now names rule 40, and one line explainscost_noteandnot_ranked_cost_unknownfrom #742's code.Tests
Full suite on the pushed head: 1834 total, 1801 passed, 33 skipped, 0 failed. Build: 0 errors, same 3 warnings as dev.
Noticed, not fixed
HistoricalCliContractTests) pins the Row goal text, so I left them.🤖 Generated with Claude Code
https://claude.ai/code/session_01M98owdDaj4ReE2NfjxDDuU