Skip to content
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

Multi-Party Payout Recipients Not Showing in 'Work Done' # #2040

Merged
merged 6 commits into from
Aug 22, 2018

Conversation

owocki
Copy link
Contributor

@owocki owocki commented Aug 20, 2018

Description

Multi-Party Payout Recipients Not Showing in 'Work Done' #

This fixes this, but doing two main things

  1. fixing who shows up in the ' new tip' activity fields
  2. sourcing the 'work done' area of the bounty with both tipees and fulfillers
Checklist
  • linter status: 100% pass
  • changes don't break existing behavior
  • commit message follows commit guidelines
Affected core subsystem(s)

bounty details

Testing

tested it

screenshot: http://bits.owocki.com/2L3W0R2Y423M/Screen%20Shot%202018-08-20%20at%205.01.30%20PM.png

Refers/Fixes

#1983

github_username : github_username.concat(',');

accepted.push(profileHtml(github_username, name));
});
}
}
if (result.fulfillments) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty block statement. (no-empty)

def paid(self):
"""Return list of users paid for this bounty."""
if self.status != 'done':
return [] #to save the db hits

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E261 at least two spaces before inline comment
E262 inline comment should start with '# '

"""Return list of users paid for this bounty."""
if self.status != 'done':
return [] #to save the db hits

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W293 blank line contains whitespace


return_list = []
for fulfillment in self.fulfillments.filter(accepted=True):
if fulfiller.fulfiller_github_username:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F821 undefined name 'fulfiller'

return_list = []
for fulfillment in self.fulfillments.filter(accepted=True):
if fulfiller.fulfiller_github_username:
return_list.append(fulfiller_github_username)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F821 undefined name 'fulfiller_github_username'

@codecov
Copy link

codecov bot commented Aug 20, 2018

Codecov Report

Merging #2040 into master will decrease coverage by <.01%.
The diff coverage is 31.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2040      +/-   ##
==========================================
- Coverage   27.75%   27.74%   -0.01%     
==========================================
  Files         132      132              
  Lines       10914    10927      +13     
  Branches     1460     1465       +5     
==========================================
+ Hits         3029     3032       +3     
- Misses       7778     7788      +10     
  Partials      107      107
Impacted Files Coverage Δ
app/dashboard/router.py 28.26% <ø> (ø) ⬆️
app/dashboard/tip_views.py 18.6% <0%> (ø) ⬆️
app/dashboard/admin.py 67% <100%> (+0.67%) ⬆️
app/dashboard/models.py 49.08% <9.09%> (-0.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6ee885...8a5dd7c. Read the comment docs.

Copy link
Contributor

@mbeacom mbeacom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I modified the dashboard/[email protected] method to resolve the undefined variable errors (fulfiller vs fulfillment & fulfiller_github_username vs fulfillment.fulfiller_github_username) and the stickler warning for comment spacing.

I haven't tested this yet, but code lgtm.

@owocki owocki merged commit 8a5dd7c into master Aug 22, 2018
@thelostone-mc thelostone-mc deleted the kevin/paid_user_list branch August 24, 2018 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants