-
Notifications
You must be signed in to change notification settings - Fork 308
Add script to fix stale cached values #3980
Conversation
Earlier (in Gratipay 1.0), we used to fund tips using the Gratipay balance that participants had. We used to refresh these values after every Payday. Now that we've moved to charging in arrears and never using one's balance to fund tips - the old 'funded' values have to be corrected.
This doesn't strictly relate to #3981, correct? We could run this without touching that? |
Anyway, running this script is low-risk, since all it does is call |
Script started.
( |
~8 minutes left |
Blech. Network troubles, trying again ...
|
Much zippier. :-) |
Alright, script is done. |
Actually, we still have 4 records matching this query (vs. 31 on a recent backup):
|
For all of the 4 records -
|
Are we adding to these
|
Yes. The last addition to |
Looking at |
Aha. |
!m @rohitpaulk |
What's left:
|
The high charges could be a bit of a surprise to these users though. Should we email them with a warning? |
Not super clear on what is happening, but I can send some emails. Do I know how much each person is about to be charged? |
@mattbk Awesome, thank you. Check the "Giving" page for each user to see |
@mattbk Maybe post a draft of the email you're planning to send here so that @rohitpaulk and I can review it? |
Subject: Gratipay charges will be larger than normal Hi ~user, We messed up. You've been giving for a while now, but we haven't been charging your credit card. This means you will be charged $___ next Thursday (April 14), and this money distributed to the teams that should have been receiving it all along. We understand that this may be more than you're willing to give all at once. Please reply if you approve this charge. If you don't approve, we will reset your amount due to zero, and future charges will depend on your current giving, as they should have all along. Sorry for the mistake, and thanks for using Gratipay! |
!m @mattbk Almost perfect—
This makes it sound like they're giving money to Gratipay. How about "Thanks for using Gratipay!" instead? |
Note - I think it's only four... The fifth person should have a due < $10 if I'm not wrong. |
We never actually say "Sorry"—how about "Sorry for the mistake, and thanks for using Gratipay!" |
Email sent to three out of four ~users. Fourth user (ID 467453) has no email on file, so I have reached out via Twitter for him to get in touch (doesn't follow us so can't DM). |
He got back via email (FD), so I gave him the message. |
One user has requested a reset. Will update here if anyone requests that we do charge his or her card. |
@mattbk Can you link the Freshdesk tickets here? |
See previous post. Same person. |
|
I suggest that we keep this open till next payday - and if we don't receive a response by then, we'll reset the due to 0 for the user in question. |
That's what I wrote in the email: no response means "reset me to zero." |
Any response here, @mattbk? |
No response. |
@rohitpaulk Can we close the books here? |
@rohitpaulk Bump. What's our status here? |
Adding to my plate to get to the bottom of. |
@rohitpaulk Do you remember what this was about? Are we good to close? |
Nope, but I'll take a look at this soon. |
Ran the same query again - there are matches, but all of these are users marked as suspicious = The dues that match the current query will be marked as unfunded once #4420 lands. |
Earlier (in Gratipay 1.0), we used to fund tips using the Gratipay balance that participants had. We used to refresh these values after every Payday.
Now that we've moved to charging in arrears and never using one's balance to fund tips - the old 'funded' values have to be corrected.
This was picked off #3876 (comment) (#3876 (comment) for reference)