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

fix(backend-git-gateway): re-write GitHub pagination links #3135

Merged
merged 1 commit into from
Jan 24, 2020

Conversation

erezrokah
Copy link
Contributor

Fixes #3129 which will happen on any git-gateway+GitHub setup with more than 30 pull requests.

See my comment here #3129 (comment).

We currently follow GitHub pagination link headers as is which breaks with git-gateway.
Tested with pull requests as this is the only place we follow paginations links.

Another option is to do it in the git-gateway project itself.

@erquhart Thoughts?

@erquhart
Copy link
Contributor

If Git Gateway is allowing raw provider URL's in the response headers, I think it would make sense to fix it in Git Gateway itself.

@erquhart
Copy link
Contributor

Going to go ahead and merge this to fix for now, we can revert if/when Git Gateway support comes.

@erquhart erquhart merged commit 834f6b9 into master Jan 24, 2020
@erquhart erquhart deleted the fix/git_gateway_pagination branch January 24, 2020 02:14
@erezrokah
Copy link
Contributor Author

Opened this netlify/git-gateway#48, also I forgot we can set per_page=100 to minimize this. We should do that regardless.

nathankitchen pushed a commit to nathankitchen/netlify-cms-backend-azure that referenced this pull request Feb 24, 2020
vladdu pushed a commit to vladdu/netlify-cms that referenced this pull request Jan 26, 2021
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.

Workflow doesn't load when integrated with GitHub
2 participants