Martyn Inglis
c5a993ead1
Fetch endpoints for notifications
...
- includes check on token type to ensure clients can perform admin style fetches
2016-03-01 13:30:10 +00:00
Rebecca Law
3879350c12
Send email invitation to invited user
2016-02-29 15:56:00 +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
b01782bbe6
Send Email via the API
...
- uses the new subject/email from fields present on the templates / service tables
- brings the send email api call into line with the sms one.
- same fields (to/template_id)
- same rules regarding restricted services
- wired in as a task into celery
Requires
- new celery queue
- new env property (NOTIFY_EMAIL_DOMAIN)
2016-02-22 17:17:29 +00:00
Rebecca Law
7afa87c367
Merge branch 'master' into celery-send-sms-code
...
Conflicts:
tests/app/celery/test_tasks.py
2016-02-17 15:43:57 +00:00
Rebecca Law
d022d036dc
Celery task to send the sms verify code.
...
Each celery task will use it's own queue.
2016-02-17 15:41:33 +00:00
Martyn Inglis
226459132a
Basic (Very basic) implementation of the fire text API.
...
[https://www.firetext.co.uk/docs#sendingsms ](https://www.firetext.co.uk/docs#sendingsms )
Not to be merged. This API has a limit on it at the moment that will need to be removed before it is used in anger.
2016-02-17 12:57:51 +00:00
Martyn Inglis
95cdfe08d1
Updated logging in run-celery script to log to application logs
...
- poll every second
- visibility of 1 minute
2016-02-17 11:18:27 +00:00
Martyn Inglis
e0e47b40fc
Setup celery config
2016-02-17 10:22:25 +00:00
Martyn Inglis
cb265896a7
Merge branch 'master' into move-sms-notifications-into-celery
...
Conflicts:
app/__init__.py
tests/conftest.py
2016-02-17 09:14:37 +00:00
Rebecca Law
af86520e95
Add verify_code_email_address
2016-02-16 16:03:30 +00:00
Rebecca Law
08ba5de61b
Update config
...
Source the configuration from an environment file, this way it is similar to how the aws environment works
2016-02-16 16:01:50 +00:00
Nicholas Staples
20650a91e0
Update to config to pull out from email address.
2016-02-16 11:10:02 +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
Nicholas Staples
38e30034d1
updated environment variables.
2016-02-09 14:07:43 +00:00
Martyn Inglis
66763a061c
Added preview and staging config blocks
2016-02-09 13:56:11 +00:00
Martyn Inglis
fb41acdac9
Celery tests
2016-02-09 13:31:45 +00:00
Adam Shimali
0580f5ab06
New endpoint for delivery app to use.
...
Once removal of code that uses existing alpha is done, then
duplicated code from /notifications/sms and the new endpoint
can be merged.
Job id is now avaiable in notificaiton but is not used yet.
2016-02-08 14:54:15 +00:00
Nicholas Staples
cc5dad3744
Update queues with a prefix.
2016-02-05 11:12:59 +00:00
Adam Shimali
0ade39e63f
Add job to queue as soon as it in created.
...
Added status to job.
2016-02-02 15:14:04 +00:00
Rebecca Law
42a4c8b0b1
Add sms notifications from a service to a queue.
2016-01-27 17:42:05 +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
Rebecca Law
15578cfdb7
Remove config that is no longer used
2016-01-19 14:21:03 +00:00
Martyn Inglis
7ecede46e5
Merge branch 'master' into proxy-to-alpha
...
Conflicts:
config.py
2016-01-19 14:11:20 +00:00
Rebecca Law
d15e68238d
Authentication for admin client api calls where a user and service is not required.
2016-01-19 14:01:26 +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
8ace626320
Fix code style
2016-01-18 11:03:38 +00:00
Rebecca Law
c4e5ab7c77
Manager command to create an admin user for the environment.
2016-01-18 10:56:26 +00:00
Rebecca Law
725b976d31
Created endpoints for create and delete token.
2016-01-14 10:17:36 +00:00
Nicholas Staples
5bcc615825
Added dao, test framework and tests for dao.
2016-01-08 12:18:12 +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
e25ca0e434
Basic commit to add get pages showing
...
- bootstrap script
- run script
- couple of views
- basic config
2015-12-10 10:56:59 +00:00