Andrew Eisenberg
02288718dc
Handle missing nwos returned from graphql query
2022-05-27 13:12:49 -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
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
shati-patel
c829c30688
MRVA: Add command to export markdown results to gist
2022-05-11 17:27:45 +01:00
Shati Patel
7947afb1b4
Remove unnecessary commas from alert shortDescription
2022-05-10 11:39:41 +01:00
dependabot[bot]
c32b53613d
Bump js-yaml from 3.14.0 to 4.1.0 in /extensions/ql-vscode
...
Bumps [js-yaml](https://github.com/nodeca/js-yaml ) from 3.14.0 to 4.1.0.
- [Release notes](https://github.com/nodeca/js-yaml/releases )
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.0...4.1.0 )
---
updated-dependencies:
- dependency-name: js-yaml
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-09 21:51:58 +00:00
Andrew Eisenberg
c058e7a128
Merge pull request #1340 from github/aeisenberg/fix-integration-tests
...
Fix cli-integration tests
2022-05-09 14:48:17 -07:00
Andrew Eisenberg
1dc663339d
Revert back to vscode-test
2022-05-09 14:02:22 -07:00
Andrew Eisenberg
351db4efc8
Fix cli-integration tests
...
The main problem this commit fixes is with vscode 1.67.0, an error is
thrown when inside of integration tests and a dialog box is opened. We
were opening the telemetry dialog box. Now, an env variable is set
during cli-integration tests that prevents the dialog from being
opened.
There are also other cleanups and improvements with cli-integration
tests that assist with running locally:
- `vscode-test` dependency has been renamed to `@vscode/test-electron`,
so use that instead and make the small API changes to support it.
- Commit the codeql-pack.lock.yml file so it isn't recreated on each
test run.
- Ensure all databases are removed before _and after_ each test run
that manipulates the set of installed databases
- Similarly, for quick query files, delete them before and after each
test.
- Change some async `forEach` blocks to for loops in order to support
sequential operations more easily.
2022-05-09 13:50:28 -07:00
Shati Patel
12d6ea3966
Update CLI version used in tests
2022-05-05 18:17:18 +01:00
shati-patel
e1adc7b428
MRVA: Rename summary file to make it appear first alphabetically
2022-05-05 14:32:55 +01:00
shati-patel
dc34adadcd
Tidy up tests to use expected directory
2022-05-05 14:01:39 +01:00
shati-patel
6e06381640
Move expected files into subdirectory
2022-05-05 14:01:39 +01:00
shati-patel
f55389cd26
MRVA: Also test names of generated markdown files
2022-05-05 14:01:39 +01:00
shati-patel
6d930f53ba
Don't include file extension for summary file
...
(to be consistent with other markdown files)
2022-05-04 17:18:00 +01:00
shati-patel
f7616cf685
Refactor: Include filename when generating markdown
2022-05-04 17:18:00 +01:00
Andrew Eisenberg
f55d9820bd
Merge pull request #1329 from github/aeisenberg/run-queries-message
...
Further massage the message after running remote queries
2022-05-04 08:03:04 -07:00
Andrew Eisenberg
befc2cddd2
Apply suggestions from code review
...
Co-authored-by: Robert <robertbrignull@github.com >
2022-05-04 07:46:53 -07:00
Andrew Eisenberg
ef268e043f
Further massage the message after running remote queries
2022-05-03 16:38:44 -07:00
Charis Kyriakou
e10d2aef8e
Upgrade node version minimum requirement ( #1326 )
2022-05-03 16:10:45 +01:00
Charis Kyriakou
a97c5fe836
MRVA: Support both local and gist links when generating markdown
2022-05-03 13:27:53 +01:00
shati-patel
9b6eddddae
MRVA: Expand path results individually
2022-04-29 18:50:30 +01:00
shati-patel
ed84825e65
See if replaceAll works on actions
2022-04-29 14:58:16 +01:00
shati-patel
cb84003c31
Actually fix the test + code scanning error 🤞🏽
2022-04-29 14:58:16 +01:00