Rebecca Law
eee662e5be
Make the code neater for the query.
2017-04-03 15:52:52 +01:00
minglis
f9264ea399
Merge pull request #879 from alphagov/bump-memory-on-prod
...
Bump memory on prod
2017-04-03 11:29:43 +01:00
Martyn Inglis
8f5e1318eb
Spread out the scheduled jobs.
...
Before the longer tasks all ran on the hour, at midnight, 1 and 2.
Now we run one at midnight, one at quarter past, half past then at quarter too. Trying to spread the load.
2017-04-03 11:17:27 +01:00
Martyn Inglis
deaaa259f4
Bump the memory on delivery workers on prod to try and avoid memory issues which can cause delivery worker to fail.
2017-04-03 11:16:20 +01:00
Leo Hemsted
99d100c153
Merge pull request #878 from alphagov/fix-config
...
Can't set environs to nonetype
2017-03-31 17:25:36 +01:00
Leo Hemsted
243c0632ed
add test
2017-03-31 17:18:18 +01:00
Leo Hemsted
1c4da5367f
Can't set environs to nonetype
2017-03-31 17:10:43 +01:00
Leo Hemsted
27e4007fb5
Merge pull request #877 from alphagov/update-daily-performance-job-4am
...
Update daily performance job 4am
2017-03-31 16:57:16 +01:00
Ken Tsang
d5e8cb3354
Updated cf conf unit tests
2017-03-31 16:50:30 +01:00
Ken Tsang
316d8fdb0d
Updated config to cloudfoundry_config
2017-03-31 16:37:04 +01:00
Ken Tsang
c633e193b0
Update config to enable performance platform
2017-03-31 15:54:29 +01:00
Ken Tsang
989713b0f1
Update config for daily perf job to start 4am
2017-03-31 15:33:41 +01:00
Leo Hemsted
c6ba4050fc
Merge pull request #876 from alphagov/fix-notify-user
...
fix notify service user email
2017-03-31 14:21:56 +01:00
Rebecca Law
09cc3071be
Merge pull request #875 from alphagov/fix-redis-test-bug
...
Stop notifications with test api key incrementing the cache
2017-03-30 15:18:56 +01:00
Leo Hemsted
8865f2db82
fix notify service user email
2017-03-30 15:05:03 +01:00
Rebecca Law
3838fb583c
The redis cache for daily limits and template usage was being updated for notifications with a test api key.
...
This PR corrects that.
2017-03-30 13:43:44 +01:00
minglis
afea1f241c
Merge pull request #874 from alphagov/revert-db-tasks-from-api
...
Revert db tasks from api
2017-03-30 13:16:41 +01:00
Martyn Inglis
7dcd3164e2
Revert "Reinstating the 2 task model for API submitted notifications."
...
This reverts commit 1c154c4113 .
2017-03-30 10:46:23 +01:00
Martyn Inglis
5cd0507e99
Revert "Fixed faoiling jenkins tests. Mocked the required functions"
...
This reverts commit 4b60c8dada .
2017-03-30 10:46:15 +01:00
Martyn Inglis
9ee26e0b67
Revert "update notification rest tests"
...
This reverts commit 11919d9810 .
2017-03-30 10:38:51 +01:00
Martyn Inglis
385a73da2b
Revert "ensure we're passing through api keys and key types from notifications"
...
This reverts commit 25d1777937 .
2017-03-30 10:38:41 +01:00
kentsanggds
bf99921cff
Merge pull request #872 from alphagov/fix-daterange-bst
...
Fix daterange in service DAO to work with BST
2017-03-30 10:11:01 +01:00
Ken Tsang
5f945ab30e
Refactored code, changed now to utcnow in test
2017-03-29 11:47:41 +01:00
Ken Tsang
c94b4f1b46
Removed unused import
2017-03-29 11:05:31 +01:00
Ken Tsang
af78efd137
Fix get_detailed_services BST
2017-03-29 11:03:28 +01:00
kentsanggds
79025e54b0
Merge pull request #865 from alphagov/add-v2-template-preview
...
Add v2 template preview endpoint and schema
2017-03-28 18:40:32 +01:00
Leo Hemsted
3b24d6d9be
Merge pull request #871 from alphagov/fix-api-keys
...
ensure we're passing through api keys and key types from notifications
2017-03-28 14:16:39 +01:00
Leo Hemsted
d639aa22df
skip failing timezone test
...
TODO fixme
2017-03-28 14:02:47 +01:00
Leo Hemsted
11919d9810
update notification rest tests
2017-03-28 13:51:42 +01:00
Andras Ferencz-Szabo
ecfe81cb17
Merge pull request #870 from alphagov/paas_final_routes
...
Add final routes to the Paas app
2017-03-28 13:28:11 +01:00
Leo Hemsted
25d1777937
ensure we're passing through api keys and key types from notifications
...
when we made the change to async persist notifications, we forgot to
pass through api_key_id and key_type. in send_sms/email, for legacy
reasons, they default to None/KEY_TYPE_NORMAL, so regardless of what
your api key was set up as, we would send real messages!
TODO: Once the PaaS transition is complete and the task changes are
reverted, remove the api_key_id and key_type params from the send_*
tasks entirely, as those are only called from the csv job flow, and
don't need them
2017-03-28 13:14:46 +01:00
bandesz
eaf1e5bb72
Add final routes to the Paas app
2017-03-28 12:24:12 +01:00
Rebecca Law
d5f8b4d80b
Merge pull request #869 from alphagov/utils-update
...
Use 500 for org id
2017-03-27 17:58:56 +01:00
Rebecca Law
31979c3272
Use 500 for org id
2017-03-27 17:49:09 +01:00
minglis
d7adfcaf87
Merge pull request #866 from alphagov/no-downtime-hosting-migration
...
Reinstating the 2 task model for API submitted notifications.
2017-03-27 13:54:43 +01:00
Rebecca Law
0705cf2f7c
Update requirements.txt
...
pin version of six to resolve deployment issues
2017-03-27 11:12:39 +01:00
Rebecca Law
4d6ab0238e
Merge pull request #868 from alphagov/fix-dvla-file
...
Update the version of notifications-utils.
2017-03-24 15:34:12 +00:00
Rebecca Law
37a5ce601a
Update the version of notifications-utils.
...
There was a problem with the address block for the DVLATemplate.
Added a countdown to the build_dvla_file.
2017-03-24 15:25:02 +00:00
bandesz
92c95fe66a
Run the db migration script without the run_app_paas.sh script, because it is not failing if the migration script fails
2017-03-23 17:45:16 +00:00
Martyn Inglis
4b60c8dada
Fixed faoiling jenkins tests. Mocked the required functions
2017-03-23 15:05:56 +00:00
Ken Tsang
dfaf38269b
Refactored get template
2017-03-23 15:02:21 +00:00
Martyn Inglis
1c154c4113
Reinstating the 2 task model for API submitted notifications.
...
This is being done for the PaaS migration to allow us to keep traffic coming in whilst we migrate the database.
uses the same tasks as the CSV uploaded notifications. Simple changes to not persist the notification, and call into a different task.
2017-03-23 14:41:00 +00:00
Ken Tsang
50db538df7
Updated schema to remove redundant 'content'
2017-03-23 11:50:15 +00:00
Ken Tsang
41f82c0aef
Refactored tests to use fake_uuid
2017-03-22 14:31:16 +00:00
Ken Tsang
ecbe87a0d6
Added letter preview
2017-03-22 14:22:26 +00:00
Ken Tsang
22239deb90
Removed redundant try block
2017-03-22 14:01:04 +00:00
Ken Tsang
8e5266e89b
Refactor and fix auth errors
2017-03-22 10:54:15 +00:00
Ken Tsang
b81d789307
Add preview endpoint and tests
2017-03-22 10:11:31 +00:00
Ken Tsang
fbcea9c777
Refactored test for optionals
2017-03-22 10:10:06 +00:00
Ken Tsang
8d63f8d9d3
Refactored get template test
2017-03-22 10:10:06 +00:00