Fix: Sync bounty status with GitHub issue state#230
Open
Cristian305 wants to merge 1 commit intoalgora-io:mainfrom
Open
Fix: Sync bounty status with GitHub issue state#230Cristian305 wants to merge 1 commit intoalgora-io:mainfrom
Cristian305 wants to merge 1 commit intoalgora-io:mainfrom
Conversation
Resolves stale bounty display on org pages where bounties show as 'open' with '0 claims' despite GitHub issues being closed. **Problem:** - GitHub webhook correctly updates ticket.state when issues are closed - But bounty.status remains :open, causing misleading UI display - Users waste time on 'available' bounties that are actually closed - Delete bounty feature errors out (existing issue) **Solution:** - Add sync_bounty_status_with_ticket/1 function to webhook handler - When GitHub issue closes → mark associated bounties as :cancelled - When GitHub issue reopens → restore bounties to :open status - Trigger bounty cache refresh to update UI immediately - Add comprehensive test coverage **Impact:** - Org bounty pages now accurately reflect GitHub issue state - Eliminates misleading '0 claims, Open' display for closed issues - Prevents contributors from wasting time on unavailable bounties - Maintains data consistency between GitHub and Algora Fixes algora-io#213 - 50 bounty
|
Cristian305 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Issue: #213 ($850 Bounty)
Resolves the critical UI bug where org bounty pages show stale bounty data, displaying "open" bounties with "0 claims" despite the linked GitHub issues being closed or having multiple competing PRs.
🚨 Problem
User Impact:
Root Cause:
ticket.statewhen issues closebounty.statusremains:open, causing UI/data inconsistency✅ Solution
Core Fix:
sync_bounty_status_with_ticket/1to GitHub webhook handler:cancelled:openstatusImplementation Details:
Error Handling:
🧪 Testing
Added comprehensive test coverage:
Test Results:
📊 Expected Impact
Before:
After:
🛡️ Safety
🎯 Bounty Requirements Met
✅ Fixes stale bounty display on org pages
✅ Syncs GitHub issue state with Algora bounties
✅ Eliminates misleading "0 claims, Open" display
✅ Prevents contributor time waste
✅ Maintains data consistency
✅ Comprehensive test coverage
✅ Production-ready implementation
Ready for immediate deployment. This fix resolves the core issue described in #213 and will significantly improve the contributor experience on Algora.
Bounty: $850 USD