Commit Graph

196 Commits

Author SHA1 Message Date
pyup-bot
5e7d3b1d07 Update eventlet from 0.28.0 to 0.29.1 2020-10-26 13:53:04 +00:00
pyup-bot
bd2f6e7cd1 Update humanize from 3.0.1 to 3.1.0 2020-10-26 13:53:03 +00:00
David McDonald
5ed480acf9 Upgrade pyexcel-xls version
version 0.6.0 was accidently removed from pypi, see
https://github.com/pyexcel/pyexcel-xls/issues/40. the solution is to
upgrade to 0.6.1
2020-10-23 10:29:12 +01:00
pyup-bot
4d9832de37 Update pyexcel-io from 0.6.2 to 0.6.3 2020-10-19 14:53:02 +01:00
Chris Hill-Scott
ba38c91c11 Merge pull request #3678 from alphagov/pyup-scheduled-update-2020-10-12
Scheduled weekly dependency update for week 41
2020-10-16 11:45:20 +01:00
Chris Hill-Scott
8ff9ec6d97 Replace generated content with proper heading
Brings in https://github.com/alphagov/notifications-utils/pull/797 but
adapts the CSS so nothing changes visually
2020-10-12 15:55:30 +01:00
pyup-bot
d99c913a93 Update pyexcel-ods3 from 0.5.3 to 0.6.0 2020-10-12 14:53:07 +01:00
pyup-bot
4426ecdd40 Update pyexcel-xlsx from 0.5.8 to 0.6.0 2020-10-12 14:53:06 +01:00
pyup-bot
4178f38f00 Update pyexcel-xls from 0.5.9 to 0.6.0 2020-10-12 14:53:05 +01:00
pyup-bot
651629d31a Update pyexcel-io from 0.5.20 to 0.6.2 2020-10-12 14:53:04 +01:00
pyup-bot
b2bf69782c Update pyexcel from 0.6.4 to 0.6.5 2020-10-12 14:53:03 +01:00
pyup-bot
671877322b Update humanize from 2.6.0 to 3.0.1 2020-10-08 15:18:02 +01:00
pyup-bot
3dd7627316 Update eventlet from 0.27.0 to 0.28.0 2020-09-30 12:41:19 +01:00
Chris Hill-Scott
08a71cd297 Bump utils to 42.2.1
Changes: https://github.com/alphagov/notifications-utils/compare/42.2.0...42.2.1
2020-09-29 14:14:40 +01:00
Chris Hill-Scott
c763d3a44d Bump utils to 42.2.0
Increases CSV row limit from 50,000 to 100,000

Changes: https://github.com/alphagov/notifications-utils/compare/41.3.0...42.2.0
2020-09-25 18:16:17 +01:00
Chris Hill-Scott
78fcf8bf35 Merge pull request #3613 from alphagov/show-international-immediately
Show international postage as soon as address is entered
2020-09-09 09:59:52 +01:00
Chris Hill-Scott
cd7260dd80 Show international postage as soon as address is entered
At the moment we don’t check whether a one-off letter is international
until the user’s clicked send. It’s more accurate to show that the
letter will be sent internationally as soon as we know the address.

Depends on:
- [ ] https://github.com/alphagov/notifications-utils/pull/786
2020-09-09 09:20:56 +01:00
pyup-bot
2fc8ce5fa0 Update eventlet from 0.26.1 to 0.27.0 2020-09-07 14:54:02 +01:00
Chris Hill-Scott
0459e26be9 Show address line 7 not postcode in example spreadsheet
Since the letter preview will now show address line 7, the example
spreadsheet we give should match.
2020-09-07 12:00:27 +01:00
pyup-bot
ec5a1cff12 Update shapely from 1.7.0 to 1.7.1 2020-08-31 14:54:04 +01:00
pyup-bot
96e2293d4d Update pyexcel-xls from 0.5.8 to 0.5.9 2020-08-31 14:54:03 +01:00
pyup-bot
7e898827d6 Update pyexcel from 0.6.3 to 0.6.4 2020-08-31 14:54:02 +01:00
pyup-bot
e3a0aa2798 Update humanize from 2.5.0 to 2.6.0 2020-08-17 14:53:02 +01:00
David McDonald
e95908a04b Bump utils to bring in accessibility fix 2020-08-14 16:16:13 +01:00
Chris Hill-Scott
969e7a6dbd Show how a broadcast will overspill selected area
Broadcasting is not a precise technology, because:
- cell towers are directional
- their range varies depending on whether they are 2, 3, 4, or 5G
  (the higher the bandwidth the shorter the range)
- in urban areas the towers are more densely packed, so a phone is
  likely to have a greater choice of tower to connect to, and will
  favour a closer one (which has a stronger signal)
- topography and even weather can affect the range of a tower

So it’s good for us to visually indicate that the broadcast is not as
precise as the boundaries of the area, because it gives the person
sending the message an indication of how the technology works.

At the same time we have a restriction on the number of polygons we
think and area can have, so we’ve done some work to make versions of
polygons which are simplified and buffered (see
https://github.com/alphagov/notifications-utils/pull/769 for context).

Serendipitously, the simplified and buffered polygons are larger and
smoother than the detailed polygons we’ve got from the GeoJSON files. So
they naturally give the impression of covering an area which is wider
and less precise.

So this commit takes those simple polygons and uses them to render the
blue fill. This makes the blue fill extend outside the black stroke,
which is still using the detailed polygons direct from the GeoJSON.
2020-08-13 11:20:49 +01:00
Toby Lorne
4ba157ae8a deps: bump notifications-utils to 41
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
2020-08-12 16:11:38 +01:00
pyup-bot
7eefa1f2ad Update gds-metrics from 0.2.2 to 0.2.4 2020-08-03 14:53:16 +01:00
pyup-bot
9ff4adda0f Update notifications-python-client from 5.6.0 to 5.7.0 2020-08-03 14:53:15 +01:00
pyup-bot
6da970fdca Update pyexcel from 0.6.2 to 0.6.3 2020-08-03 14:53:15 +01:00
Katie Smith
a1b9644290 Bump eventlet
dnspython had been changed from 1.16.0 to 2.0.0 in a previous commit,
but this was not compatible with eventlet 0.25.2. This bumps eventlet to
a later version, which has the effect of downgrading dnspython again.
2020-07-31 10:38:44 +01:00
Katie Smith
0304edd7a2 Bump utils to 40.6.0
This brings in validation for invalid characters in address lines.
2020-07-31 08:51:07 +01:00
David McDonald
4ee15c94c4 Bump gds metrics to 0.2.2 to bring in bug fix
https://github.com/alphagov/gds_metrics_python/blob/master/CHANGELOG.md#021

This will mean that if an exception is thrown in any `before_request`
functions that run before the gds metrics `before_request` function,
then we will no longer throw an uncaught exception.

Note, this could still be the case (and has been seen in production) as
`init_app(application)` in `create_app` in `init.py` can indeed throw
exceptions, for example when it can't find the current service. We could
move our init app for gds metrics further up if we wanted to to further
counter this.
2020-07-08 16:26:28 +01:00
Chris Hill-Scott
255be194a6 Merge pull request #3500 from alphagov/choose-broadcast-area-flow
Add flow for choosing an area to broadcast to
2020-07-08 14:14:57 +01:00
Chris Hill-Scott
18d464d4f0 Add some views for selecting broadcast areas
These are just so we have some pages to click through for now. They
don’t use real templates, or any of the broadcast stuff from the
database.

But I think it’s useful to get some skeleton pages in first so that we
can see the map etc working in production, then build on that, without
having to do it all in one mega PR.

For that reason there are two short term things I’ve done in this commit
which should be revisited soon:
- no tests for the endpoints
- data about which areas are selected is stored in the session
2020-07-08 10:27:42 +01:00
pyup-bot
eb0b68f368 Update humanize from 2.4.1 to 2.5.0 2020-07-06 14:52:02 +01:00
Chris Hill-Scott
c4458efa21 Bump utils to 40.2.1
Brings in:
- re-usable `SerialisedModel`
- speed improvements to processing CSVs against email templates

I chose not to rename `JSONModel` or `ModelList` to keep the diff nice
and small.
2020-07-06 09:39:54 +01:00
Chris Hill-Scott
98eb3c61f6 Merge pull request #3498 from alphagov/add-broadcast-template
Allow adding broadcast templates
2020-07-06 09:06:16 +01:00
Chris Hill-Scott
724e8d1838 Make it possible to preview a broadcast template
At the moment this won’t look like much, but it will let us do an
end-to-end run of adding a broadcast template.

At the moment all you can do with a broadcast template is edit it, so
there’s no ‘Send’ link on the page.
2020-07-01 17:49:55 +01:00
David McDonald
d4ed909d0f Revert "Revert "Statsd to prometheus"" 2020-07-01 13:27:12 +01:00
David McDonald
5fb58260e2 Revert "Statsd to prometheus" 2020-07-01 10:00:39 +01:00
David McDonald
e260110d60 Merge pull request #3495 from alphagov/statsd-to-prometheus
Statsd to prometheus
2020-06-30 15:37:40 +01:00
David McDonald
043e6ac69c Add GDS metrics package to admin app
Follows the code from the API
2020-06-30 14:24:34 +01:00
pyup-bot
20a53ad32a Update humanize from 2.4.0 to 2.4.1 2020-06-30 13:49:42 +01:00
Chris Hill-Scott
5335729c31 Import request cache from utils
We’ve making the request cache shared code now so we can remove it from
this app and refer to the version in utils instead.

Delete unused module
2020-06-22 09:39:32 +01:00
Leo Hemsted
fb820306da bump utils 2020-06-18 16:06:18 +01:00
pyup-bot
b69cfa4d2e Update pyexcel from 0.6.1 to 0.6.2 2020-06-18 11:39:47 +01:00
pyup-bot
0684947732 Update govuk-bank-holidays from 0.6 to 0.8 2020-06-18 11:39:47 +01:00
Chris Hill-Scott
f20726a042 Bump utils to 39.4.6 2020-06-16 09:58:07 +01:00
Chris Hill-Scott
c2f851e8de Bump utils to 39.4.5
Changes:
https://github.com/alphagov/notifications-utils/compare/39.4.3...39.4.5
2020-06-15 12:13:30 +01:00
Chris Hill-Scott
b7429fe8a9 Bump utils to 39.4.3
Brings in a bug fix for when a personalisation value is an empty list.
2020-06-09 10:37:16 +01:00