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

Replace jszwedko/go-circleci with in house client #17

Closed
mrolla opened this issue Apr 7, 2019 · 7 comments
Closed

Replace jszwedko/go-circleci with in house client #17

mrolla opened this issue Apr 7, 2019 · 7 comments
Assignees

Comments

@mrolla
Copy link
Owner

mrolla commented Apr 7, 2019

github.com/jszwedko/go-circleci does not seem to move anywhere in supporting api version 1.1 (see #2). Also, to support #15, we need the unfollow endpoint which is not implemented yet (not sure if it's a 1.0 endpoint and so can be merged upstream there).

@mrolla mrolla self-assigned this Apr 7, 2019
@tgermain
Copy link
Contributor

tgermain commented Apr 9, 2019

Feel free to assign me as reviewer if you have a PR for it.

@tgermain
Copy link
Contributor

tgermain commented Jun 26, 2019

How do you propose we work on this matter ?
Should we base our client on github.com/jszwedko/go-circleci as a start and start adding our changes and the endpoint we miss for #15 ?
Should we start from scratch ?

I have never made any API client so I'm not the best judge of the quality and extensibility of github.com/jszwedko/go-circleci client. I would say it's better to start with its base (which have some unit tests), add what we need and if we find it cumbersome to work on it, we can change it.

We can also ping @jszwedko if he need some help maintaining his client.

@mrolla
Copy link
Owner Author

mrolla commented Jun 26, 2019

I already have a prototype client (based on the one that was used before the switch to @jszwedko one) only covering the 3 endpoints we need for env vars. I'm currently adding more unit tests mostly covering error cases and then I'll submit a PR for you to check. Once we are satisfied with the result we can include the follow/unfollow endpoints as well.

@tgermain
Copy link
Contributor

Ok, so minimal api client, opinionated as it is meant first to be use for the this TF provider. Sounds good !

@jszwedko
Copy link

👍 definitely do whatever makes sense for this project, but I'm happy to help integrate needed endpoints into github.com/jszwedko/go-circleci to support this. I realize I've been dragging my feet with v1.1 support as I haven't had a direct need for it but a terraform provider would be a motivating use case.

@martinssipenko
Copy link

Is this fixed by #44 now?

@bendrucker
Copy link
Collaborator

Yes

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

No branches or pull requests

5 participants