Ken Tsang
b40cab0c5d
Refactored models to make const consistent
2017-10-25 15:38:58 +01:00
Rebecca Law
515a69e8d9
Merge pull request #1339 from alphagov/pyup-update-psycopg2-2.7.3.1-to-2.7.3.2
...
Update psycopg2 to 2.7.3.2
2017-10-25 15:23:45 +01:00
Rebecca Law
fbc0b69685
Merge pull request #1336 from alphagov/pyup-update-marshmallow-sqlalchemy-0.13.1-to-0.13.2
...
Update marshmallow-sqlalchemy to 0.13.2
2017-10-25 15:22:31 +01:00
Rebecca Law
bddbb4bfb8
Merge pull request #1334 from alphagov/pyup-update-notifications-python-client-4.4.0-to-4.5.0
...
Update notifications-python-client to 4.5.0
2017-10-25 15:21:53 +01:00
venusbb
e8f659837a
remove unused codes
2017-10-25 14:52:35 +01:00
Rebecca Law
d4678bc452
Merge pull request #1341 from alphagov/inbound-number-is-the-default-when-only-one
...
Do not create a new SMS sender when allocating an inbound number
2017-10-25 14:02:04 +01:00
Rebecca Law
5ed8f17885
Merge pull request #1338 from alphagov/use-default-sms-not-inbound
...
Use default sms not inbound
2017-10-25 13:39:18 +01:00
Rebecca Law
a8adf4d7d7
This PR is to retain current behaviour when we allocate an inbound number for a service.
...
When a service is allocated an inbound number and they only have one SMS sender, then update that SMS sender to the inbound number.
That way they will not have more than one SMS sender and will not have to choose to use either one.
2017-10-25 11:58:54 +01:00
venusbb
ae6b32d8e2
Merge branch 'master' of https://github.com/alphagov/notifications-api into vb-free-sms-limit-history
2017-10-25 11:39:30 +01:00
venusbb
8ad98f2806
create entry when creating a new service
2017-10-25 11:35:13 +01:00
Ken Tsang
ab55650871
Reordered imports
2017-10-25 10:48:35 +01:00
Ken Tsang
5da119f824
Update letter noti status based on dvla response file
2017-10-25 10:48:35 +01:00
Ken Tsang
98d5473788
Update test to to test letter status received
2017-10-25 10:48:35 +01:00
Ken Tsang
8bdc999818
Update notification schema to include received letter status
2017-10-25 10:48:35 +01:00
Ken Tsang
a2b42194cd
Add letter status received to data model
...
- in order to reduce the number of statuses in the database the letter status `received` will be mapped to `delivered` internally
2017-10-25 10:48:35 +01:00
Rebecca Law
d1561903ed
[WIP]
...
Removing marshmallow from the get_services endpoint should give us better performance.
2017-10-25 10:40:02 +01:00
pyup-bot
a0de1d0698
Update psycopg2 from 2.7.3.1 to 2.7.3.2
2017-10-24 17:32:05 +01:00
Richard Chapman
524f688bdd
Merge branch 'add-task-for-ses-results-queue' of https://github.com/alphagov/notifications-api into add-task-for-ses-results-queue
2017-10-24 17:13:45 +01:00
Richard Chapman
e293b20848
Retry process_ses_results if it fails
...
If the SES task fails retry every 5 mins for an hour.
- Updated the process_ses_results task to retry
- Added tests to check for retry
2017-10-24 16:58:39 +01:00
kentsanggds
adfc3b0801
Merge pull request #1337 from alphagov/ken-add-stats-test-for-bst
...
Add stats test for BST and fix existing stat test
2017-10-24 16:37:29 +01:00
venusbb
15e3b4171b
fixed object persistence problem
2017-10-24 16:10:51 +01:00
Richard Chapman
b405f100c2
Removed the HTTP error and arguments from notification_ses_callback.py
...
In preparation for moving the SNS notification to an SES queue remove
the HTTP errors codes and arguments as the method will now be run by
a celery task. Also made the callback http method return more generic
codes as this will be removed in the longer term.
- Removed errors and arguments returned from process_ses_response
- Updated tests
2017-10-24 15:39:35 +01:00
Athanasios Voutsadakis
368da49469
Temporary test fix
...
This should be removed when the SES endpoint is removed
2017-10-24 15:11:07 +01:00
Athanasios Voutsadakis
5abd2a527a
Fix tests
2017-10-24 15:11:07 +01:00
Athanasios Voutsadakis
7173fb2d70
Update tests
2017-10-24 15:11:07 +01:00
Athanasios Voutsadakis
ea26a30848
We no longer have guaranteed access to a request context
2017-10-24 15:11:07 +01:00
Athanasios Voutsadakis
70a627ff21
Allow for both an endpoint callback and SQS consumption
2017-10-24 15:11:07 +01:00
Rebecca Law
f519c2a4d9
fix import
2017-10-24 14:53:02 +01:00
Chris Hill-Scott
02b2ada174
Merge pull request #1331 from alphagov/better-missing-personalisation-error
...
Make missing personalisation error consistent
2017-10-24 14:46:15 +01:00
venusbb
b9b0814853
Merge branch 'master' of https://github.com/alphagov/notifications-api into vb-free-sms-limit-history
2017-10-24 14:44:32 +01:00
Richard Chapman
bdc1171331
Merge branch 'master' of https://github.com/alphagov/notifications-api
2017-10-24 14:29:25 +01:00
Rebecca Law
8d6c38e1fe
Now that we allow multiple SMS senders for a service, update the sender for SMS to be the default SMS sender, regardless if it is inbound number or not
2017-10-24 13:37:17 +01:00
venusbb
59dd343254
Added free_sms_fragment_limit model, schema, dao and Rest
2017-10-24 13:23:24 +01:00
Ken Tsang
9bdb8f10ce
Add stats test for bst and fix existing stat test
...
- Existing test was failing as the expected results did not match when retrieving results between 11pm and 12am during bst, so time was fixed to when it wasn't affected
- New test is added to check results during the bst hour
2017-10-24 12:57:15 +01:00
Rebecca Law
ce13e62d84
Merge pull request #1332 from alphagov/improve-platform-admin
...
Improve platform admin
2017-10-24 10:25:54 +01:00
pyup-bot
2e43044a0f
Update marshmallow-sqlalchemy from 0.13.1 to 0.13.2
2017-10-24 01:17:28 +01:00
Athanasios Voutsadakis
6e6c3c050b
Temporary test fix
...
This should be removed when the SES endpoint is removed
2017-10-23 17:54:46 +01:00
Athanasios Voutsadakis
fe5756a1aa
Fix tests
2017-10-23 17:54:45 +01:00
Athanasios Voutsadakis
61b665c908
Update tests
2017-10-23 17:54:45 +01:00
Athanasios Voutsadakis
7611d473b4
We no longer have guaranteed access to a request context
2017-10-23 17:54:45 +01:00
Athanasios Voutsadakis
062084dcc4
Allow for both an endpoint callback and SQS consumption
2017-10-23 17:54:45 +01:00
pyup-bot
b16c855f56
Update notifications-python-client from 4.4.0 to 4.5.0
2017-10-23 17:48:27 +01:00
Rebecca Law
5ce44c07f5
Fix unit tests.
2017-10-23 16:07:10 +01:00
Rebecca Law
f1f2e5cd90
Fix the results to be returned in the same format that the admin app expects.
2017-10-23 15:06:11 +01:00
Chris Hill-Scott
5b3e77ba87
Make missing personalisation error consistent
...
In other places the text we use for this error message is "Missing personalisation: name, date, thing". See:
- 72b108b694/app/template/rest.py (L125)
- 717c0510a3/app/notifications/rest.py (L206)
- 05a179c6ef/app/v2/template/post_template.py (L38)
For some reason this part of the codebase says "Template missing personalisation: …". This is inconsistent, and also confusing because it’s the API call that’s missing the personalisation, not the template itself.
This commit changes the error message to be consistent with the majority of the codebase, which uses the less confusing wording.
2017-10-23 14:41:49 +01:00
Chris Hill-Scott
c9a7ee991e
Merge pull request #1328 from alphagov/international-default
...
Make international text messaging on by default for new services
2017-10-23 14:03:16 +01:00
Rebecca Law
bfb8528ea9
The /platform-admin takes a long time, probably because the marshmallow schema used joins to the service table to return all the service data and is inefficient.
...
The query itself has not been improved much at all but by not using a marshmallow schema I hope to get the performance gain I am looking for.
2017-10-23 10:58:06 +01:00
Sakis
f6cdfdb640
Merge pull request #1330 from alphagov/temporary-syslog-drain
...
Add syslog drain service to preview and staging
2017-10-20 14:52:02 +01:00
Katie Smith
3072c66d5f
Merge pull request #1329 from alphagov/delete-unused-celery-tasks
...
Remove unused Celery tasks
2017-10-20 14:50:04 +01:00
Rebecca Law
4675b91763
Merge pull request #1325 from alphagov/add-update-multiple-sms-sender
...
Add update multiple SMS senders for a service
2017-10-20 14:06:53 +01:00