Commit log

28bbd70 Merge branch 'three_d'

Click to expand commit body
* three_d:
  3D Secure Valuting

Stephen Paul Weber created

31e7851 3D Secure Valuting

Stephen Paul Weber created

02f0825 Merge branch 'activate-with-balance'

Click to expand commit body
* activate-with-balance:
  Do not activate directly in cronjob

Stephen Paul Weber created

6f4cc93 Do not activate directly in cronjob

Click to expand commit body
Instead, just insert and notify. sgx-jmp will handle billing and activation now
when it sees the balance is sufficient.

Stephen Paul Weber created

7ee5681 Merge branch 'invite-rewards'

Click to expand commit body
* invite-rewards:
  Process invite/referral rewards

Stephen Paul Weber created

be15310 Process invite/referral rewards

Click to expand commit body
Select all unrewarded codes where there are associated transactions to meet the
reward criteria, and insert the rewards to the DB.

Stephen Paul Weber created

bb25999 Forgot to require

Stephen Paul Weber created

5400612 Check for low balance when setting auto top up

Click to expand commit body
People expect to be able to set their auto top up setting in response to a low
balance alert, and have this solve the problem instantly.  This change resets
the lock that prevents sgx-jmp from acting on a low_balance notification, and
then asks the database to check if the balance is low and issue a notify if
relevant, which would then result in sgx-jmp acting and charging their card at
the newly-configured level.

Stephen Paul Weber created

7958c1c Factor out AutoTopUpRepo and add tests

Stephen Paul Weber created

f84f822 catapult_cred is by customer_ID@jmp.chat now

Stephen Paul Weber created

e1cb44d This is gone

Stephen Paul Weber created

4427fdf Removed web activation form

Click to expand commit body
No longer used for either registrations or as a hack for payments, everything
handled by ad-hoc commands now and nothing links here any longer.

Stephen Paul Weber created

b30fd91 Add rake, used for tests

Stephen Paul Weber created

092fa28 Merge branch 'do-not-bill-unregistered'

Click to expand commit body
* do-not-bill-unregistered:
  Query sgx-jmp for every expired user
  Show backtrace and bail out hard on panic

Stephen Paul Weber created

42df6be Merge branch 'rubocop'

Click to expand commit body
* rubocop:
  Update rubocop

Stephen Paul Weber created

265bb3e Query sgx-jmp for every expired user

Click to expand commit body
If they have no assigned tel, do not bill them or notify them.

Stephen Paul Weber created

56432a9 Show backtrace and bail out hard on panic

Stephen Paul Weber created

6b4d0a8 Update rubocop

Click to expand commit body
And use settings from sgx-jmp

Stephen Paul Weber created

8366442 Merge branch 'guix'

Click to expand commit body
* guix:
  Build Guix package

Stephen Paul Weber created

588b88b Build Guix package

Stephen Paul Weber created

c1071f4 We don't use this rake task anyway

Click to expand commit body
No need to make Rakefile depend on rubocop if we don't even use it.

Stephen Paul Weber created

443a466 Make Script Executable

Click to expand commit body
I missed this, but the original commit was already merged.

Christopher Vollick created

9cecd75 Find Bad Customers

Click to expand commit body
This is meant to go through all customers who aren't already on sgx_jmp
and who don't already have an open porting request to get them there.

Christopher Vollick created

85b356f Show what tels are paid-up but not in dashboard

Stephen Paul Weber created

4d64029 No more legacy session for BTC

Click to expand commit body
Everyone gets told to go finish up with sgx-jmp

Stephen Paul Weber created

5bd2700 Better error on no JID

Stephen Paul Weber created

1069b1d Remove healthchecks integration

Click to expand commit body
We use runitor in prod now

Stephen Paul Weber created

2fa5074 Needs gateway

Stephen Paul Weber created

0361730 Expects this to return true

Stephen Paul Weber created

c5130f3 Exit after an error in EM

Stephen Paul Weber created

e29daf4 Do not wait to exit until after we are ready

Stephen Paul Weber created

be1ea46 If expired with auto top up, NOTIFY for a week before sending expiry notice

Stephen Paul Weber created

ca8e674 Merge branch 'fix-months-to-balance'

Click to expand commit body
* fix-months-to-balance:
  Not going to run this, new plan
  Give everyone $5.0001 to prevent low balance and eat one month
  Make days correct

Stephen Paul Weber created

bf64ce8 Not going to run this, new plan

Stephen Paul Weber created

a07d5bb Give everyone $5.0001 to prevent low balance and eat one month

Click to expand commit body
This way they keep most of their activation time, and the side effect of
interest is mitigated.

Stephen Paul Weber created

2ffb26d Make days correct

Stephen Paul Weber created

abb452a hotfix

Stephen Paul Weber created

7f5003a hotfix credit card activation

Stephen Paul Weber created

9cd0b87 Script to create Redis key of BTC addresses available to the app

Stephen Paul Weber created

3df6bdb Add one-off script to convert long activation ranges to balance

Click to expand commit body
Fix-up for the web register previously doing 5 month activations with 0 balance
instead of adding balance + 1 month activation.

Stephen Paul Weber created

cbbbe75 Copy in account activation logic from sgx-jmp

Click to expand commit body
This is largely duplicated code, but the whole web-activation path should go
away soon.  This fixes web activation to produce the data we actually expect
instead of the hack previously produced.  Instead of an account activation for 5
months, we insert 5 months of balance and then bill for only one month as is reasonable.

Stephen Paul Weber created

b104530 Do not hang forever if shutdown fails

Stephen Paul Weber created

673a9b9 Do not warn about BTC tx <= 0

Click to expand commit body
This is a valid case for when we have sent BTC received at this address out.

Stephen Paul Weber created

446a4fd Rubocop

Click to expand commit body
Since these files didn't have shebangs, rubocop didn't look at them.
Once it started looking it found a bunch of stuff it didn't like, but
the original commit where they were written is already merged, so I'm
fixing those issues here.

Christopher Vollick created

3bf5956 Fix Executables

Click to expand commit body
I've added shebangs to the starts and chmod'd the scripts to match the
others.

Locally I just ran `bundle exec rescue` and so didn't notice until it went
into prod that they didn't match.

Christopher Vollick created

97d8665 Various Electrum Checks and Fixes

Click to expand commit body
There were some issues with Electrum, and we lost a bit of confidence,
so I built these to help with that.

bin/check_electrum_wallet_completeness
- This one is meant to be run in cron. It checks for addresses we've
  given a user that Electrum doesn't know we have. It just prints out,
  so we get an email and can go look.
  The purpose of this is to know before our users that we're missing
  something.

bin/detect_duplicate_addrs
- This one is meant to be run in cron. It looks through the addresses
  that users has have been given to make sure the same address hasn't
  been given out to more than one person.
  It just prints out the issues, so we'll be notified and can take a
  look

bin/correct_duplicate_addrs
- This is one potential solution that can be run in response to
  duplicate addresses.
  Since I'm expecting an email from bin/detect_duplicate_addrs, this
  takes as input the text that was sent to us.
  It goes through each address and re-assigns it away from all users,
  parking the addresses on the support account so we still get notified
  when people send money, etc
  Because it takes output as input, they could be piped together in
  theory, but I never tested that because I assume some investigation
  would be warranted

bin/reassert_electrum_notification
- This script goes through every bitcoin address that's been given to a
  customer and makes sure that electrum knows to tell us about changes
  to that address

Christopher Vollick created

ed68f06 small on next line

Stephen Paul Weber created

defc969 Merge branch 'auto-top-up'

Click to expand commit body
* auto-top-up:
  Default auto-top-up to $15 and allow changing from credit card management screen

Stephen Paul Weber created

eb05e46 Default auto-top-up to $15 and allow changing from credit card management screen

Stephen Paul Weber created

d2a6726 fix rubocop

Stephen Paul Weber created