Leo Hemsted
376ebc5025
Merge pull request #1650 from alphagov/fix
...
fix bug where we s3upload crashed if you didn't supply tags
2018-02-12 16:12:05 +00:00
Leo Hemsted
24fab13d8a
fix bug where we s3upload crashed if you didn't supply tags
2018-02-12 15:50:05 +00:00
Leo Hemsted
1ef6718918
Merge pull request #1646 from alphagov/add-tags-to-pdf-letters
...
upload letter pdfs with retention tag
2018-02-12 15:03:53 +00:00
Rebecca Law
fa8cd780b0
Make the errors in the process_sms_client_reponse more obvious by changing variable name.
...
Added a missing test if mmg sends a CID (or reference) that is not a UUID.
NB: All client specific tests are in test_callbacks.
2018-02-12 12:06:43 +00:00
Katie Smith
5eee0cf78b
Merge pull request #1639 from alphagov/create-new-organisation-model
...
Create new organisation model
2018-02-12 12:02:58 +00:00
Leo Hemsted
093e8083e0
upload letter pdfs with retention tag
...
so we can delete them automatically with s3's lifecycle policy
2018-02-09 17:13:37 +00:00
Chris Hill-Scott
daaa390990
Merge pull request #1645 from alphagov/email-auth-domain
...
Allow admin to specify domain for email auth links
2018-02-09 16:31:41 +00:00
Leo Hemsted
cc9bea17d1
Merge pull request #1619 from alphagov/pyup-update-notifications-python-client-4.7.1-to-4.7.2
...
Update notifications-python-client to 4.7.2
2018-02-09 14:58:59 +00:00
Leo Hemsted
90da7f53b4
Merge pull request #1636 from alphagov/get-rid-of-error-logging
...
downgrade lots of routine logging from error/exception to info
2018-02-09 14:58:46 +00:00
Leo Hemsted
3776551334
Merge pull request #1640 from alphagov/rc_update_celery_log_essage
...
Fixed typo in log call so that the name of the task is returned
2018-02-09 14:58:29 +00:00
Chris Hill-Scott
c0e2a478f6
Allow admin to specify domain for email auth links
...
Similar to https://github.com/alphagov/notifications-api/pull/1515
This lets the admin app pass in a domain to use for email auth links,
so that when it’s running on a different URL users who try to sign in
will get an email auth link for the domain they sign in on, not the
default admin domain for the environment in which the API is running.
2018-02-09 14:19:17 +00:00
Rebecca Law
690a9c3022
Merge pull request #1644 from alphagov/separate-worker-for-service-callbacks
...
Fix copy/paste error
2018-02-09 13:45:44 +00:00
Rebecca Law
780666163e
Fix copy/paste error
2018-02-09 13:33:34 +00:00
Rebecca Law
bb027a5d8c
Merge pull request #1643 from alphagov/separate-worker-for-service-callbacks
...
New worker for service-callbacks
2018-02-09 13:23:01 +00:00
Katie Smith
4a14225d04
Change Organisation DAO update method
...
- Changed the organisation DAO update method to only make 1 query
- Updated the update rest endpoint to not return an organisation when
the update is successful
2018-02-09 11:17:13 +00:00
Rebecca Law
e68604a600
Merge branch 'master' into remove-failed-as-a-status
2018-02-09 10:58:25 +00:00
Rebecca Law
f7ab04a8f8
When there are high volumes of emails being processed the SES callback task will trigger the service-callback task.
...
This PR creates a new worker to deal with the service-callback so that one event doesn't block the other.
2018-02-09 09:39:14 +00:00
Richard Chapman
d4b851b5b0
Removed the line altogther as it was not needed
2018-02-08 17:56:14 +00:00
Richard Chapman
bb15ed0d01
Commited by mistake - changed the log level back to INFO
2018-02-08 17:55:01 +00:00
Richard Chapman
632364633b
Fixed typo in call, should be self.name not Task.name.
...
Task.name always returned None.
2018-02-08 17:47:59 +00:00
Rebecca Law
8aa829e93a
Merge pull request #1622 from alphagov/reduce-logging
...
Reducing the logging for the life cycle of a notification
2018-02-08 16:57:21 +00:00
pyup-bot
7edaa8dc51
Update psycopg2 from 2.7.3.2 to 2.7.4
2018-02-08 15:37:12 +00:00
Katie Smith
269923ba28
Add Organisations endpoints
...
As part of this we also needed to add:
- schemas for validation
- serialize method for Organisation model
2018-02-08 15:22:21 +00:00
Katie Smith
6a79eedbce
Add Organisation DAO
2018-02-08 14:44:40 +00:00
Katie Smith
d40d520d2c
Add Organisation model and migration
...
Now that we have renamed the 'old' organisation model to email_branding,
we can create a new organisation model.
2018-02-08 14:39:25 +00:00
Leo Hemsted
08c35b3c72
downgrade lots of routine logging from error/exception to info
...
most of them are 400s for badly inputted phone numbers etc
2018-02-08 13:38:32 +00:00
Leo Hemsted
1326eae587
Merge pull request #1634 from alphagov/email-branding-remove-org-from-db
...
Email branding remove org from db
2018-02-08 13:25:41 +00:00
Leo Hemsted
37dda1d235
remove organisation from db
...
also make sure email branding is not nullable, because it shouldnt be
2018-02-08 11:26:10 +00:00
Leo Hemsted
7ac351d9b3
Merge pull request #1633 from alphagov/email-branding-remove-org
...
Email branding remove org
2018-02-08 10:59:11 +00:00
Rebecca Law
b2dfa59b1b
We are not handling the case of an unknown status code sent by the SMS provider. This PR attempts to fix that.
...
- If the SMS client sends a status code that we do not recognize raise a ClientException and set the notification status to technical-failure
- Simplified the code in process_client_response, using a simple map.
2018-02-07 17:49:15 +00:00
Leo Hemsted
ba20010f27
remove organisation from api
2018-02-07 11:39:33 +00:00
Richard Chapman
a5343fb837
Merge pull request #1628 from alphagov/rc_updated_to_use_utils_statsd
...
Removed statsd from the api and use the statsd in the utils library.
2018-02-07 09:07:16 +00:00
Sakis
80b3ca8a55
Merge pull request #1627 from alphagov/async-workers
...
Use eventlet workers for gunicorn
2018-02-06 16:38:12 +00:00
Athanasios Voutsadakis
dc772fab3b
Move config from command line args to gunicorn_config.py
2018-02-06 15:13:04 +00:00
Athanasios Voutsadakis
97e5594dfe
Merge branch 'master' into async-workers
2018-02-06 14:59:21 +00:00
Leo Hemsted
fb271ee4fb
Merge pull request #1630 from alphagov/fix-template-usage-page
...
exclude test keys from template usage page
2018-02-06 14:47:37 +00:00
Athanasios Voutsadakis
1e65c6721d
Merge branch 'master' into async-workers
2018-02-06 14:42:40 +00:00
Leo Hemsted
b9446b660d
exclude test keys from template usage page
...
they were not included in nightly task since that runs off
NotificationHistory, which doesn't include test keys. However, when you
load the page we top up the nightly stats with today's data from the
Notifications table, which *does* include test data.
2018-02-06 14:31:12 +00:00
Leo Hemsted
e8cb60eadc
Merge pull request #1629 from alphagov/email-branding-fix-route
...
ensure old route still returns json in same shape
2018-02-06 12:50:52 +00:00
Leo Hemsted
0c67a61604
ensure old route still returns json in same shape
2018-02-06 12:10:00 +00:00
Athanasios Voutsadakis
650455806d
Use - not _
2018-02-06 11:50:40 +00:00
Leo Hemsted
37a44ab3a9
Merge pull request #1624 from alphagov/email-branding-endpoints
...
Email branding endpoints
2018-02-06 11:41:36 +00:00
Athanasios Voutsadakis
9307f54d9a
Use eventlet workers for gunicorn
...
Cap their parallel connections to 1/4 of the default to play it safe
while we keep an eye on our resources utilisation
2018-02-06 11:24:01 +00:00
Leo Hemsted
2f79da8702
create, edit and use email branding instead of organisation
...
notable things that have been kept until migration is complete:
* passing in `organisation` to update_service will update email branding
* both `/email-branding` and `/organisation` hit the same code
* service endpoints still return organisation as well as email branding
2018-02-06 11:23:34 +00:00
Leo Hemsted
cea52929d3
Merge pull request #1621 from alphagov/email-branding-mapping-table
...
Email branding mapping table
2018-02-06 09:56:31 +00:00
Richard Chapman
d855b4e4ec
Removed statsd from the api and use the statsd in the utils library.
...
The statsd code was added to the utils library a while ago, uses the
statsd from the util library and therefore consolidates the code into
once place.
2018-02-06 09:52:15 +00:00
Richard Chapman
8696f8995d
Merge pull request #1610 from alphagov/pyup-update-boto3-1.5.21-to-1.5.22
...
Update boto3 to 1.5.22
2018-02-05 16:31:48 +00:00
Richard Chapman
3925736f5c
Merge pull request #1612 from alphagov/pyup-update-awscli-1.14.31-to-1.14.32
...
Update awscli to 1.14.32
2018-02-05 16:31:30 +00:00
Richard Chapman
1f05bba696
Merge pull request #1623 from alphagov/rc_update_utils_add_logs_to_celery
...
Updated utils to the latest version and add celery logging
2018-02-05 15:47:33 +00:00
Richard Chapman
2d670e8cf0
Updated utils to the latest version. This version of utils has less
...
logging at info level and as such no longer prints out the celery task
timing which are found to be use to find out if a tasks has been called
but also the timing for the task. Added an extra timing message for
celery tasks so that it can be determined if the these are less frequent
than the API calls and provide more useful information
2018-02-05 14:58:02 +00:00