Commit Graph

489 Commits

Author SHA1 Message Date
Chris Hill-Scott
6dc84194ff Bump utils to 43.5.2
Brings in:
- [x] https://github.com/alphagov/notifications-utils/pull/808/files

Changes:
- https://github.com/alphagov/notifications-utils/compare/43.5.1...43.5.2
2020-11-30 10:52:23 +00:00
Tom Byers
09fbd15b2f Merge pull request #3718 from alphagov/bump-utils
Bump utils to 43.5.1
2020-11-19 10:55:08 +00:00
Tom Byers
f64db263cd Bump utils to 43.5.1
Brings in the following changes:
- https://github.com/alphagov/notifications-utils/pull/800
  (Update colours used in email template to match
  design system)
- https://github.com/alphagov/notifications-utils/pull/801
  (Concern `BroadcastMessageTemplate` only with
  content, not XML)
- https://github.com/alphagov/notifications-utils/pull/802
  (Update pytest to 6.1.2)
- https://github.com/alphagov/notifications-utils/pull/798
  (Validate email message size is within SES
  limits)
- https://github.com/alphagov/notifications-utils/pull/804
  (Revert 798 validate email size)
- https://github.com/alphagov/notifications-utils/pull/805
  (Revert "Revert 798 validate email size")
- https://github.com/alphagov/notifications-utils/pull/806
  (Add service id to logs)
- https://github.com/alphagov/notifications-utils/pull/803
  (Take extended GSM characters into account in
  fragment count)
- https://github.com/alphagov/notifications-utils/pull/807
  (Remove alt text hack)

Of those, #801 is the only major version bump
(42.3.0 to 43.0.0).
2020-11-18 17:25:19 +00:00
Katie Smith
6767f86085 Freeze requirements 2020-11-18 12:16:23 +00:00
David McDonald
a49e2b280d make freeze 2020-11-02 17:14:06 +00:00
David McDonald
657bd72d73 make freeze 2020-10-26 14:00:12 +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
Chris Hill-Scott
4783ba1466 Freeze requirements 2020-10-19 15:03:07 +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
14fc205056 Freeze requirements 2020-10-14 17:28:19 +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
Chris Hill-Scott
fa68404511 Freeze requirements 2020-10-08 15:18:02 +01:00
Chris Hill-Scott
06ae9d7162 Freeze requirements 2020-09-30 12:43:25 +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
David McDonald
ef134c6b6c freeze requirments 2020-09-08 09:52:14 +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
David McDonald
511ed6daf0 make freeze requirements 2020-09-01 16:46:25 +01:00
David McDonald
06c844b7cb make freeze requirements 2020-08-18 09:55:52 +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
David McDonald
b872db3032 freeze requirements 2020-08-04 12:13:35 +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
David McDonald
96470dbd1f make freeze requirements 2020-07-06 16:00:05 +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
Chris Hill-Scott
7d6802b415 Freeze requirements 2020-06-30 13:50:05 +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
David McDonald
ec0ebd57a9 make freeze requirements 2020-06-18 11:40:49 +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
Chris Hill-Scott
18f3f0a7ae Freeze requirements 2020-05-28 10:47:52 +01:00
Chris Hill-Scott
67be9d98c9 Bump utils to 39.4.2 2020-05-27 15:27:30 +01:00
Chris Hill-Scott
9da843ceff Bump utils to 39.4.1 2020-05-26 13:37:04 +01:00
Chris Hill-Scott
d828c1c481 Bump utils to 39.4.0
Adds delivery estimates for letters posted to Europe or the rest of the
world.
2020-05-26 13:37:03 +01:00
Chris Hill-Scott
b2ad7ff3cb Replace format_recipient with PostalAddress.as_single_line
We’ve refactored the code to display an address on a single line with
commas into utils now.
2020-05-21 14:20:18 +01:00