-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Allow crowdfund issues #1597
Allow crowdfund issues #1597
Conversation
if (document.changePayoutAmount) { | ||
$.get('/issue/increase/changepayout/' + amount + '/?pk=' + bountyId + '&network=' + document.web3network) | ||
.fail(function(error) { | ||
console.log(error); |
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.
Unexpected console statement. (no-console)
app/retail/emails.py
Outdated
from django.utils import timezone | ||
from django.utils.translation import gettext as _ | ||
from django.urls import reverse |
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.
F811 redefinition of unused 'reverse' from line 28
app/retail/emails.py
Outdated
print(form_link) | ||
|
||
response_text = ''' | ||
There is someone trying to increase the bounty on {value} on your issue, can you change the payout amount of the bounty? The form to do it: {form_link}. You can increase the payout amount in the value {value}. |
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.
E501 line too long (209 > 120 characters)
Codecov Report
@@ Coverage Diff @@
## master #1597 +/- ##
==========================================
- Coverage 29.93% 29.85% -0.09%
==========================================
Files 130 130
Lines 9596 9678 +82
Branches 1243 1247 +4
==========================================
+ Hits 2873 2889 +16
- Misses 6619 6685 +66
Partials 104 104
Continue to review full report at Codecov.
|
|
||
if (document.changePayoutAmount) { | ||
$.get('/issue/increase/changepayout/' + amount + '/?pk=' + bountyId + '&network=' + document.web3network) | ||
.fail(function(error) { |
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.
Unexpected empty function. (no-empty-function)
app/retail/emails.py
Outdated
subject = 'Change payout amount' | ||
form_link = reverse('request_change_payout', kwargs={'value': value, 'pk': bounty.id, 'network': bounty.network}) | ||
|
||
response_text = "There is someone trying to increase the bounty on {value} on your issue," + |
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.
E999 SyntaxError: invalid syntax
@@ -111,6 +111,10 @@ $(document).ready(function() { | |||
mixpanel.track('Submit New Bounty Success', {}); | |||
document.location.href = '/funding/details/?url=' + issueURL; | |||
}, 1000); | |||
|
|||
if (document.changePayoutAmount) { | |||
$.get('/issue/increase/changepayout/' + amount + '/?pk=' + bountyId + '&network=' + document.web3network) |
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.
Missing semicolon. (semi)
@@ -588,6 +589,16 @@ def render_new_bounty_roundup(to_email): | |||
return response_html, response_txt, subject | |||
|
|||
|
|||
def render_change_payout_amount(bounty, value): | |||
subject = 'Change payout amount' | |||
form_link = reverse('request_change_payout', kwargs={'value': value, 'pk': bounty.id, 'network': bounty.network}) |
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.
F841 local variable 'form_link' is assigned to but never used
Does the stickler-ci verify when a variable is used inside a f-string? |
i keep getting crazy high gas fees when i try to use this feature ( screenshot : http://bits.owocki.com/2T1M3e2r3Q3v/Screen%20Shot%202018-07-02%20at%205.58.38%20PM.png ) Usually that means theres a smart contract error on thetx i'm about to submit |
Ook, I'll try to remove the if/else statement inside do_bounty function and separate it into 3 different functions. |
Hey, I didn't got this error here, weird. But I'll make the change because it's more readable. |
Here are the reproduction steps for the issue. In a browser:
In another browser with different metamask seed:
|
@@ -662,9 +661,8 @@ var do_actions = function(result) { | |||
} | |||
|
|||
if (show_increase_bounty) { |
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.
won't you need to update show_increase_bounty
too?
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.
Is it needed? what I change here is the argument from enabled = increase_bounty_enabled;
to enabled = true;
, the show_increase_bounty
is fine.
debugging further, it seems to call |
when there is no contract error, i get a very high gas price |
9dc7a12 should fix the issues with |
I'm still seeing contract errors when I try to use the flow though. I think this just needs to be testeded end to end in each of these scenarios:
|
thanks for the fixes, sorry for the delay, I'll test it now! |
ook, I did it exactly as you described, but the error does not appears to me. I'm using firefox quantum to submit the 'increase funding form' as the contributor. screenshot: https://i.imgur.com/Lj7Ix9L.png |
my next commits fix the variable |
the error appears only when the |
oh shoot.. i guess that means that we can't do this after all... ? @jvmaia thats my fault, i can still pay out @mbeylin any workarounds for #1597 (comment) you can think of ? |
very sorry we could not merge this.. @mbeylin let us know if you see any potential workarounds for 1.0.. this is a highly requested feature from our community |
unfortunately it looks liek |
ooh sorry @owocki, it would be a pleasure to work on the workaround to this. |
Description
Allow the crowd to increase contributions to a bounty, so we can crowdfund issues.
Checklist
Affected core subsystem(s)
urls, views
Testing
I have tested this as the funder and the collaborator.
Refers/Fixes
Fixes: #1380