Commit Graph

11526 Commits

Author SHA1 Message Date
David McDonald
e454a24e3d Merge pull request #3853 from alphagov/unknown-event-doer
Don't show user as unknown for service history
2021-04-06 16:33:29 +01:00
David McDonald
4acca3de4d Don't show user as unknown for service history
A commit was added:
600e3affc1

In it, it falls back to the string 'Unknown' for actions done by those
not belonging to the service.

This commit changes the behaviour such that if the user is not in the
list of active users for a service, it will go get the user from the DB
(or redis). This should be fine to do as redis will protect us from most
calls as most of these cases are for platform admins.

This will mean we can now see which user platform admin put a service
live rather than seeing 'Unknown'.
2021-04-06 11:36:54 +01:00
pyup-bot
1c741bb0c1 Update xlrd from 1.2.0 to 2.0.1 2021-04-05 14:55:10 +01:00
pyup-bot
65d11952dd Update s3transfer from 0.3.4 to 0.3.6 2021-04-05 14:55:09 +01:00
pyup-bot
0f4dc6323c Update phonenumbers from 8.12.19 to 8.12.20 2021-04-05 14:55:09 +01:00
pyup-bot
e3a03c7dde Update idna from 2.10 to 3.1 2021-04-05 14:55:09 +01:00
pyup-bot
9e501a0c30 Update docutils from 0.15.2 to 0.17 2021-04-05 14:55:08 +01:00
pyup-bot
25f7288f9a Update dnspython from 1.16.0 to 2.1.0 2021-04-05 14:55:08 +01:00
pyup-bot
f0d87dffe9 Update colorama from 0.4.3 to 0.4.4 2021-04-05 14:55:08 +01:00
pyup-bot
93e0be8f02 Update botocore from 1.20.27 to 1.20.44 2021-04-05 14:55:07 +01:00
pyup-bot
d64441033f Update boto3 from 1.17.27 to 1.17.44 2021-04-05 14:55:07 +01:00
pyup-bot
e32dd090c9 Update awscli from 1.19.27 to 1.19.44 2021-04-05 14:55:06 +01:00
pyup-bot
ba5694c6f8 Update flake8-bugbear from 21.3.2 to 21.4.3 2021-04-05 14:55:06 +01:00
pyup-bot
84b726df18 Update pytest from 6.2.2 to 6.2.3 2021-04-05 14:55:06 +01:00
pyup-bot
0b2e263b95 Update isort from 5.7.0 to 5.8.0 2021-04-05 14:55:05 +01:00
pyup-bot
907b27c473 Update prometheus-client from 0.9.0 to 0.10.0 2021-04-05 14:55:05 +01:00
pyup-bot
f136731442 Update prometheus-client from 0.9.0 to 0.10.0 2021-04-05 14:55:04 +01:00
pyup-bot
a472ce6580 Update gunicorn from 20.0.4 to 20.1.0 2021-04-05 14:55:04 +01:00
pyup-bot
415e570666 Update gunicorn from 20.0.4 to 20.1.0 2021-04-05 14:55:03 +01:00
pyup-bot
4e06d1b381 Update humanize from 3.2.0 to 3.3.0 2021-04-05 14:55:03 +01:00
pyup-bot
3f29d2bb0d Update humanize from 3.2.0 to 3.3.0 2021-04-05 14:55:03 +01:00
karlchillmaid
1d64fd6923 Merge pull request #3851 from alphagov/update-sms-pricing-april-2021
Update pricing information for text messages
2021-04-01 13:49:14 +01:00
karlchillmaid
b2e1c9492f Update content 2021-04-01 13:22:58 +01:00
karlchillmaid
018397fb7d Update pricing for text messages 2021-04-01 13:20:10 +01:00
karlchillmaid
f8feb28fe5 Update pricing information for text messages 2021-04-01 13:18:04 +01:00
Chris Hill-Scott
eeba15356d Merge pull request #3848 from alphagov/leohemsted-patch-1
Fix gov.scot typo
2021-04-01 11:23:58 +01:00
Chris Hill-Scott
18a96d3243 Merge pull request #3830 from alphagov/remove-2020-allowances
Remove 2020/21 free allowance data
2021-04-01 10:40:29 +01:00
Richard Baker
88872b96e9 Merge pull request #3850 from alphagov/extra_broadcast_test_areas
Create additional non-UK broadcast test polygons
2021-03-31 10:33:14 +01:00
Richard Baker
02600d76bd Create additional non-UK broadcast test polygons
This allows MNOs to test delivery to multiple non-adjacent cells without
risk of sending a broadcast on the public network. This will also support
testing of multiple polygon geometries in a single message.

Test polygons are all non-UK (northern Finland).

Signed-off-by: Richard Baker <richard.baker@digital.cabinet-office.gov.uk>
2021-03-31 10:00:39 +01:00
Pea Tyczynska
a22fb3eb4e Merge pull request #3839 from alphagov/billing-report
Transform usage report to billing report
2021-03-30 15:27:10 +01:00
Pea Tyczynska
daba419b39 Fix tests - add flake8 exception and change endpoint name in navigation tests 2021-03-30 15:16:02 +01:00
Pea Tyczynska
f7142a1518 Catch validation error from API
When dates chosen for billing report are not in the same
financial year, API throws an error. This error was not being
caught so far. This PR starts to catch it and display a banner
with error message on the page, instead of page crashing.
2021-03-30 14:13:57 +01:00
Pea Tyczynska
38cfee6390 Rename usage report to billing report
Because only services with bills to pay are included, and
we started including billing details.

Also rename endpoints and file names to match this.
2021-03-30 14:13:54 +01:00
Pea Tyczynska
95f46ced8a Add billing details fields to Usage for all services report 2021-03-30 14:11:42 +01:00
Pea Tyczynska
2a9ebfb1cc Merge pull request #3849 from alphagov/allow-double-hyphens-in-email-domains
Bump utils to allow double hyphens in email address domain
2021-03-30 11:06:14 +01:00
Pea Tyczynska
a631942d55 Bump utils to allow double hyphens in email address domain
It was requested by our user and it is an allowed domain format
with Amazon SES, so we started allowing it in our validation.
2021-03-29 17:38:37 +01:00
Leo Hemsted
8e45075d5e Fix gov.scot typo
thanks rory for the spot
2021-03-29 15:35:22 +01:00
Chris Hill-Scott
f0696cfaa7 Merge pull request #3845 from alphagov/refactor-broadcast-areas
Refactor BroadcastAreas to reuse common methods
2021-03-22 12:20:53 +00:00
Chris Hill-Scott
fc75d60f65 Refactor BroadcastAreas to reuse common methods
This commit makes an abstract base class for broadcast areas, so that
methods and properties which are common between `BroadcastArea`s (those
which come from our library) and `CustomBroadcastArea`s (those supplied
via the API) can be shared.
2021-03-22 11:07:43 +00:00
Chris Hill-Scott
ddfc60cde6 Merge pull request #3838 from alphagov/pyup-scheduled-update-2021-03-15
Scheduled weekly dependency update for week 11
2021-03-22 10:56:31 +00:00
Chris Hill-Scott
1699f1f0b1 Manually upgrade packages with vulnerabilities 2021-03-22 10:43:01 +00:00
Chris Hill-Scott
d426fcac74 Freeze requirements 2021-03-22 10:21:33 +00:00
Chris Hill-Scott
aa2a10c843 Merge pull request #3833 from alphagov/vary-bleed-by-population-density
Vary bleed amount based on population density
2021-03-22 10:03:19 +00:00
Chris Hill-Scott
40e25721ea Merge pull request #3843 from alphagov/refactor-failed-login-count
Refactor failed login count
2021-03-22 10:03:04 +00:00
Chris Hill-Scott
57aa994ce9 Add docstring 2021-03-19 15:47:18 +00:00
Chris Hill-Scott
a74db6eaa7 Handle areas which don’t have population data
If an area has a `count_of_phones` value of `0` it means we don’t have
data about the population.

This means we can’t do the maths to work out the estimated bleed. So we
should return the default amount of bleed of 1,500m instead, which is
something in between what we’d expect for a built up area and a rural
area.
2021-03-19 15:47:18 +00:00
Chris Hill-Scott
4367908269 Add limits to max/min bleed
This prevents us from giving unrealistically large or small bleed
estimates in case we have areas which are more dense or less dense than
the most/least dense areas we currently have.

Also means we don’t have to treat City of London as a special case.
2021-03-19 15:47:18 +00:00
Chris Hill-Scott
6c8bfdc5b0 Refactor failed login count
We don’t vary this between different environments so it doesn’t need to
be in the config.

I was trying to look up what this value was and found it a bit confusing
that it was spread across multiple places.
2021-03-19 15:20:11 +00:00
Leo Hemsted
62ce3c0696 Merge pull request #3842 from alphagov/remove-last-of-the-backwards-compat-invite-stuff
Remove last of the backwards compat invite stuff
2021-03-18 16:46:01 +00:00
Chris Hill-Scott
2a7f972a8a Merge pull request #3821 from alphagov/find-services-by-id
Support service IDs in ‘find services by name’
2021-03-18 13:16:36 +00:00