-
Notifications
You must be signed in to change notification settings - Fork 207
Download and process analyses results #1089
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.
Looks good. I haven't tried running this yet. I have a handful of suggestions and a few things we will want to think about in the future.
extensions/ql-vscode/src/remote-queries/analyses-results-manager.ts
Outdated
Show resolved
Hide resolved
extensions/ql-vscode/src/remote-queries/analyses-results-manager.ts
Outdated
Show resolved
Hide resolved
extensions/ql-vscode/src/remote-queries/analyses-results-manager.ts
Outdated
Show resolved
Hide resolved
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.
Looks good. A small suggestion about updating an error message. I'm not entirely happy with what I have, but we should be using the terms alert
and path
queries instead of problem or problem-path.
See https://codeql.github.com/docs/writing-codeql-queries/about-codeql-queries/#overview
After this change, I think it will be good.
extensions/ql-vscode/src/remote-queries/analyses-results-manager.ts
Outdated
Show resolved
Hide resolved
…er.ts Co-authored-by: Andrew Eisenberg <[email protected]>
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.
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.
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.
Removes the limitation specified in #1089 where analyses for the same repo and different queries will overwrite each other.
Adds logic to download analyses results, do some minimal processing and make them available to the web view.
Note that this solution doesn't work well with running multiple queries but I'm hoping to address that once we have some notion of query history.
Also it does not support bqrs files as there is some Product/UX work that needs to happen.
Checklist
N/A:
ready-for-doc-review
label there.