Martyn Inglis
b3884e2d6c
Move job processing into celery
...
- brings boto S3 into new AWS folder
- CSV processing utils method
Rejigs the jobs rest endpoint - removes some now unused endpoints,
Calls to the task with the job, job processing in task, delegating SMS calls to the sms task
2016-02-24 17:12:30 +00:00
Adam Shimali
21e791b25c
Add endpoint for getting user by email address
2016-02-23 11:03:59 +00:00
Adam Shimali
c36b64c91b
Added notification count to jobs.
2016-02-22 14:57:33 +00:00
Martyn Inglis
9bb95a53ec
Updates to template endpoints:
...
- moved into templates rest class
- updated dao
- removed delete methods
- constraint on subject line
2016-02-22 12:55:18 +00:00
Martyn Inglis
443691402f
Slight tiny up of templates_dao
...
- 1 method per get query
- logic around create/update removed
2016-02-22 09:46:16 +00:00
Martyn Inglis
5bfae689c2
Refactored the services dao to be a little cleaner
...
- some things we don't need
- bulk update of users
- delete service
Now returns None if can't find an object
2016-02-19 15:53:15 +00:00
Martyn Inglis
655beddba6
Fixed up the get_notitication endpoint
...
- returns a notification
2016-02-16 11:22:44 +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
17e5e70f6c
[WIP] Added endpoints under /job for creating, updating and reading
...
notification status.
2016-02-09 14:17:42 +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
bec4bbe04e
Endpoint and dao method for updating job status.
2016-02-04 20:55:09 +00:00
Adam Shimali
806b3f6851
If failed login count > 0 and user subsequently logs in sucessfully,
...
then failed logins set to 0.
2016-01-28 11:58:33 +00:00
Adam Shimali
d62b5bdce7
Record and persist failed login count on api.
2016-01-25 11:14:23 +00:00
Nicholas Staples
11c7795396
Merged with master.
2016-01-22 14:46:03 +00:00
Nicholas Staples
a9fe6ad469
Working code and tests.
2016-01-22 14:43:30 +00:00
Rebecca Law
5a937d6e71
Added user_id as a query param for get_services.
...
Need to add this query param for the services page on the admin app.
Do not add the query param to path in the token.
2016-01-22 12:47:59 +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
2689d908c1
Update api-key/revoke endpoint to expire the key for the service.
...
Previously we assumed there was only one api key that was valid.
2016-01-20 14:48:44 +00:00
Rebecca Law
1db57dca8c
Allow for multiple api keys for a service.
2016-01-19 18:25:21 +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
f4a0a9b8d9
Fix for job urls that should have been within context of a service.
...
The service id path parameter is captured in the url prefix for the
job blueprint.
2016-01-18 09:57:04 +00:00
Adam Shimali
f3b6769193
Add convenience fields to job to make processing
...
easier.
2016-01-16 10:14:48 +00:00
Adam Shimali
012cff5ae2
test cleanup with fixtures
2016-01-15 12:16:07 +00:00
Adam Shimali
b9f6db1856
Added model and dao for Jobs.
2016-01-15 11:12:05 +00:00
Rebecca Law
436f45b70d
Moved the _generate_token methods to the tokens_dao.
2016-01-14 11:30:45 +00:00
Rebecca Law
255dddaa27
Changed the token endpoints so that you can renew a token and revoke a token.
...
Updated create service so the token is created at that time
2016-01-14 10:18:11 +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
99820b3e85
More tests for rest and dao.
2016-01-13 12:14:21 +00:00
Nicholas Staples
31f10c7457
Added delete endpoint and tests.
2016-01-12 10:39:49 +00:00
Nicholas Staples
74547013ba
All four http methods working now for user and service restful apis.
2016-01-11 17:19:06 +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