Skip to content

Add visual step for resolving repositories#314

Merged
mrnugget merged 5 commits into
mainfrom
es/repo-ui-step
Sep 15, 2020
Merged

Add visual step for resolving repositories#314
mrnugget merged 5 commits into
mainfrom
es/repo-ui-step

Conversation

@eseliger

@eseliger eseliger commented Sep 11, 2020

Copy link
Copy Markdown
Member

Also fixes unsupported repositories aborting the workflow. We now simply skip those and let the user know.

Since this step can take some time, I was always confused what src-cli does. It resolves repositories apparently.

Closes #310

eseliger and others added 3 commits September 14, 2020 11:31
Also fixes unsupported repositories aborting the workflow. We now simply skip those and let the user know.
@mrnugget

Copy link
Copy Markdown
Contributor

I added a changelog entry and changed the code to use the helper functions we already had. The code looks good to me. If @LawnGnome and @chrispine don't have any objections, I'd merge it.

Comment thread CHANGELOG.md Outdated
Comment thread cmd/src/campaigns_common.go Outdated
repos, err := svc.ResolveRepositories(ctx, campaignSpec)
if err != nil {
if _, ok := err.(campaigns.UnsupportedRepoSet); ok {
campaignsCompletePending(pending, "Resolved repositories. Found unsupported codehosts.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we also display the list of unsupported repositories? This feels exceptional enough that users will want as much detail as possible, generally speaking.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Done! Happy to update the formatting of this in the future, but before I dive into the output lib right before branch cut, I think I'll go with the minimal but readable/copy-pastable version.

screenshot_2020-09-15_13 44 17

Comment thread internal/campaigns/service.go
mrnugget and others added 2 commits September 15, 2020 09:01
Co-authored-by: Adam Harvey <aharvey@sourcegraph.com>
@mrnugget mrnugget merged commit acaa04e into main Sep 15, 2020
@mrnugget mrnugget deleted the es/repo-ui-step branch September 15, 2020 11:47
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* Add visual step for resolving repositories

Also fixes unsupported repositories aborting the workflow. We now simply skip those and let the user know.

* Use helper functions to print resolve-repos progress

* Add changelog entry

* Update CHANGELOG.md

Co-authored-by: Adam Harvey <aharvey@sourcegraph.com>

* Print which repositories are being skipped

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Co-authored-by: Adam Harvey <aharvey@sourcegraph.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add visual step for "resolving repositories"

3 participants