shati-patel
d41c63bf7d
Change parameter type + extract local variable
2022-06-01 21:19:35 +01:00
shati-patel
a3bbdafabb
Add tests for 'tryGetRemoteLocation'
2022-06-01 21:19:35 +01:00
shati-patel
a78eef464b
Handle undefined URLs
2022-06-01 21:19:35 +01:00
shati-patel
e8348ac12a
Check format of URI
2022-06-01 21:19:35 +01:00
shati-patel
5efc3835db
Add sourceLocationPrefix to one of the test files
2022-06-01 21:19:35 +01:00
shati-patel
c4ed6e88de
Pass sourceLocationPrefix down through all the functions
2022-06-01 21:19:35 +01:00
shati-patel
51e6559145
Update tryGetRemoteLocation to use sourceLocationPrefix (if available)
2022-06-01 21:19:35 +01:00
Charis Kyriakou
db8b419885
Combine time constants ( #1371 )
2022-06-01 16:52:18 +01:00
Elena Tanasoiu
475d7cc535
Merge pull request #1369 from github/elenatanasoiu/fix-casing-query-history
...
Be consistent about casing in Query History menu
2022-06-01 12:24:29 +01:00
Elena Tanasoiu
1858de5ed0
Update Changelog
2022-06-01 12:07:13 +01:00
Angela P Wen
642f4788fb
Update tests to CLI v2.9.3 ( #1370 )
2022-05-31 17:44:43 +00:00
Elena Tanasoiu
7e70f8b758
Be consistent about casing in Query History
...
Reported here: https://github.com/github/code-scanning/issues/6008
We originally started out by capitalizing each word [1], but made some
small changes [2] which resulted in our Query History options
being inconsistent.
Let's fix that.
[1]: a5da556496/extensions/ql-vscode/package.json
[1]: b470e41431
2022-05-31 18:34:37 +01:00
Charis Kyriakou
e417bea948
Move time constants to time module ( #1368 )
2022-05-31 13:21:45 +01:00
Andrew Eisenberg
6b4be93169
Merge pull request #1363 from github/aeisenberg/resolve-ml-model
...
Add new support for resolve ml-models
2022-05-30 18:46:53 -07:00
Andrew Eisenberg
061eaad743
Update extensions/ql-vscode/src/cli.ts
...
Change version where precise ml-model resolution was introduced.
2022-05-30 18:32:11 -07:00
Andrew Eisenberg
8ff21d6c89
Merge pull request #1365 from github/aeisenberg/time
...
Extract time functions
2022-05-30 07:54:18 -07:00
Andrew Eisenberg
0d9f4e8c0f
Merge pull request #1366 from github/aeisenberg/handle-missing-nwo
...
Handle missing nwos returned from graphql query
2022-05-30 07:53:55 -07:00
Andrew Eisenberg
02288718dc
Handle missing nwos returned from graphql query
2022-05-27 13:12:49 -07:00
Andrew Eisenberg
615cf86fc0
Refactor time functions
...
Rename, add comments, and extract some local variables.
2022-05-27 08:51:14 -07:00
Andrew Eisenberg
d63a209674
Make conditional statement more explicit
2022-05-27 07:08:58 -07:00
Andrew Eisenberg
9d26304f7a
Extract time functions
...
Create the `time.ts` module as a place to put fime functions.
Move two time functions there and create tests for them.
The `humanizeUnit` function now uses ECMAscript apis. This ensures
that pluralization happens appropriately.
Also, fix a small bug in the results view to enure `repository`
is correctly pluralized.
2022-05-26 15:47:03 -07:00
Andrew Eisenberg
f73bda438a
Merge pull request #1362 from github/aeisenberg/last-update-sort
...
Add sort MRVA results by last updated
2022-05-26 09:15:37 -07:00
Andrew Eisenberg
19b65a654e
Fix method name
2022-05-26 08:44:04 -07:00
Andrew Eisenberg
770127e67a
Use the repo push icon
2022-05-26 06:55:12 -07:00
Andrew Eisenberg
f373e6467a
Store LastUpdated as a duration, not a timestamp
...
The `lastUpdated` value is now the duration between timestamp of the
last time the repo was updated and time the file was downloaded.
This fixes the duration and it won't change over time.
2022-05-25 20:30:28 -07:00
Andrew Eisenberg
e43b4e66a1
Add sort MRVA results by last updated
...
1. Refactor references of `Stargazers` to `RepositoryMetadata` since
the query is now more generic.
2. Update the graphql query to request last updated as well as stars
3. Update web view to display last updated
4. Update sort mechanism for last updated
A few notes:
1. I used `Intl.RelativeTimeFormat` to humanize the times. It wasn't as
simple as I had hoped since I need to also make a guess as to which
unit to use.
2. The icon used by last updated is not quite what is in the wireframes.
But, I wanted to stick with primer icons and I used the closest I can
get.
3. The last updated time is retrieved when the query is first loaded
into vscode and then never changes. However, this time is always
compared with `Date.now()`. So, opening the query up a week from now,
all of the last updated times would be one week older (even if the
repository has been updated since then).
I don't want to re-retrieve the last updated time each time we open
the query, so this timestamp will get out of date eventually.
Is this confusing as it is?
2022-05-24 19:57:40 -07:00
Andrew Eisenberg
90ec003386
Add new support for resolve ml-models
...
The new support will be available in the next
release of the CLI, most likely 2.9.3,
This change requires the query to be run to be
passed in to the call to resolve ml-models.
2022-05-24 17:24:46 -07:00
Angela P Wen
2f9aca785e
Log most expensive predicates and timings to query log ( #1349 )
2022-05-20 13:21:33 -07:00
Andrew Eisenberg
405a6c9901
Merge pull request #1353 from github/aeisenberg/sort-remote-results
...
Add sorting to variant analysis results
2022-05-20 09:23:10 -07:00
Andrew Eisenberg
3611b1fe61
Add comments and simplify some JSX
...
Use `ActionMenu.Anchor` instead of `ActionMenu.Button`.
The theming styles are not correct. Will work on that next.
2022-05-20 08:01:54 -07:00
Andrew Eisenberg
7b33441519
Merge pull request #1360 from github/dependabot/npm_and_yarn/extensions/ql-vscode/mocha-10.0.0
...
Bump mocha from 9.1.3 to 10.0.0 in /extensions/ql-vscode
2022-05-19 08:29:52 -07:00
dependabot[bot]
2a8f61dfbe
Bump mocha from 9.1.3 to 10.0.0 in /extensions/ql-vscode
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 9.1.3 to 10.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.3...v10.0.0 )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-19 13:05:48 +00:00
Andrew Eisenberg
dcfd6d43c0
Merge pull request #1307 from github/dependabot/npm_and_yarn/extensions/ql-vscode/js-yaml-4.1.0
...
Bump js-yaml from 3.14.0 to 4.1.0 in /extensions/ql-vscode
2022-05-18 15:03:36 -07:00
Andrew Eisenberg
4e4d8b2f04
Fix js-yaml issues
...
With js-yaml 4.0, safeLoad is no longer available. Use load instead.
2022-05-18 14:45:28 -07:00
Andrew Eisenberg
50197ba7b7
Merge pull request #1308 from github/dependabot/npm_and_yarn/extensions/ql-vscode/style-loader-3.3.1
...
Bump style-loader from 0.23.1 to 3.3.1 in /extensions/ql-vscode
2022-05-18 14:40:50 -07:00
Andrew Eisenberg
6c376d8721
Add integration test for ensuring the graphql query succeeds
2022-05-18 14:20:24 -07:00
Andrew Eisenberg
82ada54103
Add sorting to variant analysis results
...
Sort by stars, number of results, and name.
This also includes a graphql query that retrieves all the stars
for relevant repositories.
2022-05-18 13:56:17 -07:00
shati-patel
0fdfeb3cd3
Bump version to v1.6.7
2022-05-17 16:37:42 +01:00
shati-patel
096d7719c6
v1.6.6
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
v1.6.6
2022-05-17 16:07:06 +01:00
Angela P Wen
619c485224
Show query results before structured evaluator log summary completes ( #1350 )
2022-05-17 10:45:52 -04:00
Shati Patel
9367d5fb45
MRVA: Export results to local markdown files ( #1344 )
2022-05-17 10:03:23 +01:00
Shati Patel
50ec97ad91
Update CLI version used in tests
2022-05-16 17:43:06 +01:00
shati-patel
fa5fcde987
Rename button component
2022-05-16 16:45:07 +01:00
shati-patel
5b33333404
Fix padding to match design doc
2022-05-16 16:45:07 +01:00
shati-patel
cf50624e4e
Tidy up
2022-05-16 16:45:07 +01:00
shati-patel
ccc9ed8b49
MRVA: Add webview button to export results
2022-05-16 16:45:07 +01:00
shati-patel
141f5381e7
MRVA: Export results from query history
2022-05-16 10:08:46 +01:00
shati-patel
be054ca4f8
Move "exporting results" to a separate file
2022-05-12 13:26:16 +01:00
Shati Patel
0a06452450
Update extensions/ql-vscode/src/remote-queries/remote-queries-manager.ts
...
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2022-05-11 17:27:45 +01:00
shati-patel
b840d3f9bf
Tidy up Gist creation
2022-05-11 17:27:45 +01:00