Commit Graph

3613 Commits

Author SHA1 Message Date
Martyn Inglis
99081488f1 Mock out some SQS calls 2017-04-27 12:47:08 +01:00
Leo Hemsted
d4dd15118f Merge pull request #922 from alphagov/sent-status
Sent status
2017-04-27 12:30:16 +01:00
Martyn Inglis
bedbd8e21f Removed unneeded test case 2017-04-27 12:15:47 +01:00
Martyn Inglis
cdd3ad687c updated the fixture 2017-04-27 12:14:31 +01:00
Martyn Inglis
109b1727f2 Fish out the international provider if needed. 2017-04-27 12:14:22 +01:00
Martyn Inglis
ba58c55c3b Filter provider details by international flags 2017-04-27 12:13:58 +01:00
Martyn Inglis
84860b2a1d Adds a debug line to try and debug jenkins 2017-04-27 10:41:31 +01:00
Imdad Ahad
d0978e52fb Use intl provider for int sms notifications (needs tests) 2017-04-27 10:18:28 +01:00
Martyn Inglis
83dc7c2bb7 Little test updates 2017-04-27 09:58:37 +01:00
Martyn Inglis
56a82bb593 Bumped utils version 2017-04-27 09:45:36 +01:00
Martyn Inglis
86a5445fb6 Bumped utils version 2017-04-27 09:26:12 +01:00
Martyn Inglis
2a1c3c248f Bumped utils 2017-04-26 21:21:00 +01:00
Martyn Inglis
dfbca8043e Fixed typo errors 2017-04-26 21:08:43 +01:00
Imdad Ahad
05145afcec Fix tests for checking simulated recipients 2017-04-26 17:26:06 +01:00
Leo Hemsted
c8c6675ec6 set migration number 2017-04-26 16:54:24 +01:00
Leo Hemsted
a138ec478a Merge branch 'master' into sent-status 2017-04-26 16:52:16 +01:00
Leo Hemsted
9afc07175a fix typo in downgrade 2017-04-26 16:51:40 +01:00
Martyn Inglis
2a0f8c8808 Validate International phone numbers
- uses new utils methods to validate phone numbers
- defaults to International=True on validation. This ensures the validator works on all numbers
- Then check if the user can send this message to the number internationally if needed.
2017-04-26 15:56:45 +01:00
Imdad Ahad
f77b82a4a5 Merge pull request #921 from alphagov/migration-add-intl-notification-fields
Add intl notification fields
2017-04-26 13:14:42 +01:00
Imdad Ahad
68edd7a33f Fix PEP issues :-| 2017-04-26 11:52:03 +01:00
Imdad Ahad
014a29170c Rebase off master 2017-04-26 11:31:58 +01:00
Imdad Ahad
26b35c5d15 Add intl notificiation fields 2017-04-26 11:31:05 +01:00
Imdad Ahad
3d312c7342 Merge pull request #918 from alphagov/feat-add-intl-provider-migration
Add international support flag for providers (migration)
2017-04-26 11:15:26 +01:00
Imdad Ahad
c69ee2405a Fix comment 2017-04-26 10:37:12 +01:00
Martyn Inglis
ad8e445558 Reformatted code 2017-04-26 10:24:39 +01:00
Imdad Ahad
5171547990 Remove blank lines 2017-04-26 09:52:02 +01:00
minglis
5247185852 Merge pull request #919 from alphagov/endpoint-for-dvla-callbacks
Wired in a simple callback to handle SNS notifications from S3
2017-04-26 06:38:19 +01:00
minglis
a87e1b0a85 Merge pull request #914 from alphagov/international-sms-feature-tests
Update tests to include international sms flag
2017-04-26 06:37:58 +01:00
Imdad Ahad
20d6d9d333 Update migration off master 2017-04-25 17:35:22 +01:00
Imdad Ahad
25ce3851eb Add international support flag for providers 2017-04-25 17:33:16 +01:00
Leo Hemsted
02e8f454e1 add new notification status 'sent'
for international text messages, when we may not ever receive callback info,
so we need a separate status that doesn't get timed out etc
2017-04-25 17:08:29 +01:00
Leo Hemsted
c87be0f982 add sent notification status 2017-04-25 16:29:07 +01:00
Martyn Inglis
e977e7cee4 Wired in a simple callback to handle SNS notifications from S3
S3 will send a message when a file lands - which will trigger processing of DVLA responses.
2017-04-25 14:56:16 +01:00
Martyn Inglis
8e439ce58a Bumped utils version 2017-04-25 14:32:14 +01:00
Martyn Inglis
d4996aaf0e Merge branch 'master' into rate-limit-api-calls 2017-04-25 14:27:05 +01:00
Rebecca Law
a016a601c9 Merge pull request #916 from alphagov/update-sms-rate
Update sms rate
2017-04-25 11:06:23 +01:00
Rebecca Law
3b28a1fa47 Fix db migration merge conflicts 2017-04-25 10:19:57 +01:00
Rebecca Law
e8a7762688 Merge branch 'master' into update-sms-rate 2017-04-25 10:15:54 +01:00
Martyn Inglis
803c21865b Allow rate limiting on a per env basis
- switched off on prod by default
2017-04-25 09:54:09 +01:00
Rebecca Law
6c8ff80440 Rename class to be singular 2017-04-25 09:53:43 +01:00
Imdad Ahad
2c620ed652 Merge pull request #915 from alphagov/fix-get-current-provider-returns-inactive
Fix: Ensure get_current_provider returns an active provider
2017-04-24 16:33:12 +01:00
Rebecca Law
266c17dfd6 Do not delete rates 2017-04-24 16:32:23 +01:00
Rebecca Law
43226dc932 Added a new rates table.
We only need one rate per channel. This reflects that. The provider_rates has been left for now, it is still not being used.
New dao has been added to select the right rate for the given notification_type and date of notificaiton.
2017-04-24 16:20:03 +01:00
Imdad Ahad
ce2401c6e0 Ensure get_current_provider only returns active 2017-04-24 16:06:14 +01:00
Martyn Inglis
926b8a60f9 Adds in call to new rate limit method in the redis client
- both V1 and V2 APIs
- Rate limiting wrapped into a new method - check_rate_limiting
	- delegates to the previous daily limit and the new though put limit
- Rate limiting done on key type. Each key has it's own limit (number of requests) and interval (time period of requests)
- Configured in the config. Not done on a per-env basis though could be in the future.
2017-04-24 14:15:08 +01:00
kentsanggds
8712b6aa03 Merge pull request #913 from alphagov/international-feature-db-migration
Add international sms feature flag in db
2017-04-24 14:10:33 +01:00
Ken Tsang
aed9bc0fe7 Added tests for international sms flag 2017-04-24 13:01:13 +01:00
Ken Tsang
04796b39a8 Add international sms feature flag in db 2017-04-24 12:43:19 +01:00
Chris Hill-Scott
028cedbb10 Merge pull request #912 from alphagov/revert-909-revert-906-dvla-orgs
Revert "Revert "add DVLA organisations to API""
2017-04-21 16:41:06 +01:00
Imdad Ahad
c4fac1d937 Revert "Revert "add DVLA organisations to API"" 2017-04-21 16:05:07 +01:00