Rebecca Law
917110870d
Use the template version at the time the notification is created or at the time the job is created.
...
Update notifications/sms|email endpoint to send the template version to the queue.
Update the process_job celery talk to send the template version to the queue.
When the send_sms|send_email task runs it will get the template by id and version.
Created a data migration script to add the template_vesion column for jobs and notifications.
The existing jobs and notifications are given the template_version of the current template.
There is a chance this is the wrong template version, but deemed okay since the application is not live.
Create unit test for the dao_get_template_versions method.
Rename /template/<id>/version to /template/<id>/versions which returns all versions for that template id and service id.
2016-05-13 16:25:05 +01:00
Nicholas Staples
b28474d74c
Get all versions for a template endpoint added.
2016-05-09 15:59:34 +01:00
Nicholas Staples
9b3d4a6087
Template history endpoint added. All tests passing.
...
Code quality fix.
2016-05-06 15:47:13 +01:00
Nicholas Staples
b56e324a4c
Working tests and provider stats table.
...
Fix for tests and import error.
Added tests and updated for code review comments.
2016-04-25 12:20:06 +01:00
Chris Hill-Scott
29b9e50952
Order templates by last updated date
...
The template you want to send/edit is probably one of the ones you
recently sent from or edited.
https://www.pivotaltracker.com/story/show/117159263
2016-04-11 17:39:49 +01:00
Rebecca Law
123b0ead3a
Replaced first queries with one queries, which throws a NoResultFound.
...
Able to remove many of the None checks as a result of this.
Fixed the tests were needed.
2016-03-11 15:34:20 +00: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
Martyn Inglis
1667f82df1
Removed some unused template dao methods
2016-02-24 11:51:02 +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
Nicholas Staples
aba1cd2ed5
Sqs queues now populated from all create_notification api calls. Marshmallow schemas added for notification.
2016-02-03 13:16:19 +00:00
Nicholas Staples
2451f7e53d
Added support for validation only of put requests.
2016-01-29 11:11:00 +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
Nicholas Staples
e657958af4
Templates fix with tests working.
2016-01-22 10:44:34 +00:00
Nicholas Staples
5fe7dbe3be
Git review fix.
2016-01-13 17:23:59 +00:00
Nicholas Staples
99820b3e85
More tests for rest and dao.
2016-01-13 12:14:21 +00:00
Nicholas Staples
dad0fff4ba
Template rest api skeleton added.
2016-01-13 11:04:13 +00:00