Ken Tsang
01830b7e59
Push letter job to research queue in research mode
2017-08-30 16:04:10 +01:00
Ken Tsang
ff860ec242
403 when creating a letter job in trial mode
2017-08-30 16:04:10 +01:00
Ken Tsang
7e70b44113
Error in task when letter template and in trial mode
2017-08-30 16:04:10 +01:00
Ken Tsang
41a71c703b
Refactor test
2017-08-30 16:04:10 +01:00
Ken Tsang
8f82642422
Prevent v2 notifications POST when in trial mode
2017-08-30 16:04:10 +01:00
Katie Smith
49a6bfc06b
Send '0', not 'null', to perf platform if no notifications are sent
2017-08-30 16:02:30 +01:00
Chris Hill-Scott
b346d5d173
Merge pull request #1219 from alphagov/international-sms-notify
...
Allow Notify service to send international sms
2017-08-30 15:53:19 +01:00
Chris Hill-Scott
2244ae8ccd
Merge pull request #1218 from alphagov/pyup-update-flask-migrate-2.1.0-to-2.1.1
...
Update flask-migrate to 2.1.1
2017-08-30 15:53:03 +01:00
Chris Hill-Scott
9716172164
Merge pull request #1217 from alphagov/pyup-update-psycopg2-2.7.3-to-2.7.3.1
...
Update psycopg2 to 2.7.3.1
2017-08-30 15:52:55 +01:00
Chris Hill-Scott
6fc645cd55
Merge pull request #1220 from alphagov/pyup-update-boto3-1.4.6-to-1.4.7
...
Update boto3 to 1.4.7
2017-08-30 15:52:48 +01:00
Imdad Ahad
af54d98faa
Remove unused imports
2017-08-30 14:40:54 +01:00
Imdad Ahad
e1ef0e85c6
Remove monthly usage dao methods
2017-08-30 14:40:54 +01:00
Imdad Ahad
994e797b26
Replace 'sms' with SMS_TYPE
2017-08-30 14:40:29 +01:00
Imdad Ahad
c92b72da6e
Remove yearly billing data dao methods
2017-08-30 14:40:29 +01:00
Katie Smith
a1a5fdedb1
Send results of processing-time query to performance platform
2017-08-30 14:40:10 +01:00
Katie Smith
132d65bc75
Add query to get processing time stats for performance platform
...
We are only interested in API notifications, not including test
messages. Letters are not included.
2017-08-30 14:40:10 +01:00
Katie Smith
9df498106f
Add one_off argument to create_notification test function
...
One off messages have no API key or job ID. If one_off is set to False,
an API key will automatically be added.
2017-08-30 14:40:10 +01:00
Imdad Ahad
9478af0941
Remove get yearly usage endpoint
2017-08-30 14:37:27 +01:00
Chris Hill-Scott
26f50af6e9
Let whitelist and user have int. phone numbers
...
On the frontend, we’re letting users register with international phone
numbers. So we shouldn’t block users from doing this on the API side.
Same thing for the whitelist, where we’re also allowing international
phone numbers now.
2017-08-30 10:55:18 +01:00
Leo Hemsted
5c25b12b0f
Merge pull request #1201 from alphagov/parallel-db-tests
...
run tests in multiple threads at once
2017-08-30 09:42:39 +01:00
pyup-bot
04bf566614
Update boto3 from 1.4.6 to 1.4.7
2017-08-29 21:31:56 +01:00
Leo Hemsted
2fefe8a957
use sqlalchemy hooks rather than pyscopg2
...
seems to play nicer with docker?
2017-08-29 18:03:15 +01:00
Leo Hemsted
3d4dbaa632
run tests in multiple threads at once
...
previously we didn't do this because the tests all used the same DB
(test_notifications_api), however @minglis shared a snippet that simply
creates one test db per thread.
2017-08-29 17:46:11 +01:00
Chris Hill-Scott
caea65165c
Allow Notify service to send international sms
...
Right now Notify restricts you to registering with a UK mobile number.
This is because when we built the user registration stuff we couldn’t
send to international mobiles.
However we can send to international mobile numbers, and it’s totally
reasonable to expect employees of the UK government to be working
abroad, and have a foreign mobile phone – we’ve heard from one such
user.
In order for users of Notify to register with an international phone
number, the Notify service needs to have the `international_sms`
permission set. Which this service does, as a data migration.
2017-08-29 15:18:49 +01:00
Chris Hill-Scott
4f0443041d
Merge pull request #1213 from alphagov/remove-spec
...
Remove Swagger specification
2017-08-29 14:19:31 +01:00
Leo Hemsted
cf2d803db1
Merge pull request #1205 from alphagov/perf-stats
...
Perf stats refactor
2017-08-29 10:44:09 +01:00
Chris Hill-Scott
d0be79cc4c
Remove Swagger specification
...
This was only ever a spike into what it might look like to document
Notify’s API with Swagger (see
7c3d25a87a ).
It’s no longer updated, and only talks about version 1 of the public
API.
Keeping it around now is just a liability, and gives us additional Pyup
upgrades to deal with.
2017-08-29 10:32:37 +01:00
Chris Hill-Scott
8642ee9f53
Merge pull request #1216 from alphagov/pyup-update-moto-1.0.1-to-1.1.1
...
Update moto to 1.1.1
2017-08-29 09:45:37 +01:00
pyup-bot
14cf3a58a2
Update flask-migrate from 2.1.0 to 2.1.1
2017-08-28 23:18:03 +01:00
pyup-bot
fe30942889
Update psycopg2 from 2.7.3 to 2.7.3.1
2017-08-26 14:56:56 +01:00
pyup-bot
ace28f2e85
Update moto from 1.0.1 to 1.1.1
2017-08-26 08:17:55 +01:00
Leo Hemsted
741210d5b4
Merge pull request #1214 from alphagov/letters-v1
...
make sure letters are handled properly by the v1 api
2017-08-25 17:00:55 +01:00
Leo Hemsted
c863b33c8d
make sure letters are handled properly by the v1 api
2017-08-25 16:47:17 +01:00
Leo Hemsted
23fdbe2897
Merge pull request #1212 from alphagov/logging
...
Letter fixes and multi-process logging
2017-08-25 15:02:34 +01:00
Leo Hemsted
4e7c19a98f
update utils to v20 - log from multiple app.log*.json files
...
the rotating file handler puts the date on the end, so those old files won't be pushed
2017-08-25 14:38:04 +01:00
kentsanggds
549601a6df
Merge pull request #1200 from alphagov/ken-refactor-inbound_numbers
...
Refactor inbound numbers
2017-08-25 13:27:16 +01:00
Chris Hill-Scott
6848a50ae1
Bump utils to 19.0.4
...
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/210
- [ ] https://github.com/alphagov/notifications-utils/pull/212
2017-08-25 09:36:43 +01:00
Chris Hill-Scott
73d1154661
Merge pull request #1210 from alphagov/nbsp-fix
...
Bump utils to 19.0.2
2017-08-24 17:40:31 +01:00
Chris Hill-Scott
ce2c157f8f
Bump utils to 19.0.2
...
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/211
2017-08-24 17:11:46 +01:00
Leo Hemsted
e85b621cbc
make perf platform client handle more stuff sensibly
...
specifically, all of the performance platform specific data layout now
happens in performance_platform_client.py - stuff like setting the
_timestamp, period etc, and the perf platform-specific nomenclature is
all handled there.
2017-08-24 17:10:42 +01:00
Rebecca Law
f9ee8bba91
Merge pull request #1209 from alphagov/remove-unused-endpoint
...
Removed unused endpoint and dao methods.
2017-08-24 16:32:37 +01:00
Rebecca Law
717c0510a3
Merge pull request #1202 from alphagov/v1-send-letter-error-msg
...
Added a proper error response if the notification type is not supported.
2017-08-24 16:31:21 +01:00
Rebecca Law
17f62723fa
Removed unused endpoint and dao methods.
2017-08-24 16:09:48 +01:00
kentsanggds
aeb817614f
Merge pull request #1204 from alphagov/ken-fix-scheduled-letter-job
...
Made celery task arg a tuple
2017-08-24 15:15:16 +01:00
Ken Tsang
1b35731fb2
Refactor code
...
- updated dao_get_letter_jobs_by_status to dao_get_letter_job_ids_by_status to return array of strings
2017-08-24 11:57:46 +01:00
Leo Hemsted
7a6c6c4855
Merge pull request #1208 from alphagov/pyup-ignore
...
make pyup ignore flask-bcrypt
2017-08-24 11:40:42 +01:00
Leo Hemsted
336ee69f02
make pyup ignore flask-bcrypt
...
pyup is trying to upgrade flask-bcrypt, which causes errors in all subsequent PR builds for #reasons. Lets make pyup ignore flask-bcrypt until we figure out why the upgrade doesn't work
2017-08-24 11:16:21 +01:00
Leo Hemsted
412c87cfc8
pycodestyle
2017-08-24 10:52:47 +01:00
Leo Hemsted
1f93fc889c
add new cf performance-platform service to manifest
2017-08-23 18:21:54 +01:00
Leo Hemsted
bd2682b521
add new performance-platform section to cf config
...
it's a new cf-service we've got to create, that contains endpoints
and the bearer tokens for them.
2017-08-23 18:14:35 +01:00