ubiquity-os-marketplace / text-conversation-rewards

1 stars 27 forks source link

Handle 100+ nodes in graphql request #187

Open gentlementlegen opened 6 days ago

gentlementlegen commented 6 days ago

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.