Leo Hemsted
2b645f490a
move get_all_notifications_for_service and get_all_notifications_for_job
...
moved from notifications/rest -> service/rest and job/rest respectively
endpoint routes not affected
removed requires_admin decorator - that should be set by nginx config
as opposed to python code
2016-06-30 10:44:21 +01:00
Rebecca Law
2a7872cce1
Add a limit days query param for get all jobs.
2016-05-24 17:21:04 +01:00
Leo Hemsted
7801efd5ca
don't create job if template has been archived
2016-05-24 13:08:02 +01:00
Rebecca Law
f72f5aba05
[WIP]
...
Start to add template_version to jobs and notification
2016-05-11 17:04:51 +01:00
Rebecca Law
aff0abb78c
Add a load only and dump only for the created_by attribute of the JobSchema
2016-05-11 12:03:25 +01:00
Rebecca Law
b53fdf1f3f
Update python client to version 1.0.0.
...
This version of the client removed the request method, path and body from the encode and decode methods.
The biggest changes here is to the unit tests.
2016-05-04 16:08:23 +01:00
Rebecca Law
3f7bae3428
Removed update_job endpoint because it is not being used
2016-04-27 09:46:45 +01:00
Rebecca Law
94aab20317
Add created_by_id to jobs table.
...
The user logged in will be the user marked as creating the job.
The admin code already sends the created_by user when creating a job.
2016-04-26 16:15:34 +01:00
Nicholas Staples
c4b316bde6
Rebased migrations, all tests working.
2016-04-08 13:34:54 +01:00
Nicholas Staples
143d1b0db8
Updated to retrieve csv upload from new bucket.
...
Fix test errors.
2016-04-07 14:10:30 +01:00
Rebecca Law
e055590b07
Changed db queries to use one, which throws NoResultFound exception, this exception is dealt with in our error handlers.
...
Now a lot of the if none checks can be removed.
2016-03-11 12:39:55 +00:00
Adam Shimali
fc8e27e582
[WIP] When user is added to a service a list of permissions groups are
...
used to assign the correct permissions to the user.
Last slice will be to update invite status.
2016-03-03 16:38:12 +00:00
Nicholas Staples
2cf2b51cd9
Fix for git commit review.
2016-02-29 11:50:43 +00:00
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
c36b64c91b
Added notification count to jobs.
2016-02-22 14:57:33 +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
Rebecca Law
2db0f9737e
Added a test to check endpoint works with an id in payload.
2016-02-10 12:46:52 +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
23f4ce7255
Fix for incorrect property name for service and template.
2016-02-05 16:33:07 +00:00
Adam Shimali
e024db6858
As job update is a PUT then all non nullable fields
...
need to be sent with update.
Also bug in not committing update fixed.
2016-02-05 13:07:02 +00:00
Adam Shimali
bec4bbe04e
Endpoint and dao method for updating job status.
2016-02-04 20:55:09 +00:00
Adam Shimali
aa57730fc9
Add more properties of job to job message.
2016-02-04 12:36:53 +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
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
Rebecca Law
96ba2d13b3
Updated job endpoint tests with authorization header
2016-01-15 17:11:02 +00:00
Adam Shimali
834801d19b
Added endpoints for creating job, and getting job/jobs.
2016-01-15 15:48:05 +00:00