Martyn Inglis
c44aaf0fdc
Capture the count of sent notifications for a job
2016-03-04 14:25:28 +00:00
Martyn Inglis
a186e277d7
Sent count on jobs
2016-03-04 13:42:55 +00:00
Martyn Inglis
aaedd4d054
Removed unused notifcation status
2016-03-03 12:19:56 +00:00
Martyn Inglis
800afc9e44
Ensure restricted service are respected by tasks:
...
This is checked on 3rd party API calls, but jobs (CSV files) were able expected to only allow valid files.
Change in tack means we want to have restricted notification failures reported in the UI.
2016-03-03 12:05:18 +00:00
Nicholas Staples
ebec54cb80
Permission enums corrected, all tests passing.
2016-03-02 15:34:26 +00:00
Nicholas Staples
47c4368007
Merge with master.
2016-03-01 17:18:46 +00:00
Nicholas Staples
918d40cc9d
Functionality added and all tests working.
2016-03-01 14:21:28 +00:00
Adam Shimali
59aec1939c
[WIP] invited user now has comma separated permission values
...
stored against it so that user can be created with correct
permissions.
2016-02-29 14:05:02 +00:00
Nicholas Staples
16e1ecb134
Working permissions and all tests passing.
...
Remove print statements.
Fix for review comments.
2016-02-26 15:00:29 +00:00
Rebecca Law
ff6cad1acf
Merge branch 'master' into service-not-found-returns-404
...
Conflicts:
app/errors.py
2016-02-25 15:33:53 +00:00
Rebecca Law
67af351f26
Fix get_users_by_service to return 404 if service does not exist.
...
Refactored service/rest.py so that all methods are returning a properly formatted error message so that the error message can deal with the response.
Refactoed errors.py to properly format the error message.
2016-02-25 12:11:51 +00:00
Martyn Inglis
a3a9d673a6
Merge branch 'master' into celery-jobs
2016-02-25 12:06:53 +00:00
Martyn Inglis
10a764a2c1
Renamed the header of the CSV to 'to' from 'number' to allow for email jobs
...
- added new columns to Job and Notification to capture the start/end dates accurately
2016-02-25 09:59:50 +00:00
Adam Shimali
e6fe10cbdc
[WIP] added endpoint and dao to create invites for users.
...
Droped token as later code to send email invite can generate
timebased url to send to user. That can then be checked
against configurable time threshold for expiry. Therefore
no need to store a token.
2016-02-24 14:18:56 +00:00
Adam Shimali
c02b304d1e
Add model class and migration script for invited user.
2016-02-23 16:46:39 +00:00
Adam Shimali
c36b64c91b
Added notification count to jobs.
2016-02-22 14:57:33 +00:00
Martyn Inglis
886b206d63
Merge branch 'master' into email-templates
...
Conflicts:
app/user/rest.py
tests/app/user/test_rest.py
2016-02-22 13:12:24 +00:00
Martyn Inglis
f8ac14ea30
Update model
...
- adds email_from field to the service model
- adds subject_line to the template model
These are unique and not null fields, so there is a migration here for email_from to populate it.
2016-02-19 15:52:19 +00:00
Nicholas Staples
0396148853
Permissions added.
2016-02-19 14:47:45 +00:00
Adam Shimali
3a2cfc96e6
job on notification now nullable.
2016-02-10 11:08:24 +00:00
Adam Shimali
e6a7e07505
Fix for create job id on api side
2016-02-09 18:28:28 +00:00
Adam Shimali
e5e049d735
Added service and template relationship to notification model.
...
This makes it more consistent with other model classes with respect
to marhmallow serialisation/deserialisation.
2016-02-09 12:48:27 +00:00
Adam Shimali
c7121be5a2
[WIP] New model class and dao for notification. This will be used for
...
recording status and outcome of sending notifications.
2016-02-09 12:03:40 +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
b5c662eca8
Change services.id to a UUID
...
Ideally all the primary keys in the db would be UUID in order to guarantee unique ids across distributed dbs.
This updates the services.id to a UUID. All the tables with a foreign key to the services.id are also updated.
The endpoints no longer state a data type of the <service_id> path param.
All the tests are updated to reflect this update.
The thing to pay attention to is the 0011_uuid_service_id.py migration script.
This commit must go with a commit on the notifications_admin app to keep things working.
There will be a small outage until both deploys have happened.
2016-02-02 14:22:22 +00:00
Rebecca Law
0b62005983
Move VERIFY_CODE_TYPES outside the class and use it in the schema
2016-02-01 10:54:32 +00:00
Rebecca Law
4010ed61ce
Moved creating queue name to model
2016-01-28 11:42:13 +00:00
Rebecca Law
42a4c8b0b1
Add sms notifications from a service to a queue.
2016-01-27 17:42:05 +00:00
Rebecca Law
daff1c3f53
Add queue name to service table.
...
Set queue name when creating the service
2016-01-27 14:18:11 +00:00
Nicholas Staples
11c7795396
Merged with master.
2016-01-22 14:46:03 +00:00
Nicholas Staples
6b035cd324
All tests working, second time around.
2016-01-21 17:29:24 +00:00
Rebecca Law
2486c17dc9
Add unique constraint for api_key on service_id and name
2016-01-21 16:53:53 +00:00
Rebecca Law
15b2d414cc
Updates from review comments:
...
Update api_key relationship.
Check that id in dict exists before deleting it
2016-01-19 13:11:22 +00:00
Rebecca Law
4fc5c34320
Change Tokens to ApiKey
...
Added name to ApiKey model
2016-01-19 12:13:47 +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
Adam Shimali
f3b6769193
Add convenience fields to job to make processing
...
easier.
2016-01-16 10:14:48 +00:00
Adam Shimali
834801d19b
Added endpoints for creating job, and getting job/jobs.
2016-01-15 15:48:05 +00:00
Adam Shimali
b9f6db1856
Added model and dao for Jobs.
2016-01-15 11:12:05 +00:00
Rebecca Law
4a692d555e
Create a relationship between services and tokens
2016-01-14 10:19:22 +00:00
Rebecca Law
725b976d31
Created endpoints for create and delete token.
2016-01-14 10:17:36 +00:00
Rebecca Law
3a3f9becec
Add api_token model and dao
2016-01-14 10:15:28 +00:00
Nicholas Staples
dad0fff4ba
Template rest api skeleton added.
2016-01-13 11:04:13 +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