Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add service search command #152

Merged
merged 2 commits into from Sep 24, 2020
Merged

Add service search command #152

merged 2 commits into from Sep 24, 2020

Conversation

benzvan
Copy link
Contributor

@benzvan benzvan commented Sep 23, 2020

This adds the ability to call the service/search?name= endpoint to return service descriptions without the service ID.

Issue #151

@phamann phamann self-requested a review September 23, 2020 15:09
@phamann phamann added the enhancement New feature or request label Sep 23, 2020
Copy link
Member

@phamann phamann left a comment

Choose a reason for hiding this comment

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

Thank you for your speedy contribution, @benzvan! Much appreciated.

Looks clean overall, just a couple of changes needed:

  • We don't need to interact with the manifest for this command
  • You'll need to update the help output intergration test in pkg/app/run_test.go
  • You need to fix some linting errors via make fmt.

pkg/service/search.go Outdated Show resolved Hide resolved
pkg/compute/manifest/manifest.go Outdated Show resolved Hide resolved
@phamann phamann changed the title adds service search Add service search command Sep 23, 2020
@benzvan
Copy link
Contributor Author

benzvan commented Sep 23, 2020

Thanks for the fast feedback. I'm working on your change requests and it looks like I'll have to dig in and understand the code a little more than copy/paste/rename :-D

Copy link
Member

@phamann phamann left a comment

Choose a reason for hiding this comment

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

Just fixing some style consistency, I didn't notice originally.

pkg/service/search.go Outdated Show resolved Hide resolved
pkg/app/run_test.go Outdated Show resolved Hide resolved
pkg/app/run_test.go Outdated Show resolved Hide resolved
Copy link
Member

@phamann phamann left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Once again thank you for your contribution @benzvan!

@phamann phamann merged commit 664a028 into fastly:master Sep 24, 2020
@phamann phamann mentioned this pull request Sep 24, 2020
@benzvan
Copy link
Contributor Author

benzvan commented Sep 24, 2020

No problem. I'll start looking at the next issue i created today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants