Rebecca Law
f72f5aba05
[WIP]
...
Start to add template_version to jobs and notification
2016-05-11 17:04:51 +01:00
Adam Shimali
ba874cfd43
Only trigger dependent build for master, staging and live
2016-05-11 12:39:39 +01:00
Rebecca Law
829922e61f
Merge pull request #298 from alphagov/add-user-to-job
...
Add created_by for jobs
2016-05-11 12:18:29 +01:00
NIcholas Staples
35bc2e6843
Merge pull request #296 from alphagov/update_to_utcnow
...
Update now to utcnow. All tests passing.
2016-05-11 12:08:58 +01:00
Rebecca Law
eb9f47af68
Merge branch 'master' into add-user-to-job
2016-05-11 12:08:39 +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
Nicholas Staples
03f15d6af9
Update now to utcnow. All tests passing.
2016-05-11 10:56:24 +01:00
NIcholas Staples
1b82612ea3
Merge pull request #294 from alphagov/template_schema_response_update
...
Add user details to template schema dump.
2016-05-10 15:47:32 +01:00
Nicholas Staples
083d3d75ae
Add user details to template schema dump.
2016-05-10 14:55:59 +01:00
Adam Shimali
8f8245885e
Pass branch name to dependent build
2016-05-10 14:15:38 +01:00
Adam Shimali
fc1345acdf
Trigger dependent build for preview
2016-05-10 12:39:35 +01:00
NIcholas Staples
b8017dcf02
Merge pull request #290 from alphagov/template_versions_api
...
Get all versions for a template endpoint added.
2016-05-09 16:05:20 +01:00
Nicholas Staples
b28474d74c
Get all versions for a template endpoint added.
2016-05-09 15:59:34 +01:00
NIcholas Staples
f06aaa924e
Merge pull request #287 from alphagov/statistics_group_by_week_backup
...
Group by Notification Statistics added and all tests working.
2016-05-09 10:17:37 +01:00
NIcholas Staples
448d1058b8
Merge pull request #288 from alphagov/purge_functional_test_data
...
Purge functional tests command added with passing test.
2016-05-09 10:17:25 +01:00
NIcholas Staples
7213ea55fa
Merge pull request #289 from alphagov/template_history
...
Template history endpoint added. All tests passing.
2016-05-09 10:17:14 +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
d40d9f76d4
Purge functional tests command added with passing test.
...
Code quality fix.
2016-05-06 11:16:30 +01:00
Nicholas Staples
f465066a69
Group by Notification Statistics added and all tests working.
...
Fixed tests for upgraded client.
2016-05-05 11:04:20 +01:00
Rebecca Law
e10728ccae
Merge pull request #285 from alphagov/use-latest-client
...
Update python client to version 1.0.0.
2016-05-05 09:00:41 +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
Chris Hill-Scott
a92532d6d4
Merge pull request #280 from alphagov/api-insensitive-processing
...
Process CSV files with column headers of any case
2016-05-04 11:04:24 +01:00
NIcholas Staples
dcd2856c67
Merge pull request #276 from alphagov/created_by_export
...
Update created_by to work like other relationship fields.
2016-05-03 11:07:34 +01:00
Chris Hill-Scott
c96c1799f9
Process CSV files with column headers of any case
...
Implements and depends on:
https://github.com/alphagov/notifications-utils/pull/27
Should be merged and deployed before the same change in the admin app.
2016-04-29 17:24:00 +01:00
Adam Shimali
553ef6bfc8
Merge pull request #279 from alphagov/status-page-error
...
Add delivery status endpoint
2016-04-29 15:08:35 +01:00
Rebecca Law
559496a518
Merge pull request #275 from alphagov/fix-auth-bug
...
This pull request fixes a bug in authentication.
2016-04-29 14:52:20 +01:00
Rebecca Law
11c4696775
Update to test as per review comments.
...
However, I am curious if there is evidence that using fake_uuid over creating one in the test is actually faster.
2016-04-29 14:36:10 +01:00
Adam Shimali
b51ee0b4d0
Add delivery status endpoint
2016-04-29 13:00:21 +01:00
NIcholas Staples
519b912edc
Merge pull request #271 from alphagov/limit_msg_size
...
Hard sms limits added to the api for send_notification and create_tem…
2016-04-29 12:29:05 +01:00
NIcholas Staples
7121a50cd1
Merge pull request #273 from alphagov/provider_statistics
...
Fragment count endpoint added and all tests working.
2016-04-29 12:28:54 +01:00
Nicholas Staples
09d3ae27b6
Update created_by to work like other relationship fields.
2016-04-29 12:24:43 +01:00
Nicholas Staples
f71dbe9c0f
Message limit added and all tests passing.
2016-04-29 10:36:59 +01:00
Rebecca Law
8c14b5a8ab
This pull request fixes a bug in authentication.
...
If the service does not have any api keys, there would be an error but it was not formed well.
2016-04-29 10:24:02 +01:00
Adam Shimali
87a02cba14
Merge pull request #274 from alphagov/one-week-activity
...
Added limit_days filter to get notifications dao.
2016-04-28 16:56:39 +01:00
Adam Shimali
4e81695c84
Added limit_days filter to get notifications dao.
2016-04-28 16:51:19 +01:00
Nicholas Staples
bedc20d0ff
Fragment count endpoint added and all tests working.
2016-04-28 12:01:57 +01:00
Adam Shimali
23bcb08fb2
Merge pull request #272 from alphagov/temp-api-event-view
...
Add events to temporary history view for story sign off.
2016-04-28 10:48:37 +01:00
Adam Shimali
078756919d
Add events to temporary history view for story sign off.
2016-04-27 17:30:15 +01:00
Chris Hill-Scott
deb8889e8e
Merge pull request #268 from alphagov/align-statistics
...
Align date range for template + notification stats
2016-04-27 11:54:51 +01:00
Adam Shimali
c2d3e021cc
Fix migration name clash
2016-04-27 11:48:46 +01:00
Adam Shimali
f71b626089
Merge pull request #267 from alphagov/events
...
Endpoint for recording events in api.
2016-04-27 11:37:33 +01:00
Rebecca Law
d936a09870
Merge pull request #266 from alphagov/add-created-by-for-jobs
...
Add created by for jobs
2016-04-27 11:26:57 +01:00
Chris Hill-Scott
d7f6bb9976
Align date range for template + notification stats
...
We were using two different queries to filter template stats to the past
7 days, plus today.
Since we’re storing both as short dates, we can now use the same query
for both.
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
-------|---------|-----------|----------|--------|----------|--------|-------
Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday | Monday
So if we are on Monday, the stats should include today, plus everything
back to last Monday.
Previously the template stats query was only going back to the Tuesday.
This should mean the numbers on the dashboard always line up.
2016-04-27 11:11:09 +01:00
Adam Shimali
dacbbfbf2f
Endpoint for recording events in api.
...
An event has an id, a type and a blob of json attached.
2016-04-27 10:36:59 +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
18a2408faa
Merge branch 'master' into add-created-by-for-jobs
2016-04-26 16:16:51 +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
Chris Hill-Scott
bca61454f3
Merge pull request #264 from alphagov/quis-patch-1
...
Fix syntax error in README
2016-04-26 15:53:34 +01:00
Chris Hill-Scott
071ce4cac4
Merge pull request #265 from alphagov/fix-duplicate-service-name-test
...
Fix test for duplicate service name
2016-04-26 15:53:16 +01:00
Chris Hill-Scott
f6d3ce0b6a
Fix test for duplicate service name
...
There is a uniqueness constraint on service `name` and `email_from`.
When you try to insert a row which has _both_ constraints, there is no
guarantee which one the operation will fail on.
This means that, when handling the exception, service `name` is not
reliably available, because sometimes the operation fails on the
`email_from` constraint instead.
This caused the tests to fail non-deterministically because they were
looking for the service `name` in the error message. As a fix, this
commit does two things:
1. Return either the service `name` or `email_from` in the error
message, depending which is available.
2. Modify the test to pass on _either_ of the two possible error
messages.
This is not ideal, but I can’t think of a way to maintain the original
behaviour, and have reliably passing tests.
2016-04-26 15:38:20 +01:00