Commit Graph

2785 Commits

Author SHA1 Message Date
Leo Hemsted
e068f6815f Merge pull request #1007 from alphagov/version-fix
fix versions
2017-06-01 13:20:33 +01:00
Leo Hemsted
ab50a3557e fix versions 2017-06-01 13:18:56 +01:00
Leo Hemsted
3e47519045 Merge pull request #1006 from alphagov/revert-1001-revert-988-non-null-again
Revert "Revert "Remove nulls from sms_sender""
2017-06-01 13:14:03 +01:00
Rebecca Law
40aadf2748 Merge pull request #991 from alphagov/invite-service-to-schedule
Invite the service to schedule notifications from the API
2017-06-01 12:37:32 +01:00
Leo Hemsted
d33698216c Revert "Revert "Remove nulls from sms_sender"" 2017-06-01 11:00:26 +01:00
Imdad Ahad
0141e53c7a Merge pull request #1002 from alphagov/imdad-fix-use-python3-make-command
Use python3 when running migration-check script
2017-06-01 10:57:53 +01:00
minglis
94e0315715 Merge pull request #1004 from alphagov/firetext-inbound-sms
Firetext inbound sms
2017-06-01 10:28:53 +01:00
minglis
501506f849 Merge pull request #996 from alphagov/stop-reading-from-old-queues
Removed references to old queus
2017-06-01 09:43:12 +01:00
Leo Hemsted
309759690d Merge pull request #1003 from alphagov/fix-govuk-migration
manually set sms_sender when creating service
2017-06-01 09:43:04 +01:00
Martyn Inglis
a7fd624db5 Added simple logging endpoint for fire text inbound SMS calls
- logs post data
- OK to log all as not currently in use so no real user data expected.
2017-06-01 08:21:18 +01:00
Leo Hemsted
1530908228 manually set sms_sender when creating service
sqlalchemy default doesn't appear to work correctly when there is a
difference between the DB schema and the code (ie: during a migration)
in this case, lets just set sms_sender ourselves.

we can't write unit tests for this because this only happens when the
db is in an inconsistent state 😩
2017-05-31 17:31:06 +01:00
Martyn Inglis
8e3b20e51d Gone back to 1G as fails if less 2017-05-31 16:46:56 +01:00
Rebecca Law
e3baf71016 Update error message 2017-05-31 16:22:56 +01:00
Martyn Inglis
3c416d3631 Simple end point for fire text inbound SMS callbacks. 2017-05-31 16:15:25 +01:00
Martyn Inglis
502024b3bc Boost API to 1G from 256M 2017-05-31 15:56:56 +01:00
Imdad Ahad
726371269a Use python3 on jenkins otherwise SSL erorr occurs 2017-05-31 15:38:57 +01:00
minglis
5d75f2f871 Merge pull request #999 from alphagov/reduce-memory-footprint
Reduced memory footprint of the API apps.
2017-05-31 15:08:44 +01:00
minglis
033fe0f4dd Merge pull request #998 from alphagov/update-queues-script
Did some work around the delete queues script
2017-05-31 15:08:35 +01:00
Martyn Inglis
b98b97c4a2 Added a comment about delete queues 2017-05-31 15:06:21 +01:00
Leo Hemsted
2eb4fa6382 Merge pull request #1001 from alphagov/revert-988-non-null-again
Revert "Remove nulls from sms_sender"
2017-05-31 14:52:57 +01:00
Leo Hemsted
ea0ba8d87a Revert "Remove nulls from sms_sender" 2017-05-31 14:52:48 +01:00
Leo Hemsted
6c5affbebc Merge pull request #988 from alphagov/non-null-again
Remove nulls from sms_sender
2017-05-31 14:27:49 +01:00
Chris Hill-Scott
8952dc2ced Merge pull request #997 from alphagov/dont-validate-recipient-search
Don’t 500 when searching with bad email address
2017-05-31 12:39:37 +01:00
Martyn Inglis
25c8f71f2c Reduced memory footprint of the API apps.
Staging and prod now default to 768M of RAM, down from a 1G saves 512M per instance type
Preview down to 256M per app
2017-05-31 11:47:52 +01:00
Imdad Ahad
1c90c8be16 Merge pull request #993 from alphagov/imdad-poc-add-diff-migration-script
POC: Add a script to check if there are new migrations
2017-05-31 10:52:59 +01:00
Rebecca Law
566e56f888 Fix downgrade script 2017-05-31 10:35:27 +01:00
Martyn Inglis
68e15b57f5 Fixed pep8 2017-05-30 17:29:14 +01:00
Martyn Inglis
8f7afcdb16 Did some work around the delete queues script 2017-05-30 17:07:43 +01:00
Chris Hill-Scott
9ada8b2753 Don’t 500 when searching with bad email address
In the future we might want to validate email addresses before
attempting to search by them. But for a first pass we can just return
no results when a user types in something that isn’t an email address
or phone number.

It definitely better than returning a 500.
2017-05-30 14:50:48 +01:00
Leo Hemsted
de3b5a13a9 version number bump 2017-05-30 12:49:30 +01:00
Martyn Inglis
d74675b6d8 Removed references to old queus 2017-05-30 11:24:26 +01:00
Leo Hemsted
db4b3e371a remove null sms sender test
it's no longer possible for an sms_sender to be null
2017-05-30 10:47:52 +01:00
Leo Hemsted
012b2bf36c version number bump 2017-05-30 10:47:15 +01:00
Leo Hemsted
25011f09ef test no longer applicable as null sms_sender is an error now 2017-05-30 10:47:15 +01:00
Leo Hemsted
eb6edf06a3 add upgrade script to remove non-null values from the sender column 2017-05-30 10:47:15 +01:00
Leo Hemsted
58503c855a set sms_sender to be 'GOVUK' if not otherwise specified
this is a precursor to making the column non-nullable
2017-05-30 10:47:15 +01:00
minglis
f7e1ccea8b Merge pull request #987 from alphagov/redo-queue-visibitlity-timeout
Redo queue visibitlity timeout
2017-05-30 10:36:53 +01:00
Martyn Inglis
75c5e5e5d5 Merge branch 'master' into redo-queue-visibitlity-timeout
Conflicts:
	app/notifications/process_notifications.py
	app/v2/notifications/post_notifications.py
2017-05-30 10:18:18 +01:00
kentsanggds
c59746a4a7 Merge pull request #992 from alphagov/ken-refactor-service-schema
Refactor schema to remove redundant bits
2017-05-26 17:40:09 +01:00
Ken Tsang
112c673593 Removed a few lines from schema 2017-05-26 17:23:01 +01:00
Ken Tsang
18b8382d6e Refactor schema and improve tests 2017-05-26 17:17:15 +01:00
Imdad Ahad
a58e724d21 Add a script and make command to detect if there are any migration changes 2017-05-26 16:44:23 +01:00
Ken Tsang
56e9faab2e Refactor schema 2017-05-26 16:21:22 +01:00
Rebecca Law
1f6157eaf4 Migration script to add new permission type 2017-05-26 16:10:52 +01:00
Rebecca Law
b4c9901eb5 Allow for scheduled_for to be null in schema 2017-05-26 15:53:25 +01:00
Rebecca Law
3dc70b8c39 Check service.permissions for the existence of schedule_notifications if the notications is being created with a scheduled_for param. 2017-05-26 15:41:14 +01:00
kentsanggds
263adac805 Merge pull request #984 from alphagov/ken-update-api-service-permissions-handling
Ken update api service permissions handling
2017-05-26 14:39:27 +01:00
Imdad Ahad
6b27091edf Merge pull request #985 from alphagov/imdad-feat-search-normalised-notifications
Search notifications against normalised address
2017-05-26 12:39:18 +01:00
Ken Tsang
7aca3d8f43 Remove flags process in service_dao.create_service 2017-05-26 12:04:16 +01:00
Imdad Ahad
77b82305f4 Search normalised in get_notifications_for_service:
* Use dao method to search against normalised(recipient)
* Add filter to accept one or more statuses
2017-05-26 11:58:50 +01:00