Граф коммитов

2763 Коммитов

Автор SHA1 Сообщение Дата
Robert d144874e77 v1.7.8 2023-02-02 16:30:46 +00:00
Elena Tanasoiu c493425046
Merge pull request #2027 from github/elena/select-db-in-codespace
Introduce command to set default Code Tour database
2023-02-02 12:05:27 +00:00
Charis Kyriakou 302091f2c5
Added version to db config (#2029) 2023-02-02 11:50:16 +00:00
Elena Tanasoiu 99d794c2a8
Update error message
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
2023-02-02 10:30:01 +00:00
Elena Tanasoiu b6aa41d19b
Replace undefined check with length check 2023-02-02 10:27:22 +00:00
Elena Tanasoiu 6257608433
Add comment to indicate which folder we're pointing to 2023-02-02 10:27:22 +00:00
Elena Tanasoiu 6ebeb2b201
Introduce command to set default Code Tour database
We have a codespace template which houses our CodeQL tour:
https://github.com/github/codespaces-codeql

This contains a repo with a default databases already loaded
for the user so that they can start writing queries more quickly.

At the moment we're asking the user to manually right click on
the database folder ('codeql-tutorial-database') and set it as
the current database.

We can take this one step further by defining a command that gets
triggered when we arrive at the step for setting up the database.

The command ("codeQL.setDefaultTourDatabase") will build the URI
pointing to our preloaded database and set it as the current one.

We initially considered whether we can re-use the setCurrentDatabase
command and pass the URI of the database from the codespace itself,
but the URI would be hardcoded as:

```
file://0-62/workspaces/codespaces-codeql/codeql-tutorial-database
```

as we can only pass the codeTour extension a command and string
parameters.

This would have been brittle as the filepath for a codespace might
change in the future.

Instead we can define a custom tour command ("setDefaultTourDatabase")
to look at the current workspace folder and build the path to the
database in the CodeQL extension.

Co-authored-by: Shati Patel <shati-patel@github.com>
2023-02-02 10:27:22 +00:00
Nora 9f240c8500
Merge pull request #2028 from github/nora/polish-url-helper
DP Panel: Drop protocol check when creating a new item
2023-02-01 20:17:18 +01:00
Nora 4c54778515 Allow usage of www.github.com 2023-02-01 11:34:49 +00:00
Nora 72412c92c8 Allow usage of github.com 2023-02-01 11:32:57 +00:00
Robert d780c24994 Don't send new telemetry data unless opted-in 2023-02-01 11:19:11 +00:00
Koen Vlaswinkel fa8def3c8c
Merge pull request #2025 from github/koesie10/mrva-view-title
Update variant analysis view title
2023-02-01 09:37:55 +01:00
Koen Vlaswinkel ad38d6d1ce
Merge pull request #2023 from github/koesie10/db-panel-controller-repo-welcome
Show welcome view when controller repo is not setup
2023-01-31 17:01:00 +01:00
Charis Kyriakou 23a8468a26
Update the copy for the codeQLVariantAnalysisRepositories.removeItemContextMenu command (#2026) 2023-01-31 15:36:21 +00:00
Nora 9e54e5eced Drop protocol check 2023-01-31 14:18:12 +00:00
Koen Vlaswinkel dbca4456a8 Change variant analysis view title 2023-01-31 11:55:04 +01:00
Koen Vlaswinkel ecc5fa1e4e Extract MRVA view title generation to method
We had duplicated logic for generating the variant analysis view title.
This extracts it to a single method so the title are always in sync.
2023-01-31 11:53:22 +01:00
Koen Vlaswinkel 7ec4b4bc96
Merge pull request #2024 from github/koesie10/eslint-config
Unify ESLint configuration
2023-01-31 11:50:07 +01:00
Koen Vlaswinkel ba11781165 Move welcome view test to rendering test 2023-01-31 11:43:55 +01:00
Nora 3fa7bec323
Merge pull request #2021 from github/nora/fix-placeholder
Fix placeholder copy
2023-01-31 09:52:21 +01:00
Koen Vlaswinkel a3c6b362f8 Remove unnecessary disabled rules
These rules are already disabled in the base config, so they don't need
to be disabled individually anymore.
2023-01-30 16:55:05 +01:00
Koen Vlaswinkel 5f382a5677 Combine ESLint configurations
Instead of having different ESLint configuration files in each
directory which don't seem to inherit the configuration correctly, this
will add `overrides` in the root file.
2023-01-30 16:43:19 +01:00
Koen Vlaswinkel 6114b591c5 Fix tests when no controller repo is set
This also extracts the helper to do so into a separate function to avoid
duplicating this logic.
2023-01-30 15:52:19 +01:00
Koen Vlaswinkel b3c4979358 Show welcome view when controller repo is not setup
This will add a welcome view to the database panel which is shown when
the controller repository is not setup. This welcome view will show a
button which can be used to set up the controller repository.
2023-01-30 14:28:22 +01:00
Nora 3ba13a32e3 Remove query item on hover 2023-01-30 13:07:47 +00:00
Nora 3dc2cec5b6 Update copy 2023-01-30 10:39:42 +00:00
Koen Vlaswinkel ddddd2f0b9
Merge pull request #2018 from github/koesie10/download-progress-indicator
Add download progress indicator for MRVA downloads
2023-01-27 10:14:32 +01:00
Koen Vlaswinkel 5098382afb
Merge pull request #2014 from github/koesie10/download-progress
Report download progress when downloading variant analysis results
2023-01-27 10:14:08 +01:00
Koen Vlaswinkel 7dd5b0a826 Decrease download update delay
3 seconds is a really long time to wait for downloads since a
significant percentage of downloads will complete within 3 seconds. This
changes the update delay to 500ms which should still give us good
performance, but also make the download feel more responsive.
2023-01-26 17:11:42 +01:00
Koen Vlaswinkel 94968f41e7 Fix response size calculation
The `response.size` is almost always set to `0`. However, the
`Content-Length` header is returned by Azure and contains the size of
the file.
2023-01-26 17:11:40 +01:00
Nora 5ca409797d
Merge pull request #2013 from github/nora/extract-scrubber-tests
Extract query history scrubber tests
2023-01-26 17:00:26 +01:00
Koen Vlaswinkel c7bd9f9394 Add determinate progress ring 2023-01-26 16:47:37 +01:00
Nora 2264b6b983
Merge pull request #2016 from github/nora/query-history-context-menu
Query History: context menu copy and groups
2023-01-26 16:33:29 +01:00
Nora 012157a57a Remove unused code 2023-01-26 13:48:56 +00:00
Nora 940169e2a0 Extract query history scrubber tests 2023-01-26 13:48:56 +00:00
Nora 6ebb4affec Use groups and new copy 2023-01-26 13:41:09 +00:00
Koen Vlaswinkel 0efbbbfef1 Add test for download progress reporting 2023-01-26 13:36:04 +01:00
Koen Vlaswinkel 610a623bc5 Fix download tests 2023-01-26 13:36:04 +01:00
Koen Vlaswinkel 37c9414dad Use async `appendFile` 2023-01-26 13:36:04 +01:00
Robert 6cf351f332 Output percentage during results download 2023-01-26 13:36:04 +01:00
Robert 07f5d2b20d
Merge pull request #2010 from github/robertbrignull/logging_types
Introduce ShowAndLogOptions
2023-01-26 11:21:28 +00:00
Robert 51a72227e9
Merge pull request #2011 from github/robertbrignull/catch_unknown
Enforce that promise rejection values must have unknown type
2023-01-26 10:39:55 +00:00
Robert e9345dc588 Move documentation to type instead of methods 2023-01-26 10:37:23 +00:00
Nora 2acaf31287
Merge pull request #2007 from github/nora/query-history-sort-button
Query History: sorting
2023-01-26 10:43:20 +01:00
Nora 1f52642308 Fix rebase problems 2023-01-26 09:21:04 +00:00
Nora af7ec57b72 Fix rename in comments 2023-01-26 10:07:31 +01:00
Nora c993d30b34 Split query history file 2023-01-26 10:07:31 +01:00
Robert 13dd5298bf Enforce that promise rejection values must have unknown type 2023-01-25 16:34:47 +00:00
Robert de640e347d Introduce ShowAndLogOptions 2023-01-25 16:29:30 +00:00
Nora ca1d63a3fc
Merge pull request #2006 from github/nora/update-old-panel-icons
Update icons of old DB panel
2023-01-25 16:58:09 +01:00