open-bounty
open-bounty copied to clipboard
After deleting GH repo bounties are still displayed in 'Open bounties' list
Description
Type: Bug
Summary: bounties from deleted repo are displayed on 'Open bounties', at attempt to open it - user is redirected to 404 page
Expected behavior
no bounties from deleted repo are shown
Actual behavior
bounties from deleted repo are still in 'Open bounties' list
Reproduction
Steps: Requirements: GH account is whitelisted, signed app, test application is added to repo;
- create issue
- add
bounty
label - open https://testing.openbounty.status.im/app
- wait until new bounty will be displayed in 'Open bounties' list
- delete repo
- go to 'Open bounties' list
Additional Information
Video: http://take.ms/Sb8jH OS: Mac OS High Sierra Browser: Chrome 64
This seems like it could be handled via a webhook that watches for a deleted repository event and then deletes issues and pull requests associated with that repo id.
Sounds like we need another 'state' that bounties could be in. If this happens, or the GH issue is closed/deleted, the bounty contract is still live, so these bounties should go into a "inactive" state for the bounty issuer to revoke.
That's a good point that a manual action needs to be taken as well. Seems like there are actually quite a few use cases where bounties need to be revoked. (to all of your points in the last standup)