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
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
Leo Hemsted
76676280ab
add create service tests for dvla_org
2017-04-20 17:22:45 +01:00
Leo Hemsted
f127bac600
add GET /dvla_organisation endpoint
2017-04-20 15:35:31 +01:00
Imdad Ahad
4dfd5448ad
Make get all notications return in csv format too:
...
* This adds functionality (via an extra req param) to the
* existing get all notifications method allowing us to specify
* when we want the API to return in csv/non-csv format
2017-04-20 12:31:49 +01:00
Chris Hill-Scott
5720f056ee
Pass DVLA organisation ID through to Template
...
So that we know which organisation ID to spit out in the file.
2017-04-20 12:06:51 +01:00
Imdad Ahad
9fbd43c072
Serialise notifications for csv separately:
...
* Introduces separate method on Notification to serialise the notification
* ready for csv output
* Fixes issue where job_row_number = 0 not being accounted for correctly
2017-04-20 11:52:00 +01:00