Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

run Gratipay 192 #488

Closed
clone1018 opened this issue Feb 4, 2016 · 72 comments
Closed

run Gratipay 192 #488

clone1018 opened this issue Feb 4, 2016 · 72 comments

Comments

@clone1018
Copy link
Contributor

191

@clone1018
Copy link
Contributor Author

Not admin enough to view https://gratipay.com/dashboard/ going to see if I can set my own flag

@clone1018
Copy link
Contributor Author

Ran update participants set is_admin=true where username = 'clone1018' on production

@clone1018
Copy link
Contributor Author

A big list, I'm going to check mostly people with amounts

@clone1018
Copy link
Contributor Author

Approved 6 accounts

@clone1018
Copy link
Contributor Author

Approved 2 on https://gratipay.com/dashboard/1.0-payouts

@clone1018
Copy link
Contributor Author

@rohitpaulk
Copy link
Contributor

Someone's early...

@clone1018
Copy link
Contributor Author

Starting the review early :), just now setting up gratipay locally

@clone1018
Copy link
Contributor Author

Let's do this!

@clone1018
Copy link
Contributor Author

$ cat migrate-tips.log
Done.

@clone1018
Copy link
Contributor Author

I'm assuming run bin/snapper.py locally? Doing that.

@clone1018
Copy link
Contributor Author

Backup completed and verified.

@clone1018
Copy link
Contributor Author

I can't tell if I run payday locally or on heroku?

On latest master: ./payday.sh NNN for_real_please. Answer yes at the prompts. It wants to log into a ../logs/paydays directory.

@clone1018
Copy link
Contributor Author

@rohitpaulk ^

@rohitpaulk
Copy link
Contributor

I can't tell if I run payday locally or on heroku?

Locally. It should pull config from heroku on its own and use the remote db

@clone1018
Copy link
Contributor Author

ok it looks like locally

@clone1018
Copy link
Contributor Author

Awesome thanks @rohitpaulk

@clone1018
Copy link
Contributor Author

Here we go! Payday is off and running.

@clone1018
Copy link
Contributor Author

Script ran for three minutes (0:03:30.678415).

@rohitpaulk
Copy link
Contributor

🍻

@clone1018
Copy link
Contributor Author

just got this error running masspay.sh

Traceback (most recent call last):
  File "./bin/masspay.py", line 286, in <module>
    main()
  File "./bin/masspay.py", line 279, in main
    compute_output_csvs()
  File "./bin/masspay.py", line 152, in compute_output_csvs
    payees = [Payee(rec) for rec in csv.reader(open(INPUT_CSV))]
  File "./bin/masspay.py", line 65, in __init__
    self.fee_cap = D(fee_cap)
  File "/usr/lib64/python2.7/decimal.py", line 547, in __new__
    "Invalid literal for Decimal: %r" % value)
  File "/usr/lib64/python2.7/decimal.py", line 3873, in _raise_error
    raise error(explanation)
decimal.InvalidOperation: Invalid literal for Decimal: ''

@rohitpaulk
Copy link
Contributor

#485 (comment)

@clone1018
Copy link
Contributor Author

you manually updated the input file @rohitpaulk ?

@clone1018
Copy link
Contributor Author

also I dont have any null, just None

@rohitpaulk
Copy link
Contributor

I updated the values in the DB directly, and then regenerated the input file

@rohitpaulk
Copy link
Contributor

I think python reads NULL from the DB and spits out None when asked for a string representation

@clone1018
Copy link
Contributor Author

So am I doing something like update exchange_routes set fee_cap = 20.00 where fee_cap is null and network = 'paypal' and address = 'address from output'; @rohitpaulk

@rohitpaulk
Copy link
Contributor

Yep, that should work..

@rohitpaulk
Copy link
Contributor

All good, @clone1018?

@rohitpaulk
Copy link
Contributor

Yep, I think that'd work

@clone1018
Copy link
Contributor Author

I don't understand what I'm doing here anymore, so I isolated those three users I updated and uploaded their csv to get the fee, but where do I get Gratipay's fee now? Should I be uploading each user manually to calculate the fee and then updating some field? Also paticipants.paypal_fee_cap doesn't exist anymore?

@rohitpaulk
Copy link
Contributor

but where do I get Gratipay's fee now?

One of those csv files should have a column for fees, I'm not sure which. Use the sum of that column for the estimated fees.

Should I be uploading each user manually to calculate the fee and then updating some field?

That is one way to do it :P What I think we should do is eliminate those users one by one, until Gratipay and Paypal fees match.

Also paticipants.paypal_fee_cap doesn't exist anymore?

No, it is now set on exchange_routes. You did an update on that column like an hour ago 😛

@rohitpaulk
Copy link
Contributor

@clone1018 - It's pretty late here, I've gotta crash. I'll check back in the morning :)

@clone1018
Copy link
Contributor Author

Sure, thanks @rohitpaulk.

@chadwhitacre
Copy link
Contributor

/me steps in as copilot? ✈️

@clone1018
Copy link
Contributor Author

Sure, juggling work and this right now I'll be free in a bit

@chadwhitacre
Copy link
Contributor

!m @clone1018 @rohitpaulk

@clone1018
Copy link
Contributor Author

Whew found the user off 97 cents. I'm assuming I update their feecap to the correct amount? This doesn't make sense to me so I'm going to play with it until masspay gives me the correct answer :)

@clone1018
Copy link
Contributor Author

Ran update exchange_routes set fee_cap = 1.00 where address = 'THEUSER';

@clone1018
Copy link
Contributor Author

Got correct values in masspay!

@chadwhitacre
Copy link
Contributor

!m @clone1018

@clone1018
Copy link
Contributor Author

MassPay done and posted back for 48 users.

@clone1018
Copy link
Contributor Author

Can't find logins for Braintree either?

@clone1018
Copy link
Contributor Author

I have to finish the following after I get some help with Braintree access:

  1. Shuffle escrow.
  2. Review the card decline rate in the Braintree dashboard. If it's 15% or greater, find a reason and report it to [email protected].
  3. Review and edit these documents.
  4. Close the ticket from step 2.

@rohitpaulk
Copy link
Contributor

!m @clone1018

@chadwhitacre
Copy link
Contributor

/me goes back to barely paying attention. :-)

@clone1018
Copy link
Contributor Author

image

@clone1018
Copy link
Contributor Author

Decline rate = 8.824%

@clone1018
Copy link
Contributor Author

1396 * 5 = 6980, current balance in Paypal is 6939, so no topping up necessary?

@clone1018
Copy link
Contributor Author

Done!

@chadwhitacre
Copy link
Contributor

!m @clone1018 @rohitpaulk

So exciting! 😻

@chadwhitacre
Copy link
Contributor

Any explanation for the stronger-than-usual volume this week? Did we have a rash of dues come due?

@rohitpaulk
Copy link
Contributor

@clone1018's magic touch 😛

@chadwhitacre
Copy link
Contributor

💃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants