Go-github: BUG > ListIDPGroupsInOrganization paginates using int instead of string

Created on 17 Jan 2020  ·  6Comments  ·  Source: google/go-github

Description

Current Behavior

Expected Behavior

  • ListIDPGroupsInOrganization should paginate properly

Additional Details

Request

2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: ---[ RESPONSE ]--------------------------------------
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: HTTP/1.1 200 OK
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Transfer-Encoding: chunked
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Access-Control-Allow-Origin: *
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Cache-Control: private, max-age=60, s-maxage=60
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Content-Security-Policy: default-src 'none'
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Content-Type: application/json; charset=utf-8
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Date: Fri, 17 Jan 2020 20:43:46 GMT
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Etag: <redacted>
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Link: <https://api.github.com/organizations/<redacted>/team-sync/groups?Page=&PerPage=10&page=X%274<redacted>0000000000000000000000%27>; rel="next"
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Server: GitHub.com
5:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Status: 200 OK
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: Vary: Accept, Authorization, Cookie, X-GitHub-OTP
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Accepted-Oauth-Scopes: admin:org, repo
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Content-Type-Options: nosniff
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Frame-Options: deny
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Github-Media-Type: github.v3; param=team-sync-preview; format=json
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Github-Request-Id: <redacted>
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Oauth-Scopes: admin:org, delete_repo, repo, workflow
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Ratelimit-Limit: 5000
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Ratelimit-Remaining: 4970
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Ratelimit-Reset: <redacted>
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github: X-Xss-Protection: 1; mode=block
2020-01-17T15:43:46.945-0500 [DEBUG] plugin.terraform-provider-github:

Most helpful comment

I had this same problem, and it turns out that it already has a fix! ✨ 🚀 ✨

All 6 comments

Thank you, @kuwas! This sounds like a fun challenge that I would like to take on.

👍

@kuwas - could you please take a look at #1384 and approve if you believe it will solve this issue?
Feel free to test it out as well and send feedback.

@gmlewis Yes, this looks like it would work. I will test it out tomorrow at work and let you know the results. Thanks for the fast turnaround!

@gmlewis Works great, thanks again.

I had this same problem, and it turns out that it already has a fix! ✨ 🚀 ✨

Was this page helpful?
0 / 5 - 0 ratings