Commit Graph

4688 Commits

Author SHA1 Message Date
Koen Vlaswinkel
c017530410 Fix incorrect order in BQRS unit test 2023-05-31 15:20:53 +02:00
Koen Vlaswinkel
c654bfa4c4 Add some comments for the auto model usages query 2023-05-31 15:20:53 +02:00
Koen Vlaswinkel
bce097d939 Create type for usage snippets by signature 2023-05-31 15:20:53 +02:00
Koen Vlaswinkel
1920a2c6b4 Remove use of Pick in auto model usages query 2023-05-31 15:20:53 +02:00
Koen Vlaswinkel
a4d875af8d Fix typo 2023-05-31 12:33:51 +02:00
Koen Vlaswinkel
a117e09796 Use a single SARIF-compatible query instead of two separate queries 2023-05-31 12:32:41 +02:00
Koen Vlaswinkel
5c81671e67 Retrieve external API usage snippets using SARIF 2023-05-30 13:46:14 +02:00
Koen Vlaswinkel
5a66d6ff2d Merge pull request #2448 from github/koesie10/auto-model
Add initial implementation of auto-modeling
2023-05-30 12:19:22 +02:00
Koen Vlaswinkel
d27f3d2699 Remove incorrect explanations 2023-05-30 11:21:01 +02:00
Koen Vlaswinkel
695dc3f883 Improve sorting of input/output arguments 2023-05-30 11:17:52 +02:00
Koen Vlaswinkel
558f51b962 Add comment to parsePredictedClassifications method 2023-05-30 11:04:13 +02:00
Koen Vlaswinkel
2e29d0cda4 Fix incorrect signature reconstruction 2023-05-30 10:04:33 +02:00
Andrew Eisenberg
3b4f236426 Merge pull request #2440 from JarLob/patch-1
Retry results download if connection times out
2023-05-26 11:31:31 -07:00
Andrew Eisenberg
e24377f9f3 Merge pull request #2446 from github/aeisenberg/use-orig-pack-name
Use the original pack name for generated pack
2023-05-26 08:12:01 -07:00
Andrew Eisenberg
deb268465f Fix failing test 2023-05-26 07:52:49 -07:00
Koen Vlaswinkel
f52ad04afe Improve parsing of predicted classifications 2023-05-26 16:18:59 +02:00
Koen Vlaswinkel
4b54e4f31f Use 20 candidates and 100 samples 2023-05-26 13:40:12 +02:00
Robert
35a7eee3c0 Merge pull request #2449 from github/robertbrignull/queries-welcome
Add welcome text for the queries panel
2023-05-25 17:01:13 +01:00
Andrew Eisenberg
efabcaefe3 Update extensions/ql-vscode/src/variant-analysis/run-remote-query.ts
Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com>
2023-05-25 08:30:24 -07:00
Robert
a27b0a469e Merge pull request #2447 from github/robertbrignull/QueryDiscovery-tests
Add integration tests of QueryDiscovery
2023-05-25 16:19:37 +01:00
Robert
472b1769c5 Update extensions/ql-vscode/test/vscode-tests/minimal-workspace/queries-panel/query-discovery.test.ts
Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>
2023-05-25 15:38:49 +01:00
Koen Vlaswinkel
7bbba38cfb Merge pull request #2450 from github/koesie10/move-database-item-refresh
Extract `DatabaseItem.refresh` method to `DatabaseManager`
2023-05-25 16:32:01 +02:00
Koen Vlaswinkel
adcc3d0b39 Remove unnecessary if-statements before slice 2023-05-25 15:52:00 +02:00
Robert
8be2dd805b Use path.sep 2023-05-25 14:44:05 +01:00
Koen Vlaswinkel
09fc0f3040 Extract DatabaseItem.refresh to DatabaseManager
This moves the `refresh` method from `DatabaseItem` to `DatabaseManager`
and makes it private. This makes the `DatabaseItem` interface smaller
and more focused and ensures that `refresh` cannot be called from
outside of the `DatabaseManager`.
2023-05-25 15:03:30 +02:00
Koen Vlaswinkel
295a08f85a Use DatabaseItemImpl where possible in DatabaseManager
This will allow us to implement specific behavior on the
`DatabaseItemImpl` which is not available on the `DatabaseItem`. This
will allow us to make the surface area of the `DatabaseItem` smaller.
2023-05-25 14:36:38 +02:00
Robert
394b51f4f3 Add welcome text 2023-05-25 12:49:01 +01:00
Koen Vlaswinkel
a88e683ebf Add initial implementation of auto-modeling 2023-05-25 13:28:32 +02:00
Robert
f236e65f68 Add integration tests of QueryDiscovery 2023-05-25 09:57:52 +01:00
Robert
301149fd32 Don't create array entry if workspace contains no queries 2023-05-25 09:57:52 +01:00
Koen Vlaswinkel
b8557d337c Merge pull request #2445 from github/koesie10/move-local-databases
Split up `local-databases.ts` file into multiple files
2023-05-25 09:30:23 +02:00
Andrew Eisenberg
b4506cf6e5 Use the original pack name for generated pack
Generated variant analysis packs will use the original name
of the pack that the query is located in. This is to support
some future work where we do extra validation of data extensions.

If the query is not in a pack, the default name is used.
2023-05-24 21:46:54 +00:00
Robert
ff88a8d491 Merge pull request #2444 from github/robertbrignull/QueryTreeDataProvider-tests
Add tests of QueryTreeDataProvider
2023-05-24 16:25:08 +01:00
Koen Vlaswinkel
0707155603 Fix imports for tests 2023-05-24 17:08:00 +02:00
Koen Vlaswinkel
c004f18720 Remove outdated comment 2023-05-24 17:04:36 +02:00
Koen Vlaswinkel
6b9c3491ec Move local-databases.ts to local-databases/index.ts 2023-05-24 17:04:14 +02:00
Koen Vlaswinkel
d608c057a4 Remove unused getUpgradesDirectories function 2023-05-24 17:03:14 +02:00
Koen Vlaswinkel
60cfc311e5 Move DatabaseManager to separate file 2023-05-24 17:02:39 +02:00
Koen Vlaswinkel
59482c2b2c Move DatabaseChangedEvent to separate file 2023-05-24 17:00:52 +02:00
Koen Vlaswinkel
7888d210c4 Move DatabaseResolver to separate file 2023-05-24 16:58:29 +02:00
Koen Vlaswinkel
67983c64ca Move DatabaseContents to separate file 2023-05-24 16:55:31 +02:00
Koen Vlaswinkel
d02e53fbd2 Move DatabaseItemImpl to separate file 2023-05-24 16:53:59 +02:00
Koen Vlaswinkel
4bb4627d30 Move DatabaseItem to separate file 2023-05-24 16:52:53 +02:00
Koen Vlaswinkel
6331cddbfd Move DatabaseOptions to separate file 2023-05-24 16:51:38 +02:00
Robert
5d7a7237a3 Merge pull request #2443 from github/robertbrignull/query-constructor
Remove member variables that could be local variables
2023-05-24 14:34:06 +01:00
Robert
27a88032f7 Add QueryTreeDataProvider tests 2023-05-24 11:42:23 +01:00
Robert
b9ce91cff9 Add a QueryDiscoverer interface to make testing QueryTreeDataProvider easier 2023-05-24 11:42:23 +01:00
Robert
9dee2a132e Remove member variables that could be local variables 2023-05-24 10:37:22 +01:00
jarlob
69f9ecc2f4 Delete unfinished downloads in case of retry 2023-05-24 11:25:50 +02:00
jarlob
9bd852a71b Add error message to logging. 2023-05-24 11:20:52 +02:00