Quick-eval results cannot be compared
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript, vscode
- Domain
- developer-experience, frontend
Research direction
Start from the Query History view's Compare Results command and the comparison view used for Quick Evaluation runs. Reproduce both same-predicate and different-predicate cases, then trace how predicate names and result schemas reach the table-name dropdown. Done means matching predicates compare correctly, compatible differing schemas use a placeholder, and incompatible schemas show an empty comparison with a suitable warning.
Written by the indexing model from the issue text.
Description
Describe the bug
When running the Compare Results command from the Query History view on the results of Quick Evaluation queries, the comparison view is empty, with no table names in the dropdown. If two different predicates were run, this also throws an error Schema undefined not found..
Version
CodeQL extension version: 1.4.8
CodeQL CLI version: 2.5.5
To reproduce
- Create a query file with two predicates.
int i1() { result = 1 } int i2() { result = 2 } select 1 - Quick-evaluate
i1twice. Select the two runs in Query History, right click, Compare Results.- This produces an empty compare view with no table names in the dropdown.
- Quick-evaluate
i1theni2. Select the two runs in Query History, right click, Compare Results.- This fails with an error
Schema undefined not found. - It also produces the same empty compare view with no table names in the dropdown.
- This fails with an error
Expected behavior
- When the predicate name and columns match, show the quick-eval predicate name in the dropdown, and show a comparison of results.
- If the predicate names do not match, but the two schemas are compatible, attempt to compare the results, with a placeholder table name in the dropdown.
- If the schemas aren't compatible, show an empty comparison with a suitable warning message.
- Dominant language
- TypeScript
- Stars
- 539
- Forks
- 240
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 29
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/vscode-codeql
-
bug VSCode
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/vscode-codeql#4471 · 1 comment ·
-
bug enhancement VSCode
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/vscode-codeql#592 · 2 comments ·
-
enhancement VSCode
Difficulty 3/5 1-2 days Newbie friendliness 55/100
github/vscode-codeql#4432 · 1 comment ·
-
bug VSCode
Difficulty 3/5 1-2 days Newbie friendliness 52/100
github/vscode-codeql#4356 ·
-
bug VSCode
Difficulty 3/5 1-2 days Newbie friendliness 64/100
github/vscode-codeql#4339 · 1 comment ·
All issues in github/vscode-codeql
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·