-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
UserKeysClient only implements 2 of the 5 calls for this API #1106
Comments
I knew this code lived somewhere (ignore the second TODO comment):
So yes, the methods on |
I've marked Given so many places are required to really catch most use cases, I wonder would it actually be better to simply mark the actual So apart from the question on the best way to obsolete something, I've also reviewed the associated code/classes and found that the The only place And how about this ModelExtensions class? |
👍 to obsoleting the methods rather than the types - that's going to put it in front of impacted users much more clearly |
And 👍 to obsoleting |
Let's port those extension methods over to EDIT: good point on the "only used in tests" thing. Mark these versions as obsolete, move the new variants into the tests (we don't have a shared project for test helpers, which might get in the way here). |
Further investigation showed that these extension methods arent even used by any tests other than the unit tests FOR the extension methods themselves (ie Perhaps the 3 extension methods and Unless there was some intention that this helper method was exposed to octokit consumers to do stuff with. It's pretty basic anyway, not sure if there would be a real world use case. @haacked ? |
We use these extension methods in GitHub Desktop. I'd like to keep them, but 👍 to renaming it from |
So given that |
I think the benefit of the extension methods is it made the helper class more discoverable. As you pointed out, the helper class is not a response class so most users of Octokit.net won't know it exists. However, I don't feel too strongly either way, so whatever you feel is the best design here. |
IUserKeysClient
currently only implements 2 of the 5 "public keys" methods on theusers/keys
GitHub API endpointhttps://developer.github.com/v3/users/keys/
Currently implemented:
List public keys for a user
GET /users/:username/keys
List public keys for the authenticated user
GET /user/keys
Not yet implemented:
Get a single public key
GET /user/keys/:id
Create a public key
POST /user/keys
Delete a public key
DELETE /user/keys/:id
The text was updated successfully, but these errors were encountered: