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

fixes 500 link limit issue #5595

Conversation

fillingtothemomo
Copy link
Contributor

@fillingtothemomo fillingtothemomo commented Jan 25, 2024

fixes #5588

What this PR does

It fixes the 500 page link limit for the training modules.

Screenshots

Before:
image

After:
image

@fillingtothemomo
Copy link
Contributor Author

@ragesoss The CI build keeps failing for this pr well as as earlier pr i made, what is the issue in my code i am not able to understand

@ragesoss
Copy link
Member

I tried this locally and got:

NoMethodError: undefined method `dig' for nil:NilClass

        current_links = response.dig('pages', @wiki_base_page, 'links') || []

@fillingtothemomo
Copy link
Contributor Author

fillingtothemomo commented Feb 13, 2024

@ragesoss this PR is faulty, I forgot to close it as I implemented continue assuming that the api response has a continue field to fetch more results however on inspecting the api response, there is no continue field so I am stumped as to how to apply pagination for more than 500 links.

@ragesoss ragesoss closed this Feb 13, 2024
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.

Fix 500-link limit for loading training slides from wiki
2 participants