Skip to content

switch the default grid GroupBy from "None" to "Query Hash" and don't…#305

Merged
erikdarlingdata merged 1 commit intoerikdarlingdata:devfrom
rferraton:QueryStore/grid-new-default-groupby
May 3, 2026
Merged

switch the default grid GroupBy from "None" to "Query Hash" and don't…#305
erikdarlingdata merged 1 commit intoerikdarlingdata:devfrom
rferraton:QueryStore/grid-new-default-groupby

Conversation

@rferraton
Copy link
Copy Markdown
Contributor

What does this PR do?

QueryStoreGridControl.axaml:
• Changed GroupByBox default SelectedIndex from 0 (None) to 1 (Query Hash)
• Changed expand column IsVisible from False to True (since grouped mode is now the default)

QueryStoreGridControl.axaml.cs:
• Changed _groupByMode default from QueryStoreGroupBy.None to QueryHash
• Added ReorderColumnsForGroupBy() call before the initial fetch so columns are properly ordered on startup
• Removed the auto-expand of the first root row after grouped fetch (lines that called ExpandRowRecursive(first))

Which component(s) does this affect?

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

Motivation

I find more usefull to have a group by "query hash" by default, i always switch to that groupby so why not opening it by default directly ?

How was this tested?

2026-05-03_10h42_09

Describe the testing you've done. Include:

  • Plan files tested : queryStore
  • Platforms tested : windows only

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 df1d95f into erikdarlingdata:dev May 3, 2026
2 checks passed
erikdarlingdata added a commit that referenced this pull request May 3, 2026
PR #305 dropped the only caller of ExpandRowRecursive in
FetchGroupedPlansAsync. Delete the now-unreachable method (only
its self-recursion remained) plus stale Avalonia/SqlClient usings
in the same file.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@erikdarlingdata
Copy link
Copy Markdown
Owner

Thanks for the contribution, @rferraton! 🙌 Defaulting to Query Hash grouping is a much better starting point — I find myself flipping to it every time too.

Merged into dev and shipped a small follow-up cleanup in #306 to drop the now-unused ExpandRowRecursive helper that your PR made dead code.

Appreciate the screenshot and the careful test notes — keep 'em coming!

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