Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 2, 2025

The "Total $5 Issues" card on /bounties/ was counting closed issues while the label implied total open issues, causing user confusion.

Changes

View logic (website/views/organization.py)

  • Count open issues for "Total $5 Issues" statistic (was counting closed)
  • Separate paid issues query to maintain correct closed/paid issue tracking
# Before: counted closed issues for total
dollar5_issues = GitHubIssue.objects.filter(has_dollar_tag=True, state="closed")
total_issues_count = dollar5_issues.count()

# After: open for total, closed for paid
dollar5_issues = GitHubIssue.objects.filter(has_dollar_tag=True, state="open")
total_issues_count = dollar5_issues.count()
paid_issues = GitHubIssue.objects.filter(has_dollar_tag=True, state="closed").filter(
    Q(sponsors_tx_id__isnull=False) | Q(bch_tx_id__isnull=False)
)

Template text (website/templates/bounties_list.html)

  • Updated description from "Closed issues with $5 bounty" to "Total open issues with $5"

Paid issues count, total payouts, and leaderboard logic remain based on closed/paid issues as intended.

Original prompt

change this to total open issues with $5 - Total $5 Issues

29

Closed issues with $5 bounty on the /bounties/ page


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 2, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Change total open issues display format Fix bounty statistics to count open issues instead of closed Nov 2, 2025
Copilot AI requested a review from DonnieBLT November 2, 2025 17:51
@DonnieBLT DonnieBLT marked this pull request as ready for review November 2, 2025 18:04
@DonnieBLT DonnieBLT merged commit 07baeba into main Nov 2, 2025
1 check passed
@DonnieBLT DonnieBLT deleted the copilot/update-total-open-issues branch November 2, 2025 18:04
@github-project-automation github-project-automation bot moved this from Backlog to Done in 📌 OWASP BLT Project Board Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants