-
Notifications
You must be signed in to change notification settings - Fork 308
History page: show tipper if it's a team you're a member of #2173
Conversation
|
||
UPDATE transfers SET as_team_member = true | ||
FROM participants WHERE participants.username = transfers.tipper | ||
AND participants.number = 'plural'; |
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.
Well, this needs to confirm that the recipient is a team member. Is there a way to deal with the edge case where the recipient received money from the plural account both as a direct tip and as a team member (perhaps at different points in time)?
We do have payday tests in |
I don't get what you mean; this has nothing to do with actually running the payday. |
@seanlinsley Doesn't it? The main changes to code here are to |
I've reviewed this PR, rebased it on master and rewrote the This PR doesn't make any breaking change, so if we got something wrong we won't have broken anything. Unless there are objections I'll merge this tomorrow. |
History page: show tipper if it's a team you're a member of
|
It appears that I missed something, only takes before week 85 are being shown as coming from the Gittip team on my history page. |
OK, I think I got it. Here are the queries I used:
Result:
|
Once this is complete, it'll resolve #1126
This is 100% untested because I have no idea how to get a fake payday working with fake money.