Commit log

761fb85 Hotfix from prod

Stephen Paul Weber created

bf9da77 missing require

Stephen Paul Weber created

3e17f86 TelSelections prod hotfixes

Stephen Paul Weber created

0c15ac6 Don't add domain-info if no domain given

Stephen Paul Weber created

e371211 Case insentitive currency code

Stephen Paul Weber created

7687741 Hotfix from prod

Stephen Paul Weber created

745e92b Need to set content type for payload

Stephen Paul Weber created

9fd2e7f Typo

Stephen Paul Weber created

ed4b4cc Move braintree require into async_braintree wrapper

Stephen Paul Weber created

dd1830f Raise fee warning

Stephen Paul Weber created

86e9e94 This is what we use in prod

Stephen Paul Weber created

9421eda Don't try to use the nil customers

Stephen Paul Weber created

c54af34 Exclude planless customers

Stephen Paul Weber created

d01d5d6 Need to call with on ExpiringLock

Stephen Paul Weber created

8402987 Fix typo in TelSelections and fix local inv test

Click to expand commit body
Minitest 5.19.0 introduced a change that breaks the latest version of
rantly. I've forked rantly, added a require that fixes the issue, and
opened a PR upstream. Until rantly's updated, the Gemfile requires my
fork instead of upstream.

Signed-off-by: Amolith <amolith@secluded.site>

Amolith created

ed57a91 Disambiguate user input for enabling unlimited ringing

jgart created

1ef966f Eliminate a registration race condition

Click to expand commit body
Check whether we've actually deleted anything before proceeding with
registration; if we have not deleted anything, it means another customer
has registered that number before this one could.

Signed-off-by: Amolith <amolith@secluded.site>

Amolith created

a8b9ebe Update schema for new local inventory feature

Stephen Paul Weber created

74afc0e "Order" numbers from local inventory

Click to expand commit body
- Add methods necessary for actually assigning numbers to customers and
  deleting those numbers from the local database
- Add accompanying test

Signed-off-by: Amolith <amolith@secluded.site>

Amolith created

b0ed80e Only assign num from local inv if available

Click to expand commit body
Add available_after constraint to all local inventory search queries and
update tests to match

Signed-off-by: Amolith <amolith@secluded.site>

Amolith created

1e82f52 Reserve number in appropriate backend

Click to expand commit body
- At the start of registration, numbers are now reserved in
  Bandwidth or "reserved" in the local inventory, whichever source the
  number is from
- Tests mock successful reservation rather than half of a reservation

Signed-off-by: Amolith <amolith@secluded.site>

Amolith created

2bc3af7 TelSelections returns object instead of string

Click to expand commit body
Two new objects, TelSelection::ChooseTel::Tn::Bandwidth and
Tn::LocalInventory and TelSelections now returns and persists through
pending state the correct variant.

No new functionality at this time, but formatted_number is now used when
displaying the number to the user at registration.

Signed-off-by: Amolith <amolith@secluded.site>

Amolith created

32ebeb7 Fetch numbers from local inventory

Click to expand commit body
References: https://soprani.ca/todo/323
Signed-off-by: Amolith <amolith@secluded.site>

Amolith created

626c9d3 Add SQL queries to find numbers from local db

Click to expand commit body
References: https://soprani.ca/todo/323
Signed-off-by: Amolith <amolith@secluded.site>

Amolith created

d8cf0f0 Toll Free Leads to Infinity

Click to expand commit body
If rate is zero, then minutes remaining becomes infinite.
That's hard to express in json...

So instead I just leave the limits out, which downstream can interpret
as "unlimited".

Christopher Vollick created

c5fa081 Log when we warn for annual fee

Stephen Paul Weber created

5028921 Warn a max of once per day

Stephen Paul Weber created

703ddcf Remove duplicate hardcoded fees

Stephen Paul Weber created

76a2ba1 Need access to braintree in sim job

Stephen Paul Weber created

2690f9a Import hotfixes

Stephen Paul Weber created

9fba119 Setup logger and use it

Stephen Paul Weber created

de165bd Add $0 transaction when activating via Google Play

Stephen Paul Weber created

51e3998 Fix typo

Stephen Paul Weber created

90c9d4f Also guard fetching the code itself

Stephen Paul Weber created

99ad56c Limit creation of new subaccounts by trust level

Stephen Paul Weber created

b808c03 When two plan logs overlap current window

Click to expand commit body
Extend the later one

Stephen Paul Weber created

bb83156 Switch to new plans

Stephen Paul Weber created

75919c9 Allow parent plan to apply subaccount discount

Stephen Paul Weber created

125326c Only allow registration with registration plans

Stephen Paul Weber created

b0fa472 Allow setting data overage limit

Stephen Paul Weber created

6f2a32c Merge branch 'sim-top-up'

Click to expand commit body
* sim-top-up:
  Cronjob to auto top up and renew and warn about data plan SIMs
  Get list of all SIMs from Keepgo
  Factor out identical part of keepgo requests
  Add newline in low balance notification with target
  Split direct sources/direct targets

Stephen Paul Weber created

cff0794 Cronjob to auto top up and renew and warn about data plan SIMs

Stephen Paul Weber created

2074187 Get list of all SIMs from Keepgo

Click to expand commit body
This loads the whole list into memory for now, should be good until we get to
tens of thousands of SIMs.

Stephen Paul Weber created

e92186a Factor out identical part of keepgo requests

Stephen Paul Weber created

b624841 Add newline in low balance notification with target

Stephen Paul Weber created

8fee6dd Split direct sources/direct targets

Click to expand commit body
Thus allowing multiple JIDs to be treated as "direct inputs" for a given number,
such as cronjobs sending notifications from support.

Stephen Paul Weber created

ffbf7df Patch say to add an id to messages

Stephen Paul Weber created

161ce49 Specify state or province *code*

Stephen Paul Weber created

0637a4b Warn more about fees

Stephen Paul Weber created

5d28e88 Fixes for snikket domaininfo

Stephen Paul Weber created