Open varsanojidan opened 1 year ago
I just noticed that ADO doesn't show up in the list of code hosts for the new setup wizard:
Not a big problem, but you should talk to @vovakulikov to make sure this will work with the new setup experience flow if the feature flag is on.
It's really confusing that it's called clientID
in our schema but App ID
on their end. I left a comment here https://github.com/sourcegraph/sourcegraph/pull/48822/files#r1129480449 saying the same thing.
Starting to test on Dogfood. Let's see how far I can get.
orgs
or projects
both work for you, and return repos as expected.exclude
, either exclude repos by name(projectName/repoName) or by pattern and verify it behaves accordingly.allowSignup
to false in the auth provider configallowSignup
from the auth provider configallowOrgs
to: ["some-org-that-does-not-exist"]
in the auth provider configallowOrgs
that already exists and your Azure DevOps user is a part of, for example sgtestazure
in the auth provider configBasic
as the access level (See 1Password shared vault Source - Repository Management Vault
for test credentials)Third-party application access via OAuth
for the org that you just createdBasic
to Stakeholder
on Azure DevOps, trigger a permissions sync and verify that the user can no longer access the repo of this orgStakeholder
to back to Basic
, trigger a permissions sync and verify that the user can access the repo of this org again Organization:All accessible organizations
Code:Full
Code:Status
Pull Request Thread:Read & Write
User Profile:Read
sg start batches
in your local dev env.exclude
key unlike the projects
keyBugs with exclude
Edit: Using pattern worked
Edit2: This is working locally for me on latest main but not on dogfood. Maybe it's not on the latest change then. But the config editor still complains about the string not matching the pattern.
Exclude repo from the repository settings page does not work.
No helpful example from exclude
key unlike the projects
key
The same behaviour is also missing for the orgs
key (not captured in GIF).
I did test setting a code host, everything works as expected šš» I also did a batch changes run without any problems. Good stuff @varsanojidan @indradhanush!
Note to testers
Suggested approach:
Setting up Azure DevOps + Sourcegraph
1) Add this codehost config, ~the credentials can be found in our password manager (under Azure DevOps temporary test credentials)~ (it is encouraged to try creating your own test credentials as that is also part of the site admin workflow)
Additionally add the following to your site config
2) Setup ngrok
Azure DevOps Repository syncing
orgs
orprojects
both work for you, and return repos as expected.exclude
, either exclude repos by name(projectName/repoName) or by pattern and verify it behaves accordingly.Azure DevOps OAuth provider testing scenarios
allowSignup
to false in the auth provider configallowSignup
from the auth provider configallowOrgs
to:["some-org-that-does-not-exist"]
in the auth provider configallowOrgs
that already exists and your Azure DevOps user is a part of, for examplesgtestazure
in the auth provider configAzure DevOps permissions syncing testing scenarios
Basic
as the access level (See 1Password shared vaultSource - Repository Management Vault
for test credentials)Third-party application access via OAuth
for the org that you just createdBasic
toStakeholder
on Azure DevOps, trigger a permissions sync and verify that the user can no longer access the repo of this orgStakeholder
to back toBasic
, trigger a permissions sync and verify that the user can access the repo of this org againAzure DevOps Batch Changes
Setup:
Organization:All accessible organizations
Code:Full
Code:Status
Pull Request Thread:Read & Write
User Profile:Read
sg start batches
in your local dev env.Scenarios: