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

v3 to v4 API URI updates #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

v3 to v4 API URI updates #44

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 27, 2018

This should fix the v3 git API deprecation issues.

@ghost ghost mentioned this pull request Jun 27, 2018
@@ -69,7 +69,7 @@ def exists?
project_id = get_project_id

sshkey_hash = Hash.new
url = "#{gms_server}/api/v3/projects/#{project_id}/keys"
url = "#{gms_server}/api/v4/projects/#{project_id}/keys"

Choose a reason for hiding this comment

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

/api/v4/projects/#{project_id}/keys does not exist anymore, the correct path is /api/v4/projects/#{project_id}/deploy_keys now

Copy link
Author

Choose a reason for hiding this comment

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

Cheers, thanks for the catch!

Choose a reason for hiding this comment

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

No problem, dont't forget to change this in the whole file ;)

@sammcj
Copy link

sammcj commented Jul 6, 2018

@abrader any update on getting this merged it? it's all pretty broken at the moment.

Thanks :)

cc/ @alexizmailov

@spluess
Copy link

spluess commented Aug 16, 2018

Any update here @abrader ?

@dannygoulder
Copy link

Hi, also waiting for this one!

@ghost
Copy link

ghost commented Aug 30, 2018

+1

@sammcj
Copy link

sammcj commented Aug 30, 2018

Yes still really keen to see this merged...

@jstewart612
Copy link

April - August 2018
abrader has no activity yet for this period.

I'm going to guess user's long term gone.... someone should probably fork and publish.

@abrader
Copy link
Owner

abrader commented Aug 30, 2018

@jstewart612 I will get to this PR as soon as I can. My apologies for the delay. Back on the road and no longer with Puppet. Appreciate your patience.

@abrader
Copy link
Owner

abrader commented Aug 30, 2018

@jas612 @sammcj @spluess @dannygoulder @alexizmailov Can anyone point me to the deprecation notice from GitHub for v3?

@dannygoulder
Copy link

@abrader
Copy link
Owner

abrader commented Aug 30, 2018

@dannygoulder Thank you for sending that message. I guess I will have to make a note for users of this module who are still running older versions of GE to not use what will be the latest release 🤔 Anyone effectively test this change themselves?

@jstewart612
Copy link

@abrader np, wasn't sure if you had moved on or anything. Cheers.

I've been using the local fork and it hasn't broken yet, but I've not rigorously tested all use cases.

@sammcj
Copy link

sammcj commented Aug 31, 2018

Thanks @abrader, perhaps if you’re no longer using the project in the future it could be handed over to voxapupli?

@mstinsky
Copy link

@abrader I am also using a local fork for debian9 systems and did not notice anything breaking, but I am only using this module with voxpupuli/puppet-gitlab.

@esalberg
Copy link

esalberg commented Sep 7, 2018

Glad I found this.

With regards to backwards compatibility - is there a way to pass in the desired version of the API, and/or the version of Gitlab in use and programmatically set the version of the API? This isn't relevant to us (we've upgraded) - just thinking about it.

Also, as posted in the issue, this didn't fully fix the issue for me. The keys endpoint now is deploy_keys per the transition doc:
https://docs.gitlab.com/ce/api/v3_to_v4.html
As of 8.17: Endpoints under GET /projects/:id/keys have been removed (use GET /projects/:id/deploy_keys) !8716

@spluess
Copy link

spluess commented Sep 9, 2018

Thanks @abrader , just to clarify, we are talking gitlab and not github :-)

@sammcj
Copy link

sammcj commented Sep 19, 2018

Howdy, is this ready to be merged in yet? Currently it's breaking all our puppetmasters.

@sammcj
Copy link

sammcj commented Oct 17, 2018

Hi, checking in again to see what's happening with this, it's currently breaking all puppetmasters integrated with Gitlab.

@jdub55
Copy link

jdub55 commented Oct 19, 2018

Also wanted to point out that I know there are users out there still using the v3 GitHub API so whatever the result of this PR ends up being, I think it's important to ensure things still work for v3 API users as well.

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.

None yet

8 participants