Commit Graph

609 Commits

Author SHA1 Message Date
Chris Hill-Scott
bc1aef5993 Merge pull request #185 from alphagov/improve-csv-phone-validation
Strip trailing CSV rows, relax phone validation
2016-03-29 11:12:50 +01:00
Chris Hill-Scott
e3ae81bd0a Strip trailing CSV rows, relax phone validation
Implements (and depends on):
- https://github.com/alphagov/notifications-utils/pull/14
- https://github.com/alphagov/notifications-utils/pull/15
2016-03-24 20:30:15 +00:00
Adam Shimali
ed1d988bf4 Merge pull request #184 from alphagov/notifications-return-change
Align notifications api with docs and other endpoints
2016-03-24 16:24:43 +00:00
NIcholas Staples
c7622edba8 Merge pull request #183 from alphagov/transaction_management
Transaction management added for one example. All tests passing.
2016-03-24 16:16:15 +00:00
Adam Shimali
7bc81528bb Post endpoint to create notificaition and get endpoint
to retrieve notification by id return data in shape more
consistent with other api endpoints.
2016-03-24 13:34:45 +00:00
Nicholas Staples
3a59c75257 Transaction management added for one example. All tests passing. 2016-03-23 16:30:47 +00:00
Chris Hill-Scott
f76af9acb7 Merge pull request #180 from alphagov/remove_user_from_service
Added endpoint for removing user from service, all tests passing.
2016-03-23 13:34:08 +00:00
Chris Hill-Scott
3f962ed480 Merge pull request #179 from alphagov/quis-patch-1
Add deployment badges
2016-03-22 15:53:28 +00:00
Nicholas Staples
090babaaeb Added endpoint for removing user from service, all tests passing. 2016-03-22 13:14:23 +00:00
Chris Hill-Scott
d8c29baa0e Add deployment badges 2016-03-22 09:40:07 +00:00
Rebecca Law
a0ea15d728 Merge pull request #176 from alphagov/capture-delivery-outcomes
Capture delivery outcomes
2016-03-21 14:15:27 +00:00
Martyn Inglis
268819284f Merge branch 'master' into capture-delivery-outcomes
Conflicts:
	tests/app/notifications/test_rest.py
2016-03-21 13:32:31 +00:00
Martyn Inglis
00a04ce079 Removed SES debug line 2016-03-21 13:25:41 +00:00
Martyn Inglis
e0316d1881 Adds notification stats update into the callback process
- when a provider callback occurs and we update the status of the notification, also update the statistics table

Adds:
- Mapping object to the clients to handle mapping to various states from the response codes, this replaces the map.
- query lookup in the DAO to get the query based on response type / template type

Tests around rest class and dao to check correct updating of stats

Missing:
- multiple client callbacks will keep incrementing the counts of success/failure. This edge case needs to be handle in a future story.
2016-03-21 13:24:37 +00:00
NIcholas Staples
fa50e97cf9 Merge pull request #175 from alphagov/notifications_filtering
Filtering added and tests working.
2016-03-21 12:50:06 +00:00
Nicholas Staples
327f169575 Filtering added and tests working. 2016-03-21 12:37:34 +00:00
Martyn Inglis
e2cfbce8c4 Added base object for response statuses, and tests around it's behaviour 2016-03-21 09:20:38 +00:00
Chris Hill-Scott
a0022455f0 Merge pull request #173 from alphagov/email-wrapper
Add HTML email
2016-03-18 15:42:32 +00:00
Martyn Inglis
86579fba71 Merge branch 'master' into capture-delivery-outcomes 2016-03-18 15:35:51 +00:00
Chris Hill-Scott
f3ddf1f456 Add HTML email
Make the SES client optionally pass through HTML and text body, as per:
http://docs.aws.amazon.com/ses/latest/APIReference/API_Body.html

Gets the message as HTML from:
https://github.com/alphagov/notifications-utils/pull/12
2016-03-18 15:26:32 +00:00
NIcholas Staples
7d99787146 Merge pull request #161 from alphagov/fix_pagination_bug
Fix pagination bug and swapped file name with original file name.
2016-03-18 15:08:30 +00:00
Martyn Inglis
0b62d65e7a Readme update 2016-03-18 12:58:17 +00:00
Adam Shimali
b83ed758f4 Merge pull request #165 from alphagov/email-registration-link
Added task for sending email verification links
2016-03-18 11:03:21 +00:00
Martyn Inglis
02bbb05654 Per environment celery setups 2016-03-18 11:01:40 +00:00
Martyn Inglis
c3ffae3cf7 Live deployment on api codedeploy groups 2016-03-18 10:23:32 +00:00
Martyn Inglis
fc7ad7d556 Bring DB script into line with other prod scripts 2016-03-18 09:55:19 +00:00
Martyn Inglis
8871d4eda6 Env specific firetext from numbers 2016-03-18 09:15:05 +00:00
Martyn Inglis
c052f88408 Adding specific staging/live property for API HOST 2016-03-18 09:12:19 +00:00
Adam Shimali
2d1d883283 Added task for sending email verification links out on intial
registration.

Left original email code endpoint in as it is still used for things like
email change.
2016-03-17 15:21:04 +00:00
Martyn Inglis
8b83e6a02a Moved import until after env setup 2016-03-17 13:21:01 +00:00
minglis
cb0b091468 Merge pull request #164 from alphagov/staging-live-config-seperation
Allowing overrides on a per environment basis
2016-03-17 12:56:26 +00:00
Martyn Inglis
6aec6a0bda Update as per pull request comments:
- context manager for file handling
- os.environ.update for setting overrides
2016-03-17 12:51:14 +00:00
Rebecca Law
bbd5274000 Merge pull request #163 from alphagov/default-stats-to-zero
Set default to 0 for the notification_statistics table.
2016-03-17 11:55:07 +00:00
Rebecca Law
b0c6a1a7c6 Fix the order for the migration script 2016-03-17 11:50:32 +00:00
Martyn Inglis
9a7788a6f5 Allowing overrides on a per environment basis 2016-03-17 11:47:44 +00:00
Rebecca Law
bd26c4740c Merge branch 'master' into default-stats-to-zero 2016-03-17 11:40:49 +00:00
Rebecca Law
15fac879e3 Merge pull request #162 from alphagov/platform-admin-role
Add platform_admin boolean on the User data model.
2016-03-17 11:33:52 +00:00
Rebecca Law
b7f65feadd Set default to 0 for the notification_statistics table. 2016-03-17 11:32:55 +00:00
Rebecca Law
bd2d77fec8 Add platform_admin boolean on the User data model. 2016-03-17 10:37:24 +00:00
Nicholas Staples
f41d01780a whoops test fixes. 2016-03-16 17:01:58 +00:00
Nicholas Staples
c3a15f9f30 Fix pagination bug and swapped file name with original file name. 2016-03-16 16:47:18 +00:00
minglis
e7532d2c64 Merge pull request #158 from alphagov/set-application-name
Pass application name in from start scripts
2016-03-16 14:51:50 +00:00
Martyn Inglis
6ceddf0ebf pep8 fixed 2016-03-16 14:08:25 +00:00
NIcholas Staples
03e2f4a244 Merge pull request #159 from alphagov/validate-number
Format and validate phone number
2016-03-16 13:50:27 +00:00
Rebecca Law
4268f8453b Use the same validation in the endpoint and the task to validate the phone number is ok to send to.
Format the phone number before sending it to the sms provider.
2016-03-16 13:36:46 +00:00
Martyn Inglis
27d48a9746 Pass application name in from start scripts
- allows logger to log as correct application
2016-03-16 13:25:09 +00:00
minglis
977ac4f566 Merge pull request #157 from alphagov/travis-builds-to-deployment-group
Add all deplpyment groups to travis
2016-03-16 10:59:57 +00:00
Martyn Inglis
35f4cca62d Add all deplpyment groups to travis 2016-03-16 10:56:27 +00:00
NIcholas Staples
1425290eef Merge pull request #155 from alphagov/notification_api_get_update
Update schemas to return more details about the job and template for …
2016-03-16 10:30:09 +00:00
minglis
041ac318d7 Merge pull request #156 from alphagov/codedeploy-scripts-update
Updated aws start/stop scripts to handle multiple start/stop scripts
2016-03-16 09:48:33 +00:00