Skip to content

apollo: fix remoteUrl in service:check [UI-258]#1121

Merged
evans merged 1 commit intomasterfrom
evans/fix-remoteUrl
Mar 15, 2019
Merged

apollo: fix remoteUrl in service:check [UI-258]#1121
evans merged 1 commit intomasterfrom
evans/fix-remoteUrl

Conversation

@evans
Copy link
Copy Markdown
Contributor

@evans evans commented Mar 15, 2019

The remoteUrl can no longer be the slug, since we can't assume that the
feature is going to be used exclusively in GitHub and create an accurate
link the frontend. Additionally we add some logging in order to help
debug.

Note: My first though was be to make the logging protected by a
verbose flag. Did I miss that functionality?

TODO:

  • Update CHANGELOG.md* with your change (include reference to issue & this PR)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass

The remoteUrl can no longer be the slug, since we can't assume that the
feature is going to be used exclusively in GitHub. Additionally we add
some logging in order to help debug the gitInfo() function
@evans evans force-pushed the evans/fix-remoteUrl branch from 6282caa to 1f3f866 Compare March 15, 2019 18:58
@evans
Copy link
Copy Markdown
Contributor Author

evans commented Mar 15, 2019

The remoteUrl regex matching in the test

@evans evans requested a review from JakeDawkins March 15, 2019 19:08
@evans evans changed the title apollo: fix remoteUrl in service:check apollo: fix remoteUrl in service:check [UI-258] Mar 15, 2019
@evans
Copy link
Copy Markdown
Contributor Author

evans commented Mar 15, 2019

The azure pipelines fail with an unrelated error:

image


export const gitInfo = async (): Promise<GitContext | undefined> => {
export const gitInfo = async (
log: Command["log"]
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.

Might want the type of log to be something a bit more generic, since we're passing in console.log for testing.

Paraphrasing and best guessing, but something like this?
logger: (...args: string[]) => void

This is a non-blocking comment.

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.

hmm they seem to have the same sort of signature log(message?: string, ...args: any[]): void; and I think we want to know when the types of the Command.log become incompatible

@evans evans merged commit e805305 into master Mar 15, 2019
@evans evans deleted the evans/fix-remoteUrl branch March 15, 2019 21:12
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.

2 participants