Commit Graph

2438 Commits

Author SHA1 Message Date
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
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
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
Martyn Inglis
5550201939 Upper case only in the random notification id generator
as DVLA need upper case only or the barcode doesn't generate.
2017-04-20 10:55:53 +01:00
Leo Hemsted
d514d99a67 add DVLA organisations to API
when services are created, they'll have a dvla_org_id of 001, or
HM Government. That can be changed later using a regular update call
2017-04-19 16:31:18 +01:00
Leo Hemsted
67002cd608 Merge pull request #905 from alphagov/letter-scheduled-task
exclude letters from scheduled cleanup tasks
2017-04-19 16:19:44 +01:00
Leo Hemsted
935e566284 add tests for letters not getting excluded 2017-04-19 14:22:25 +01:00
kentsanggds
45a689f98e Merge pull request #904 from alphagov/remove-slash-in-route
Removed slash from v2 get all templates route
2017-04-19 12:52:04 +01:00
Ken Tsang
4a63a337b2 Removed slash from v2 get all templates route 2017-04-19 12:38:58 +01:00
Leo Hemsted
b381aeefa1 don't include letters when timing out/deleting old notifications
also refactored those functions, since they were pretty gnarly and
repeated themselves a lot
2017-04-19 11:34:00 +01:00
kentsanggds
d51fbf49e6 Merge pull request #903 from alphagov/add-v2-template-get-all
Add v2 template get all
2017-04-19 11:09:57 +01:00
Ken Tsang
fc0cfa5dbf Corrected code to handle template types 2017-04-19 10:51:12 +01:00
Ken Tsang
ed953e992d Add check for subject when email type 2017-04-19 10:51:12 +01:00
Ken Tsang
c33b876c66 Remove get all template print 2017-04-19 10:51:12 +01:00
Ken Tsang
5ef0ecf9bf Added subject to get all templates email template 2017-04-19 10:51:12 +01:00