Web: Canceling "started" bounties shows wrong error message

Created on 11 Nov 2018  Â·  9Comments  Â·  Source: gitcoinco/web

Describe the bug
When a started bounty needs to be cancelled, the wrong error message appears.
This issue is in here:
https://github.com/gitcoinco/web/blob/a52adc187cee91df3ffd6a80d743d13de760ce8e/app/assets/v2/js/pages/kill_bounty.js#L68
Basically we need a split between "is_open" and "is_started".

To Reproduce
Fund issue, have someone start it, try to cancel it

Expected behavior
Error message: "You cannot cancel a bounty that has a worker working on it".

Screenshots
image
image
image

reported by RichatMakerDAO on Slack.

Gitcoin Issue Detail bug medium

All 9 comments

Thanks for creating this ticket @kuhnchris !

ahh shoot, yeah this looks wrong

We even anaylzed the structure we received - it's definitly because is_open is not true anymore. Result does not contain a "is_started", we would need to add that to the python and then additionally check against that in that block, so the proper error is shown.

Hey @kuhnchris thanks for report, can you post the issue url?

BountyID was 1330 so... i think it was that one:
https://gitcoin.co/issue/ethglobal/ethsanfrancisco-bounties/1/1330

i posted about this on the gitcoin slack

pasting details now

# on the triage call:

this issue has already been paid

its admin override status is ‘started’ thats why its showing as not paid in the frontend.

# to the team :

team, there have been an increasing number of support requests from people whose bounties have an override status on them

for example, this one above has been paid out already and its override status is ‘started’.  the funder has for months been really confused about why they can’t pay it out.

for a fix it twice, we need to either
1) be more responsible with our usage of override statuses and remember individually to check back on them and remove them when the override is not needed anymore
2) or, we need to make it so that overrides expire after a few days / weeks
3) or we need to remove them altogther

oh, interesting! didn't hear about that one, my bad for making assumptions.

@kuhnchris - are you still working on this? checked out the PR, it looks like you were looking for some feedback?

@frankchen07 as stated in the PR i'm waiting for mbeacom if I should do the backend side aswell, or if that's a own ticket.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uluhonolulu picture uluhonolulu  Â·  3Comments

sethmcleod picture sethmcleod  Â·  4Comments

IgorPerikov picture IgorPerikov  Â·  3Comments

kuhnchris picture kuhnchris  Â·  4Comments

abitrolly picture abitrolly  Â·  4Comments