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

3147 Коммитов

Автор SHA1 Сообщение Дата
Charis Kyriakou 24a7348fc2
Add support for adding local lists (#1907) 2022-12-23 11:11:48 +00:00
Charis Kyriakou 31b80efc56
Use constant for selected db item resource uri (#1908) 2022-12-23 08:34:16 +00:00
Charis Kyriakou 3234f0afe1
Move db item expanded state to workspace storage (#1904) 2022-12-22 15:44:00 +00:00
Elena Tanasoiu ae0dfd8089
Merge pull request #1901 from github/elena/move-test-scenarios-into-markdown
Move test plan into markdown file
2022-12-22 14:32:08 +00:00
Elena Tanasoiu 1a6f532c8b
Change results view title 2022-12-22 14:15:21 +00:00
Elena Tanasoiu beb5e37f3a
American spelling 2022-12-22 14:14:59 +00:00
Elena Tanasoiu 9fe4c8cfa9
Remove copy section 2022-12-22 14:14:35 +00:00
Shati Patel 9e1da8f142
Check for duplicate repo within parent list (#1905) 2022-12-22 14:01:11 +00:00
Elena Tanasoiu f1b17d1c46
Fix wonky indentation 2022-12-22 12:54:24 +00:00
Elena Tanasoiu 097c048edd
Expand results view tests 2022-12-22 12:49:14 +00:00
Elena Tanasoiu 531f32c1f6
Expand query results scenarios based on variant analysis state 2022-12-22 12:49:10 +00:00
Nora 46a54a623a
Merge pull request #1900 from github/nora/add-repo-to-list
Add new repositories to a highlighted user defined list
2022-12-22 13:41:27 +01:00
Elena Tanasoiu 1b76159c06
Fix quotes 2022-12-22 11:35:22 +00:00
Elena Tanasoiu 30e614e26d
Remove duplicate test case 2022-12-22 11:31:21 +00:00
Elena Tanasoiu 8ca9391115
Mention what "it" means 2022-12-22 11:28:55 +00:00
Elena Tanasoiu ec8066a11c
Clarify these are mostly aimed at MRVA 2022-12-22 11:28:01 +00:00
Elena Tanasoiu ac27a80769
Drop numbering 2022-12-22 11:27:06 +00:00
Elena Tanasoiu c9087ffaf0
Update screenshot 2022-12-22 11:26:18 +00:00
Robert 25dd679b7d
Merge pull request #1892 from github/robertbrignull/undefined_credentials
Simplify the credentials class, and clear up impossible error cases
2022-12-22 11:20:09 +00:00
Elena Tanasoiu 16c688f9c8
Change to american spelling 2022-12-22 11:15:49 +00:00
Elena Tanasoiu 0f3936900c
Remove pre-live-results sections 2022-12-22 11:15:15 +00:00
Elena Tanasoiu 3c9c6dc324
Rephrase ... erm ... phrases
And fix a typo
2022-12-22 11:14:10 +00:00
Elena Tanasoiu f11cd17f83
Check these when query starts instead of completes 2022-12-22 11:10:05 +00:00
Nora 824f56d614 use find and remove unneccessary checks 2022-12-22 10:53:54 +00:00
Elena Tanasoiu eddc228a00
Remove bullet points and mention results view 2022-12-22 10:48:36 +00:00
Elena Tanasoiu 812205cecf
Clarify that test cases are for MRVA 2022-12-22 10:45:59 +00:00
Elena Tanasoiu a839206846
Mention canary flag as pre-requisite for MRVA 2022-12-22 10:45:22 +00:00
Elena Tanasoiu 2f07f417fa
Move last step to first step in release requirements 2022-12-22 10:43:31 +00:00
Elena Tanasoiu dc6bd07518
Add more info to release steps 2022-12-22 10:43:08 +00:00
Elena Tanasoiu e890e6cc1f
Remove "Areas to consider" section 2022-12-22 10:32:26 +00:00
Robert 6285ba7632 fix typos 2022-12-22 10:25:34 +00:00
Koen Vlaswinkel be79d68271
Merge pull request #1891 from github/koesie10/sort-gist-files
Sort Gist files by user-defined sort order
2022-12-22 09:17:07 +01:00
Charis Kyriakou 19a9ad38d5
Add workspace state to app container (#1902) 2022-12-21 17:58:34 +00:00
Elena Tanasoiu 1e84bc9116
Move test plan into VSCode markdown file
This moves our existing test plan under a "Required testing" section.

We're also adding the scenarios used for testing live results under an "Optional testing" section.
2022-12-21 16:55:33 +00:00
Nora 28abd40963 Add repo to list when child is highlighted 2022-12-21 15:45:19 +00:00
Robert abc025cb39 Inline the createOctokit method
It's now only used from one place and inlining it doesn't make
getOctokit too long to be unclear.
2022-12-21 15:01:47 +00:00
Robert 551f76cc4e Create a new octokit instance every time
I believe this doesn't change the user-visible behaviour at all. The user
won't be prompted to log in any more or less often than they would have
done before.

One benefit of this is that we can remove the registerListeners method
because we no longer need to know if the cached octokit is still valid.
Instead we just call vscode.authentication.getSession every time and it
will return the current session, which might be different from the last
time we called it. This might prompt the user to log in, but that would
have happened anyway because when the session changed we would have
overwritten our cached octokit instance.

Another benefit is that we no longer need the extension context and this
removed a surprisingly large amount of code where we are passing this
parameter around because we need it for the credentials.

The only downside I can see is that we call getSession more often and
create more javascript objects in general. I believe the performance
impact of this will be negligible and not worth worrying about.
2022-12-21 15:01:42 +00:00
Robert 8f34f6af2e Remove the createIfNone parameter from createOctokit
At this point we are only ever passing true, so we may as well remove
the parameter and simplify the code.
2022-12-21 14:52:25 +00:00
Robert 8c05b3a508 Don't try to pre-populate an octokit
I argue that calling createOctokit(false) adds no benefit. If an
authenticated session already exists then this silently create an
octokit, which makes getOctokit() a no-op just returning the field.
However if there is already an authenticated session then getOctokit()
would already be able to create an octokit without prompting the user.

On the other hand if there isn't an authenticated session then we
won't be able to pre-populate an octokit, so getOctokit() will have
to prompt the user anyway.

Not calling createOctokit(false) in registerListeners also doesn't
change behaviour. If the user is authenticated in the new session then
we would be able to create an octokit instance wihtout prompting in
getOctokit anyway. If the user is not authenticated in the new session
then we won't be able to create an instance without prompting either way.

The only benefit I can think of is that it moves a tiny amount of
computation earlier in the pipeline, but the amount of computation is
tiny and it isn't any more async than it would be if it happened in
getOctokit(). I don't think this is worth making the code more complex.
2022-12-21 14:51:13 +00:00
dependabot[bot] 7004e94b32
Bump actions/dependency-review-action from 1 to 3 (#1897) 2022-12-21 14:32:38 +00:00
Robert 74f10a306e Remove the overrideToken parameter from createOctokit
This was only used from initializeWithToken and only added a completely
separate case to the start of the method, effectively turning it into
two separate implementations. Therefore we can make things simpler by
inlining this case in the one place it is used.
2022-12-21 14:27:50 +00:00
Robert 7e8ce35485 Remove the requiresAuthentication parameter
It is true by default and no place in the codebase sets it to false. We can
simplify the code by removing this case we aren't using. If we want this
behaviour in the future we can always implement it again, but I think it's
likely to be unnecessary and if you don't want authenticated requests then
you likely won't be initializing a Credentials object.
2022-12-21 14:24:13 +00:00
Nora 758c182a33 Add repo to highlighted list 2022-12-21 15:23:09 +01:00
Robert 0c483d1e29 Remove places where we are checking if credentials are undefined
This cannot happen already, even before the other changes in this PR.
The Credentials.initialize method can never return undefined, so these
checks would never return true. The real place that checks that we are
authenticated is in the vscode.authentication.getSession method, and
it will reject the promise if the user declines to authenticate or
anything else means we can't get an authenticated session.

I feel justified in removing the tests for these cases because the
code was never actually called in production, and we are covered by the
vscode authentication library rejecting the promise. Any exception
thrown from Credentials.initialize would behave the same as the one I'm
deleting.
2022-12-21 14:23:08 +00:00
dependabot[bot] 4bb3be9fd1
Bump peter-evans/create-pull-request from 3.4.1 to 4.2.3 (#1898) 2022-12-21 14:10:45 +00:00
Shati Patel f99e5587d0
Update dependencies in workflow files (#1896) 2022-12-21 13:54:49 +00:00
Charis Kyriakou 2493b0fd3c
Handle db validation errors gracefully (#1895) 2022-12-21 12:53:47 +00:00
Charis Kyriakou dbdb4ba57a
Stop user from adding a db or owner with the same name (#1893) 2022-12-21 10:51:24 +00:00
Charis Kyriakou 55869e8033
Merge pull request #1894 from github/charisk/add-db-integration-test
Add basic integration test for 'add db' functionality
2022-12-21 10:06:52 +00:00
Charis Kyriakou 47ac9c631e Add basic integration test for 'add db' functionality 2022-12-20 20:42:14 +00:00