-
Couldn't load subscription status.
- Fork 213
Compare performance: Show names of query runs being compared #4170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
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 enhances the performance comparison UI by displaying the names of query runs being compared and clarifying their relative positions (left vs right). The implementation refactors the data flow to pass complete query info objects instead of just log paths, enabling the extraction of query names for display.
- Refactored
showResultsto acceptCompletedLocalQueryInfoobjects instead of file paths - Added query run names to the comparison UI with a list showing which runs are being compared
- Updated the message interface to include both name and data for each query run
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| extensions/ql-vscode/src/extension.ts | Simplified to pass complete query info objects to the view instead of extracting log paths |
| extensions/ql-vscode/src/compare-performance/compare-performance-view.ts | Refactored to handle query info objects, extract names using label provider, and include names in messages |
| extensions/ql-vscode/src/common/interface-types.ts | Updated message interface to wrap performance data with query names |
| extensions/ql-vscode/src/view/compare-performance/ComparePerformance.tsx | Updated to access nested data structure and display query run names in the UI |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
extensions/ql-vscode/src/compare-performance/compare-performance-view.ts
Outdated
Show resolved
Hide resolved
extensions/ql-vscode/src/compare-performance/compare-performance-view.ts
Outdated
Show resolved
Hide resolved
extensions/ql-vscode/src/compare-performance/compare-performance-view.ts
Outdated
Show resolved
Hide resolved
extensions/ql-vscode/src/compare-performance/compare-performance-view.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adds a list of the query runs being compared, and their relative order. The UI for opening the comparison doesn't make it clear which is run will appear on the left or on the right.