minglis
4a078e3c61
Merge pull request #635 from alphagov/scheduled-delivery-of-jobs
...
Scheduled delivery of jobs
2016-08-30 12:48:48 +01:00
Martyn Inglis
e1543e9a5c
More definite create times on job - some intermittent test fails where ordering ambiguous.
2016-08-26 15:32:46 +01:00
Martyn Inglis
dd7850b235
Bug fix:
...
- Get all jobs for service doesn't return the statistics.
- Dashboard therefore is incorrect
This is the API fix for this, returns the data.
2016-08-26 15:07:59 +01:00
Martyn Inglis
8b9319ac7a
Merge branch 'master' into scheduled-delivery-of-jobs
...
Conflicts:
app/dao/jobs_dao.py
tests/app/dao/test_jobs_dao.py
tests/app/job/test_rest.py
2016-08-25 14:53:00 +01:00
minglis
2d2ceba2d1
Merge pull request #631 from alphagov/add-new-column-to-jobs-for-delayed-sending
...
Adds new job_status table and FK to jobs.
2016-08-25 12:59:16 +01:00
Martyn Inglis
10f499805c
Updates to create job to handle scheduling
...
- If the job JSON contains a scheduling date then the new 'job_status" column is set to "scheduled"
- the date is persisted on the JOB row in the database
- Also the job WILL NOT be placed onto the queue of jobs. This is deferred to a later celery beat task.
2016-08-24 16:00:21 +01:00
Martyn Inglis
cf3c14dbbd
Added job_status to marshmallow
...
- ensured statues not deleted on test runs
- returns in API call
Merge branch 'add-new-column-to-jobs-for-delayed-sending' into scheduled-delivery-of-jobs
Conflicts:
app/models.py
2016-08-24 14:35:22 +01:00
Martyn Inglis
48089e21e5
Adding default values
2016-08-24 14:16:39 +01:00
Martyn Inglis
1e10c0485c
Removed some code
2016-08-24 14:05:54 +01:00
Martyn Inglis
805da23d6b
Starting to implement scheduling
2016-08-24 14:04:52 +01:00
Martyn Inglis
09cb94081b
Returns the outcome statistics for the job on the API call.
2016-08-23 16:46:58 +01:00
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