Chris Hill-Scott
d6f7c7d1c9
Replace placeholders before sending a message
...
This commit replaces placeholders in a template with the user’s data, using
the Template class from utils
(https://github.com/alphagov/notifications-utils/tree/master/utils#template )
It also extracts the personalisation data from the CSV, taking account of the
different column headings that SMS and email CSVs will have.
At the point of creating the task to send an individual messages, validation of
the placeholders matching the template is assumed to have been done either:
- in processing the CSV in the admin app
- in the endpoint for the API call
No exceptions should be raised at this point.
2016-03-02 08:59:34 +00:00
Rebecca Law
df278a8e6e
Email invitation to an invited user.
...
New celery task to send the email.
2016-02-29 13:21:12 +00:00
Martyn Inglis
36eee56f17
Adding boto for python2 as Celery seems to need it.
2016-02-17 14:03:40 +00:00
Martyn Inglis
223cb8c2dd
Made SMS messages go through celery
...
- twilio client pulled in from delivery app
- made method to perform task
2016-02-15 16:01:14 +00:00
Martyn Inglis
fcc1585fdf
Merge branch 'master' into celery-spike
...
Conflicts:
app/__init__.py
app/notifications/rest.py
config.py
wsgi.py
2016-02-12 09:36:49 +00:00
Martyn Inglis
a1be4e3ca5
Updated python client verion
2016-02-10 12:33:54 +00:00
Martyn Inglis
d38ba0d36a
bumped client version
2016-02-09 18:48:02 +00:00
Martyn Inglis
fb41acdac9
Celery tests
2016-02-09 13:31:45 +00:00
Nicholas Staples
2fda7ee59b
Alpha client removed from code. Tests fixed but will wait till other notifications jobs are done before creating a pull request.
2016-02-09 11:38:57 +00:00
Rebecca Law
42a4c8b0b1
Add sms notifications from a service to a queue.
2016-01-27 17:42:05 +00:00
Nicholas Staples
a9fe6ad469
Working code and tests.
2016-01-22 14:43:30 +00:00
Nicholas Staples
6b035cd324
All tests working, second time around.
2016-01-21 17:29:24 +00:00
Nicholas Staples
50c3f3dc55
Bump of requirement version.
2016-01-20 14:28:17 +00:00
Martyn Inglis
811e7c1bec
Bumped API client version
2016-01-19 17:23:07 +00:00
Martyn Inglis
7c23a08786
Bumped API client version
2016-01-19 17:21:06 +00:00
Adam Shimali
f18071084e
Merge pull request #18 from alphagov/proxy-to-alpha
...
Proxy to alpha
2016-01-19 16:02:42 +00:00
Martyn Inglis
742a567036
Added AWS files to
...
- upgrade database
- use credstash for secret overrides
2016-01-19 14:50:42 +00:00
Martyn Inglis
346bc9feac
Merge branch 'master' into proxy-to-alpha
2016-01-19 13:49:54 +00:00
Martyn Inglis
7b756567af
Updated tests for fetch notifications by id, not simply fetch all
2016-01-19 13:45:57 +00:00
Adam Shimali
f839bae1f5
Add rest of user model fields to api.
...
First step to moving user interactions to api.
2016-01-19 11:39:59 +00:00
Martyn Inglis
d275ba83a2
Added endpoints for the proxy to notifications.
...
- this uses alpha API for delivery
- no DB model included as just proving
- all notifications for same service at the moment (!)
2016-01-19 11:23:09 +00:00
Rebecca Law
725b976d31
Created endpoints for create and delete token.
2016-01-14 10:17:36 +00:00
Nicholas Staples
49e98c21e7
Service and User API added, working with tests. Still need to polish the edges and add more tests.
2016-01-11 15:07:13 +00:00
Nicholas Staples
0bc4d02713
Work in progress, skeleton of the api created and testing started. Need to fix authentication tests.
2016-01-08 17:51:46 +00:00
Nicholas Staples
a327702ad0
Initial code added for models and services not functional yet. Bootstrap and migrations added for db.
2016-01-07 17:50:55 +00:00
Martyn Inglis
1c926a1b34
Added logging from notifications-utils.
2016-01-07 13:28:56 +00:00
Martyn Inglis
4caf0fcad6
Fixing pull requests comments
...
- full path to imports
- renamed client lib from jwt->authentication
2015-12-15 14:36:57 +00:00
Martyn Inglis
dbf70ec1eb
First pass at implementing API authentication using new JWT tokens
...
- NOTE - this does not manage secrets. There is only one URL and there is no functionality implemented
- prior to rolling out we need to store secrets properly
Uses the JWT libraries in [https://github.com/alphagov/notifications-python-client ](https://github.com/alphagov/notifications-python-client )
- Tokens are checked on every request and will be rejected if token is invalid as per the rules in the python clients.
2015-12-15 10:47:20 +00:00
Martyn Inglis
6a3bbbf890
Added python client to dependencies
2015-12-14 12:58:49 +00:00
Martyn Inglis
6deaa61011
Implement a JWT header into base client
...
- adds a base client
- adds a notifications client
These do not proxy onto genuine methods. This pull request is the basic implication of the API Client. Still needs a few things before is ready, notably proper logging and actual API endpoints to hook into.
Basic premise is to deliver the JWT tokens required for Notify API authentication so we can discuss the implementation/premise.
2015-12-11 16:57:00 +00:00
Rebecca Law
3d59c72e17
Initial version of the notify-notifications-api
2015-11-18 17:02:25 +00:00