Skip to content

Populate a column's description and short description from each other - #442

Merged
Jing Xia (xj-ms) merged 3 commits into
mainfrom
user/jing/column-description
Aug 11, 2026
Merged

Populate a column's description and short description from each other#442
Jing Xia (xj-ms) merged 3 commits into
mainfrom
user/jing/column-description

Conversation

@xj-ms

Copy link
Copy Markdown
Contributor

All existing Xperf columns use either Description or ShortDescription. These 2 properties are basically used interchangeably in reality.
As a result, depending on which one is set, column descriptions are often only available either as tooltips or inside the table config dialog in WPA, but never both.

While plugin authors are responsible for providing both of them, one improvement we can do in SDK is to provide default values for them, so that they remain useful even if only one of them is set --- a short description can be the description, and a description can a short description after truncation. Plugin authors can still overwrite the default values if they want, and they are encouraged to do so

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

This PR improves the usability of column descriptions in the SDK by ensuring ColumnMetadata.Description and ColumnMetadata.ShortDescription remain helpful even when plugin authors only set one of them, improving how descriptions appear in both tooltips and configuration UIs.

Changes:

  • Auto-populates ShortDescription from Description (including truncation + ellipsis when long).
  • When ShortDescription is explicitly set, it backfills Description if it was effectively unset (defaulted to Name).
  • Adds unit tests and updates author-facing documentation to describe the two description fields and the new defaulting behavior.
Show a summary per file
File Description
src/Microsoft.Performance.SDK/Processing/ColumnMetadata.cs Adds short-description derivation + backfill behavior and makes Description internally settable.
src/Microsoft.Performance.SDK.Tests/ColumnMetadataTests.cs Adds coverage for defaulting, truncation, and backfill semantics.
documentation/Using-the-SDK/Building-a-table.md Documents Description vs ShortDescription and updates guidance for deprecating columns.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread src/Microsoft.Performance.SDK/Processing/ColumnMetadata.cs Outdated
Comment thread documentation/Using-the-SDK/Building-a-table.md
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread src/Microsoft.Performance.SDK/Processing/ColumnMetadata.cs Outdated
@xj-ms
Jing Xia (xj-ms) merged commit d224b74 into main Aug 11, 2026
5 checks passed
@xj-ms
Jing Xia (xj-ms) deleted the user/jing/column-description branch August 11, 2026 16:41
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.

4 participants