Skip to content

Fix boolean representation and numeric sorting#114

Merged
mattwar merged 1 commit into
mainfrom
user/mattwar/ResultsViewerBugs
May 13, 2026
Merged

Fix boolean representation and numeric sorting#114
mattwar merged 1 commit into
mainfrom
user/mattwar/ResultsViewerBugs

Conversation

@mattwar

@mattwar mattwar commented May 13, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 13, 2026 18:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes how query result cells are surfaced to the results grid so booleans render as true/false and numeric/date columns sort by value rather than as text.

Changes:

  • Server-side ConvertCellValue now takes the column's Kusto type and coerces the various integer representations of bool columns (sbyte/byte/short/int/long) into real bool values for JSON serialization.
  • Client-side data table init derives Simple-DataTables columns[].type from each column's Kusto type (number/date/boolean) so sorting respects the underlying data type.

Reviewed changes

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

File Description
src/Server/Utilities/ResultData.cs Pass column type to ConvertCellValue and convert numeric bool representations to actual bool.
src/Client/features/dataTableProvider.ts Build per-column sort-type settings from Kusto types and pass them to the Simple-DataTables grid.

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

@mattwar mattwar merged commit 4b78c3b into main May 13, 2026
9 checks passed
@mattwar mattwar deleted the user/mattwar/ResultsViewerBugs branch May 13, 2026 18:47
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