github / vscode-codeql Public
main
Commits on Feb 25, 2022
-
Make icon part of clickable link
Plus fix the associated styling/CSS
-
-
Merge pull request #1166 from github/aeisenberg/remote-queries-unit-t…
…ests Add unit tests for query history and remote queries
-
Small cleanups around remote-queries tests
- More explicit test helper module names - Fix unit test names - Better sanitization of repo names in tests
-
Integrate evaluator structured logging per query server instance (#1151)
Adds structured evaluator logging on a per-query instance to CLI v 2.8.2+. The newline-delimited JSON logs are emitted to `structured-evaluator-log.json` in the directory with other query artifacts, but not consumed by the extension. Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
-
Merge pull request #1168 from github/aeisenberg/query-history-version
Preemptively add a version number to the query history json file
-
-
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com>
-
-
Add unit tests for query history and remote queries
Adds some tests for reading in the history and manipulating. There are some more tests to come later. Maybe in another PR, maybe in this one. Note that this PR uses a new node 16 API String.prototype.replaceAll. I think this is ok since vscode ships with node 16. If this causes problems, I can separate to a different PR and we can discuss there.
Commits on Feb 24, 2022
-
Preemptively add a version number to the query history json file
Since we are now storing query history on disk, we will need to handle situations where versions change. For now, there is only version 1. In the future, we may need to make breaking changes to this format and we need the flexibility to detect and possibly handle different versions. In this case, users don't often downgrade their vscode versions, so most likely, we only need to be forward compatible. Ie- we need to handle moving from v1 to v2, but not the other way around.
-
Merge pull request #1164 from github/aeisenberg/avoid-download
Avoid downloading a result if it already exists
Commits on Feb 23, 2022
-
Avoid downloading a result if it already exists
This commit adds a check if a results artifact already exists before trying to download it again. This is not a complete solution since the page icon will still have a download button even if the artifact already exists. In this case, clicking on it will avoid downloading it a second time. The next step is to read in the downloaded artifacts and display them appropriately.
-
Merge pull request #1163 from github/aeisenberg/remote-multi-analyses
Allow multiple analyses for same repo to be downloaded
-
Merge pull request #1162 from github/aeisenberg/remote-query-restart
Remember remote queries across restarts
-
Merge pull request #1155 from github/aeisenberg/remote-query-save
Add remote query items to history view
-
Commits on Feb 22, 2022
-
Allow multiple analyses for same repo to be downloaded
Removes the limitation specified in #1089 where analyses for the same repo and different queries will overwrite each other.
-
Remember remote queries across restarts
Remote query items will be stored in query history and will remain available across restarts. When the extension is restarted, any `InProgress` remote queries will be monitored until they complete. When clicked on, a remote query is opened and its results can be downloaded. The query text and the query file can be opened from the history menu. A remote query can be deleted as well, which will purge all results from global storage. Limitations: 1. Labels are not editable 2. Running multiple queries that each run on the same repository will have conflicting results and there will be errors when trying to view the results of the second query. This limitation is not new, but it is easier to hit now. See #1089. Both of these limitations will be addressed in future PRs.
-
-
Merge pull request #1158 from github/aeisenberg/open-query-logger
Open query server logger for query errors
-
Merge pull request #1143 from github/aeisenberg/refactor-query-histor…
…y-info Refactor query history to handle remote and local
-
-
Merge pull request #1157 from github/aeisenerg/empty-additional-packs
Ensure `--addtional-packs` arg not used for empty workspace
-
-
-
-
-
Commits on Feb 21, 2022
Commits on Feb 18, 2022
-
Open query server logger for query errors
Because errors when running queries tend to have better explanations in the query server log instead of the extension log, by default open the query server log for query errors.
-
Commits on Feb 17, 2022
-
Merge branch 'aeisenberg/refactor-query-history-info' into aeisenberg…
…/remote-query-save
-
-
Merge pull request #1142 from github/aeisenberg/remote-queries-history
Store remote query artifacts in global storage