Imdad Ahad
868e102f8a
Make rate_multiplier on notification return non-decimal
2017-04-27 13:24:42 +01:00
Imdad Ahad
252c3235d7
Persist intl fields on notification
2017-04-27 13:24:36 +01:00
minglis
a8ea333606
Merge pull request #923 from alphagov/validate-int-numbers-on-api
...
Validate International phone numbers
2017-04-27 13:21:04 +01:00
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
84860b2a1d
Adds a debug line to try and debug jenkins
2017-04-27 10:41:31 +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
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
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
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
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
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
Imdad Ahad
4c764dcc80
Merge pull request #911 from alphagov/add-dvla-org-migration
...
Add DVLA org migration with default values
2017-04-21 16:04:42 +01:00
minglis
8d4f9813f8
Merge pull request #907 from alphagov/upper-case-dvla-ids
...
Upper case only in the random notification id generator
2017-04-21 14:26:03 +01:00
Imdad Ahad
0ce0086639
Add DVLA org migration with default values
2017-04-21 13:27:04 +01:00
Imdad Ahad
6c703840c2
Merge pull request #908 from alphagov/feat-prepare-formatted-csv-notification
...
Make API responsible formatting notifications for CSV
2017-04-21 13:01:20 +01:00
Imdad Ahad
49fb4823e3
Refactor tests
2017-04-21 11:07:45 +01:00
Leo Hemsted
4a82230eaa
Merge pull request #909 from alphagov/revert-906-dvla-orgs
...
Revert "add DVLA organisations to API"
2017-04-20 18:23:49 +01:00
Leo Hemsted
c3e56d5d2d
Revert "add DVLA organisations to API"
2017-04-20 18:21:56 +01:00
Leo Hemsted
95b3248a5e
Merge pull request #906 from alphagov/dvla-orgs
...
add DVLA organisations to API
2017-04-20 17:41:27 +01:00