When viewing results of queries with multiple query predicates, if you click one of the column headers to sort by that column, you can no longer view the other query predicate results in the dropdown unless you go to a previous set of results and back again.
Version
CodeQL extension version: 1.5.6 CodeQL CLI version: 2.7.0 Platform: darwin x64
To reproduce
Save this query as resultsBug.ql and run on any database:
query predicate foo(string s) {
s = "foo"
}
query predicate bar(string s) {
s = "bar"
}
Click the dropdown. Notice how you see foo, bar, and alerts. In the dropdown, select foo. Click the column header for s to sort by that column. Now click the dropdown again. Notice how you now only see foo and alerts, and that bar is missing.
Expected behavior
After sorting one query predicate's results by some column, I am still able to switch back to other query predicate results with the dropdown.
When viewing results of queries with multiple
query predicates, if you click one of the column headers to sort by that column, you can no longer view the otherquery predicateresults in the dropdown unless you go to a previous set of results and back again.Version
CodeQL extension version: 1.5.6 CodeQL CLI version: 2.7.0 Platform: darwin x64
To reproduce
Save this query as
resultsBug.qland run on any database:Click the dropdown. Notice how you see
foo,bar, andalerts. In the dropdown, selectfoo. Click the column header forsto sort by that column. Now click the dropdown again. Notice how you now only seefooandalerts, and thatbaris missing.Expected behavior
After sorting one
query predicate's results by some column, I am still able to switch back to otherquery predicateresults with the dropdown.