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

Handle 100+ nodes in graphql request #187

Open
gentlementlegen opened this issue Nov 17, 2024 · 0 comments
Open

Handle 100+ nodes in graphql request #187

gentlementlegen opened this issue Nov 17, 2024 · 0 comments

Comments

@gentlementlegen
Copy link
Member

Issue

If more than 100 get requested, it will fail and throw an error:
https://github.com/ubiquity-os-marketplace/text-conversation-rewards/blob/dee258982532d0514f7e74ff7bfd7d29c72162c7/src/helpers/get-comment-details.ts

we should loop and batch by amount of 100 nodes max to avoid a crash.

Repro steps

Run the plugin on an issue having more than a hundred comments.

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

No branches or pull requests

1 participant