Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Add exclude repo functionality for azure devops and gerrit#60509

Merged
pjlast merged 8 commits into
mainfrom
pjlast/60346-azure-devops-exclude-repo-button
Feb 16, 2024
Merged

Add exclude repo functionality for azure devops and gerrit#60509
pjlast merged 8 commits into
mainfrom
pjlast/60346-azure-devops-exclude-repo-button

Conversation

@pjlast

@pjlast pjlast commented Feb 14, 2024

Copy link
Copy Markdown
Contributor

Closes #60346

Adds the missing cases for Azure DevOps and Gerrit so that repos can be excluded through the UI

Test plan

Add unit test and verify manually

@cla-bot cla-bot Bot added the cla-signed label Feb 14, 2024
@github-actions github-actions Bot added the team/source Tickets under the purview of Source - the one Source to graph it all label Feb 14, 2024
@pjlast pjlast requested a review from a team February 14, 2024 13:32

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Were you able to verify this behavior with an actual devops connection?

Side-q while we're here: Are there any other code hosts missing here that otherwise support exclusion?

Also: Maybe a changelog entry?

@pjlast

pjlast commented Feb 15, 2024

Copy link
Copy Markdown
Contributor Author

@eseliger Yep I tested this locally with an actual DevOps connection :)

I'll have a look at other code hosts

@pjlast pjlast changed the title Add exclude repo functionality for azure devops Add exclude repo functionality for azure devops and gerrit Feb 15, 2024
expectedConfig: `{"accessKeyID":"accessKeyID","exclude":[{"name":"test"}],"gitCredentials":{"password":"","username":""},"region":"","secretAccessKey":""}`,
},
{
name: "second attempt of excluding same repo is ignored for Azure DevOps schema",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name seems wrong?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so? 🤔 it's the name for all of these tests. They try to exclude the repo twice and confirm it's only excluded once

@sourcegraph sourcegraph deleted a comment from eseliger Feb 16, 2024
@pjlast pjlast merged commit fb8bc1f into main Feb 16, 2024
@pjlast pjlast deleted the pjlast/60346-azure-devops-exclude-repo-button branch February 16, 2024 09:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Azure DevOps repositories missing for "Exclude Repository" button

2 participants