Sitelet https://web.archive.org/web/20220226045708/https://github.com/github/vscode-codeql/commits/main
Skip to content
Permalink
main

Commits on Feb 25, 2022

  1. Make icon part of clickable link

    Plus fix the associated styling/CSS
    shati-patel committed Feb 25, 2022
  2. Merge pull request #1166 from github/aeisenberg/remote-queries-unit-t…

    …ests
    
    Add unit tests for query history and remote queries
    aeisenberg committed Feb 25, 2022
  3. Small cleanups around remote-queries tests

    - More explicit test helper module names
    - Fix unit test names
    - Better sanitization of repo names in tests
    aeisenberg committed Feb 25, 2022
  4. 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>
    angelapwen and aeisenberg committed Feb 25, 2022
  5. Merge pull request #1168 from github/aeisenberg/query-history-version

    Preemptively add a version number to the query history json file
    aeisenberg committed Feb 25, 2022
  6. Ensure all tests are run

    Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com>
    aeisenberg and charisk committed Feb 25, 2022
  7. 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.
    aeisenberg committed Feb 25, 2022

Commits on Feb 24, 2022

  1. 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.
    aeisenberg committed Feb 24, 2022
  2. Merge pull request #1164 from github/aeisenberg/avoid-download

    Avoid downloading a result if it already exists
    aeisenberg committed Feb 24, 2022

Commits on Feb 23, 2022

  1. 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.
    aeisenberg committed Feb 23, 2022
  2. Merge pull request #1163 from github/aeisenberg/remote-multi-analyses

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

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

    Add remote query items to history view
    aeisenberg committed Feb 23, 2022
  5. 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
Older