Skip to content
Permalink
main

Commits on Feb 23, 2022

  1. Merge pull request #1163 from github/aeisenberg/remote-multi-analyses

    Allow multiple analyses for same repo to be downloaded
    aeisenberg committed Feb 23, 2022
  2. Merge pull request #1162 from github/aeisenberg/remote-query-restart

    Remember remote queries across restarts
    aeisenberg committed Feb 23, 2022
  3. Merge pull request #1155 from github/aeisenberg/remote-query-save

    Add remote query items to history view
    aeisenberg committed Feb 23, 2022
  4. Small cleanup and comment

    aeisenberg committed Feb 23, 2022

Commits on Feb 22, 2022

  1. 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.
    aeisenberg committed Feb 22, 2022
  2. 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.
    aeisenberg committed Feb 22, 2022
  3. Merge pull request #1158 from github/aeisenberg/open-query-logger

    Open query server logger for query errors
    aeisenberg committed Feb 22, 2022
  4. Merge pull request #1143 from github/aeisenberg/refactor-query-histor…

    …y-info
    
    Refactor query history to handle remote and local
    aeisenberg committed Feb 22, 2022
  5. Merge pull request #1157 from github/aeisenerg/empty-additional-packs

    Ensure `--addtional-packs` arg not used for empty workspace
    aeisenberg committed Feb 22, 2022

Commits on Feb 21, 2022

Commits on Feb 18, 2022

  1. 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.
    aeisenberg committed Feb 18, 2022

Commits on Feb 17, 2022

  1. Merge pull request #1142 from github/aeisenberg/remote-queries-history

    Store remote query artifacts in global storage
    aeisenberg committed Feb 17, 2022
  2. Merge pull request #1150 from github/aeisenberg/clear-cache

    Fix race condition where packs with no name errored during remote query
    aeisenberg committed Feb 17, 2022
  3. Merge pull request #1149 from github/aeisenberg/avoid-redownload

    Avoid re-downloading analyses
    aeisenberg committed Feb 17, 2022
  4. Add remote query items to history view

    This is another incremental step on the way to saving history.
    
    This commit adds remote items to the history view. It adds in progress
    and completed icons. Users can explicitly remove items.
    
    Here is what is _not_ working:
    
    1. Any other query history commands like open results or open query.
    2. Seeing items after a restart.
    aeisenberg committed Feb 17, 2022

Commits on Feb 16, 2022

  1. Use QueryHistoryInfo instead of LocalQueryInfo

    Also, rename RemoteQueryInfo -> RemoteQueryHistoryItem
    aeisenberg committed Feb 16, 2022
  2. Fix race condition where packs with no name errored during remote query

    Uses the internal `clear-cache` CLI server command.
    aeisenberg committed Feb 16, 2022
  3. Merge branch 'aeisenberg/remote-queries-history' into aeisenberg/refa…

    …ctor-query-history-info
    aeisenberg committed Feb 16, 2022
  4. Avoid re-downloading analyses

    Avoids re-downloading analyses when downloading all analyses.
    aeisenberg committed Feb 16, 2022
  5. Avoid artifactStorageDir and use queryId to build storage paths

    This is still an intermediate step as we start to bring in more
    abstractions. I plan to implement a storage handler that will
    keep track of all the different bits for a remote query.
    aeisenberg committed Feb 16, 2022
  6. Merge pull request #1140 from github/aeisenberg/contextual-storage

    Store query results for contextual queries elsewhere
    aeisenberg committed Feb 16, 2022
  7. Ensure proper paths are used for retrieving artifacts

    This change builds on the previous change to ensure that sarif results
    can be displayed properly. Here is what it does:
    
    - Move prepareDownloadDirectory to the RemoteQueryManager
    - Store the queryResult to disk
    - Use the `artifactStorageDir` as the location where artifacts are kept
    - Add `artifactStorageDir` to DownloadLink
    - Ensure the webview passes around the right links.
    aeisenberg committed Feb 16, 2022

Commits on Feb 15, 2022

  1. Store query results for contextual queries elsewhere

    We want them to be deleted when the application exits. We don't want
    them to be stored with user queries.
    aeisenberg committed Feb 15, 2022
  2. Refactor query history to handle remote and local

    This is a step on the way towards storing remote query history across
    restarts.
    
    This PR adds a `QueryHistoryInfo` type that is a union of two types:
    `LocalQueryInfo` and `RemoteQueryInfo`.
    
    `LocalQueryInfo` used to be called `FullQueryInfo` and `RemoteQueryInfo`
    is only a skeleton right now. The body will be added later. This PR
    only introduces it and changes types to make future PRs simpler.
    
    Also, `slurp` and `splat` have been moved to the `query-serialization.ts`
    module.
    aeisenberg committed Feb 15, 2022
Older