-
-
Notifications
You must be signed in to change notification settings - Fork 313
fixes bounties/payouts #4171
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 bounties/payouts #4171
Conversation
|
""" WalkthroughThe changes modify the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant BountyPayoutsView
participant GitHubAPI
User->>BountyPayoutsView: POST request
loop For each page of issues
BountyPayoutsView->>GitHubAPI: Fetch closed issues with "$5" label (page N)
GitHubAPI-->>BountyPayoutsView: Return issues list and total_count
BountyPayoutsView->>BountyPayoutsView: Accumulate issues, check if done
end
BountyPayoutsView-->>User: Return accumulated issues
""" 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
website/views/organization.py(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: Run Tests
- GitHub Check: Analyze (python)
- GitHub Check: docker-test
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
website/views/organization.py (2)
2739-2750: Good improvement to return total count for pagination support.This change enhances the
github_issues_with_bountiesmethod to return both the list of issues and the total count from the GitHub API response, which is necessary for implementing proper pagination.
2769-2783: Excellent implementation of pagination for GitHub issues.This change fixes the core issue by implementing pagination to fetch all GitHub issues with bounties. The code now iteratively fetches issues page by page until either all issues are retrieved or no more pages remain.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Modified post function to fetch all pages of GitHub issues with pagination.
Fixes issue where not all bounties were shown on /bounties/payouts/ page as reported in #4031.
Fixes: #4031
Summary by CodeRabbit