-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT 2024.1][#22841] docdb: Add sorting to stack trace tracking …
…endpoint Summary: Original commit: 7f9d086 / D35795 This diff converts stack trace tracking UI endpoints to using HtmlPrintHelper to print the tables, which has per-column sorting. Changes were also made to optimize the sorting script, support sorting the output of `HumanReadableNumBytes::ToString`, and to sort by string when there are a mix of string/number values. {image uri=https://github.com/yugabyte/yugabyte-db/assets/6742815/96e204f1-3392-4d47-8638-33d184d6a0f5, alt=screenshot of /io-stack-traces} Jira: DB-11738 Test Plan: Checked /io-stack-traces and /debug-stack-traces on local cluster and ensured sorting works correctly for each column (strings, numbers, bytes). Also checked with manually edited table that sort works as expected for: - mix of string/number (sort by string) - number + non-byte suffix (treated as string) - non-number + byte suffix (treated as string) Reviewers: hsunder Reviewed By: hsunder Subscribers: ybase Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D35911
- Loading branch information
Showing
2 changed files
with
89 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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