Commit Graph

358 Commits

Author SHA1 Message Date
Chris Hill-Scott
25c9b04904 Freeze requirements 2019-02-08 15:25:31 +00:00
Chris Hill-Scott
cd70355db8 Display postage everywhere we display a letter
To avoid the problem of having confusing defaults, the postage is now
set explicitly on every template.

Putting the postage ‘inside’ the letter template makes the interaction
for changing it consistent with how other parts of the template are
added.

Plus everyone loves skeumorphism.
2019-02-06 14:37:16 +00:00
Chris Hill-Scott
6df543cdc2 Bump utils to 30.7.5
Brings in:
- [x] https://github.com/alphagov/notifications-utils/pull/572
2019-02-01 09:37:02 +00:00
Chris Hill-Scott
05622dd4b6 Freeze requirements 2019-01-10 13:40:53 +00:00
Leo Hemsted
c379239a9e bump utils
brings in redis 3
2019-01-08 15:00:42 +00:00
Leo Hemsted
addb54b84f bump utils
brings in alphagov/notifications-utils#563
2019-01-04 16:21:12 +00:00
Chris Hill-Scott
5298c20890 Bump utils to 30.7.2 2019-01-02 15:45:21 +00:00
Chris Hill-Scott
e88c23f233 Freeze requirements 2019-01-02 11:55:47 +00:00
Chris Hill-Scott
23d00aacfd Remove WhiteNoise
We’re now serving assets from S3 when running on PaaS. So we’ll set
the appropriate caching headers there or in Cloudfront. This means that
the app no longer needs to serve cache headers, which is what we were
using WhiteNoise for.

This commits removes WhiteNoise in favour of letting Flask handle the
serving of static assets.
2018-12-21 10:44:20 +00:00
pyup-bot
c14cf078d6 Update pyexcel-io from 0.5.10 to 0.5.11 2018-12-14 13:27:32 +00:00
Chris Hill-Scott
5c26be66d9 Freeze requirements 2018-12-14 13:11:31 +00:00
Alexey Bezhan
65f0416b77 Update utils to 30.7.1 to silence 'Header missing' warnings
Brings in changes from https://github.com/alphagov/notifications-utils/pull/553
2018-11-27 15:40:05 +00:00
Chris Hill-Scott
e5f22a3fc2 Merge pull request #2520 from alphagov/pyup-update-whitenoise-4.1.1-to-4.1.2
Update whitenoise to 4.1.2
2018-11-27 10:22:56 +00:00
Chris Hill-Scott
d03b3b3d67 Merge pull request #2537 from alphagov/pyup-update-pyexcel-ods3-0.5.2-to-0.5.3
Update pyexcel-ods3 to 0.5.3
2018-11-27 10:15:26 +00:00
Chris Hill-Scott
9a589ff98b Merge branch 'master' into pyup-update-whitenoise-4.1.1-to-4.1.2 2018-11-27 10:09:31 +00:00
Chris Hill-Scott
ab9273b215 Freeze requirements 2018-11-27 10:08:26 +00:00
Chris Hill-Scott
98822638d7 Freeze requirements 2018-11-27 09:56:57 +00:00
Katie Smith
c48f54aba4 Bump notifications-utils to 30.7.0
Bumped the notifications-utils version. The `gmt_timezones` function in
this repo and the `utc_string_to_aware_gmt_datetime` in
notifications-utils are the same, so have updated the code to always use
the version in utils.
2018-11-26 14:43:42 +00:00
pyup-bot
d6540211fe Update whitenoise from 4.1.1 to 4.1.2 2018-11-20 16:33:52 +00:00
Leo Hemsted
3551d36f32 bump reqs 2018-11-14 13:35:24 +00:00
Chris Hill-Scott
cdb5b47c4d Post to the API when moving folders and templates
This commit adds logic to:
- take the list of selected folders and templates
- split it into two lists (of folders and templates)
- `POST` that data to the API, to effect the movement of said folders
  and templates

I’ve tried to architect it in such a way that we can easily add more
template ‘operations’ in the future, as we add more forms to the choose
template page.
2018-11-12 08:37:46 +00:00
Chris Hill-Scott
2d3c1b2ead Freeze requirements 2018-10-29 16:40:29 +00:00
Chris Hill-Scott
14b8ca19db Freeze requirements 2018-10-29 16:06:46 +00:00
Katie Smith
4927da62fb Update notifications-utils to 30.5.6
This brings in the change to email validation which removes obscure white space from email addresses.
2018-10-29 10:21:04 +00:00
Tom Byers
e9afad80ed Bump utils to 3.5.5 2018-10-18 16:59:48 +01:00
Chris Hill-Scott
e36b946064 Bump utils to 30.5.3 2018-10-05 15:27:57 +01:00
Chris Hill-Scott
52cc41b8a8 Bump utils to 30.5.2 2018-10-05 13:32:11 +01:00
Leo Hemsted
efab189ae8 update jobs to take into account first class 2018-10-01 11:07:33 +01:00
Tom Byers
943a400c72 Bump utils to 30.3.1
Brings in stripping of the line separator
character from emails.

https://github.com/alphagov/notifications-utils/pull/531
2018-09-25 16:30:29 +01:00
Chris Hill-Scott
9e91e55d88 Freeze requirements 2018-09-25 12:21:13 +01:00
Chris Hill-Scott
073aaa0db7 Freeze requirements 2018-09-24 14:54:35 +01:00
Chris Hill-Scott
80d33b9855 Freeze requirements 2018-09-24 13:31:56 +01:00
Alexey Bezhan
86c2ec2af8 Stop gunicorn from terminating eventlet workers on timeout
According to gunicorn `timeout` docs, async workers shouldn't be
terminated after the request time exceeds the specified timeout
as long as the worker process is still communicating.

This makes sense for async workers since they generally don't
block other requests from processing.

This is the behaviour we've seen on notifications-api - requests
can sometimes take much longer than the default 30 second timeout
and still succeed.

For the admin app however gunicorn has been shutting down workers
after 30s with `[CRITICAL] WORKER TIMEOUT`. This results in a 502
response from the admin app. Most of these requests fail because
the underlying requests to the api is taking longer than 30 seconds,
however we haven't seen this in the logs originally since unlike
the admin app, api requests succeed (even though their response is
no longer needed).

This seems like a bug in newer versions of gunicorn, downgrading
it to the version that the api is currently using solves the problem
by allowing admin requests to take longer than 30 seconds.

(Tested by trying requests with a `time.sleep(30)` locally).

It's not clear what exactly the bug in gunicorn is, but this also
potentially unblocks eventlet workers and allows them to process
more than one request at a time.
2018-09-18 11:59:48 +01:00
pyup-bot
ad16448d5a Update notifications-python-client from 5.0.1 to 5.1.0 2018-09-12 10:25:44 +01:00
Athanasios Voutsadakis
8d32600716 Bump python client version to 5.0.1 2018-09-04 14:14:08 +01:00
Chris Hill-Scott
17f5098cb1 Update pyexcel to 0.5.9.1
0.5.9 seems to have disappeared and is causing tests to fail on Jenkins.

https://github.com/pyexcel/pyexcel/compare/v0.5.9...v0.5.9.1
2018-09-03 13:53:37 +01:00
Chris Hill-Scott
9d54a360fe Merge branch 'master' into pyup-update-pyexcel-io-0.5.9-to-0.5.9.1 2018-09-03 10:29:07 +01:00
Chris Hill-Scott
a5840e2173 Merge pull request #2278 from alphagov/pyup-update-pyexcel-xls-0.5.7-to-0.5.8
Update pyexcel-xls to 0.5.8
2018-09-03 10:23:07 +01:00
Chris Hill-Scott
c000fbc8ae Freeze requirements 2018-09-03 10:14:53 +01:00
Chris Hill-Scott
a13ea0f5f6 Freeze requirements 2018-09-03 10:13:51 +01:00
Chris Hill-Scott
4fc585201a Merge branch 'master' into pyup-update-pyexcel-0.5.8-to-0.5.9 2018-09-03 09:52:01 +01:00
Chris Hill-Scott
810de02307 Freeze requirements 2018-08-30 17:10:59 +01:00
Chris Hill-Scott
2686f4f0e2 Freeze requirements 2018-08-30 17:08:35 +01:00
Chris Hill-Scott
6c8345045f Merge pull request #2245 from alphagov/bump-utils-long-letters
Bump utils to show error message for long letters
2018-08-22 09:41:28 +01:00
Chris Hill-Scott
270a563fea Bump utils to show error message for long letters
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/518
2018-08-22 09:32:34 +01:00
Chris Hill-Scott
9e5ce87f58 Update eventlet from 0.22.1 to 0.24.1 2018-08-20 16:12:27 +01:00
Chris Hill-Scott
b8f41d5204 Merge pull request #2218 from alphagov/pyup-update-whitenoise-3.3.1-to-4.0
Update whitenoise to 4.0
2018-08-20 16:09:39 +01:00
Chris Hill-Scott
09aacbba0d Freeze requirements 2018-08-20 11:25:31 +01:00
Chris Hill-Scott
a62308b10f Freeze requirements 2018-08-20 10:29:30 +01:00
Katie Smith
cdd828da20 Bump utils to version 30.1.0
Bumped notifications-utils to bring in the new value for
`SMS_CHAR_COUNT_LIMIT`
2018-08-16 16:56:32 +01:00