Commit Graph

7170 Commits

Author SHA1 Message Date
Katie Smith
05c7b685ab Merge pull request #2677 from alphagov/email-auth-fixes-take-2
Stop automatically resending email verification links
2019-01-23 12:51:23 +00:00
Chris Hill-Scott
fc7e4e554d Merge pull request #2679 from alphagov/cyfoethnaturiolcymru.gov.uk
Add Natural Resources Wales to list of domains
2019-01-23 12:20:33 +00:00
Chris Hill-Scott
a9f21a9818 Add Natural Resources Wales to list of domains
Pretty sure they are crown…
2019-01-23 11:55:59 +00:00
Chris Hill-Scott
b19e865fb5 Merge pull request #2678 from alphagov/middlesbrough.gov.uk
Mark agreement signed by Middlesbrough Council
2019-01-23 11:41:53 +00:00
Chris Hill-Scott
e8aed9cda9 And Orkney… 2019-01-23 11:31:04 +00:00
Chris Hill-Scott
46542129e1 Mark agreement signed by Middlesbrough Council 2019-01-23 11:26:13 +00:00
Katie Smith
c30d94bf5c Stop automatically resending email verification links
This commit stops a new email verification link from being sent to a
user if they click on an email link which has expired or which has
already been used. Instead, they will be see an error message with a
link to the sign in page. This stops the situation where someone could
log in indefinitely (without the needing to enter their password) by
trying to use a used / expired email verification link and receiving a
valid link automatically.
2019-01-22 13:59:16 +00:00
Chris Hill-Scott
a9effaa82e Merge pull request #2669 from alphagov/test-key-letters
Show if letters are sent using a test key
2019-01-22 11:36:13 +00:00
Chris Hill-Scott
085856e062 Revised wording to avoid negative contraction 2019-01-22 10:38:40 +00:00
Katie Smith
436bdcbf89 Merge pull request #2674 from alphagov/fix-non-gov-user-invites
Ensure non-gov invited users get added to services
2019-01-22 10:38:37 +00:00
Chris Hill-Scott
cfcdfcc38c Show if letters are sent using a test key
It’s inaccurate to have an estimated delivery date for letters sent
using a test key. We shouldn’t reassure people that:
- the letter won’t be printed
- (in the case of precompiled letters) that the letter has passed
  validation
2019-01-22 09:54:40 +00:00
Katie Smith
bbc7b173f0 Ensure non-gov invited users get added to services
We were adding invited users to services in the `main.add_service` view
function as the last step in the process of inviting users. Since this
view function is decorated with `@user_is_gov_user`, invited users with
non-governmental email addresses would never reach this point and would
be able to register an account but would not get linked to a service.

To fix this, we now add the invited user to the service at the point at
which the user gets activated and also ensure that non-gov users don't
get redirected to a page which they don't have permission to view.
2019-01-22 09:52:55 +00:00
Katie Smith
63889cb047 Merge pull request #2676 from alphagov/revert-2664-email-auth-fixes
Revert "Stop automatically resending email verification links"
2019-01-21 15:51:13 +00:00
Katie Smith
398aef6d4c Revert "Stop automatically resending email verification links" 2019-01-21 15:44:15 +00:00
Katie Smith
061235958e Merge pull request #2664 from alphagov/email-auth-fixes
Stop automatically resending email verification links
2019-01-21 14:40:26 +00:00
Katie Smith
9095893e03 Stop automatically resending email verification links
This commit stops a new email verification link from being sent to a
user if they click on an email link which has expired or which has
already been used. Instead, they will be see an error message with a
link to the sign in page. This stops the situation where someone could
log in indefinitely (without the needing to enter their password) by
trying to use a used / expired email verification link and receiving a
valid link automatically.
2019-01-21 14:29:22 +00:00
Chris Hill-Scott
55a41f9239 Merge pull request #2675 from alphagov/somerset.gov.uk
Mark agreement signed by Somerset council
2019-01-21 11:28:45 +00:00
Chris Hill-Scott
ed2ead73e9 Mark agreement signed by Somerset council 2019-01-21 11:16:05 +00:00
Chris Hill-Scott
ade460d6bf Merge pull request #2673 from alphagov/enfield.gov.uk
Mark agreement signed by Enfield Council
2019-01-18 16:43:52 +00:00
Chris Hill-Scott
dcfd65e193 Mark agreement signed by Enfield Council 2019-01-18 15:29:03 +00:00
Chris Hill-Scott
dc3b3cf358 Merge pull request #2672 from alphagov/wra.gov.wales
Mark agreement signed by Welsh Revenue Authority
2019-01-18 11:26:24 +00:00
Chris Hill-Scott
423648f4db Mark agreement signed by Welsh Revenue Authority
They signed it ages ago, but only just noticed the have their own email domain now.
2019-01-18 11:20:29 +00:00
Chris Hill-Scott
2d9467dbe0 Merge pull request #2671 from alphagov/service-count
Updated service and org counts to 553 and 164
2019-01-18 11:01:34 +00:00
Pete Herlihy
e21ffa9dd9 Updated service and org counts to 553 and 164 2019-01-18 10:45:41 +00:00
Chris Hill-Scott
533e6800a3 Merge pull request #2670 from alphagov/mansfield.gov.uk
Mark agreement signed by Mansfield Council
2019-01-18 10:32:34 +00:00
Chris Hill-Scott
0b56b6338d Mark agreement signed by Mansfield Council 2019-01-18 10:05:58 +00:00
Alexey Bezhan
ec0575009b Merge pull request #2667 from alphagov/template-and-notification-stats-use-one-api-call
Use single api call for service notification stats and template usage stats
2019-01-17 15:35:00 +00:00
Alexey Bezhan
20d5cdf6c3 Merge pull request #2663 from alphagov/adding_support_for_new_api_template_statistics_response
Add support for new template statistics API response
2019-01-17 13:42:43 +00:00
Chris Hill-Scott
f531c09dc9 Merge pull request #2668 from alphagov/cornwall.gov.uk
Mark agreement signed by Cornwall Council
2019-01-17 11:04:05 +00:00
Chris Hill-Scott
9d2917e095 Mark agreement signed by Cornwall Council 2019-01-17 10:48:56 +00:00
Chris Hill-Scott
94cb5429e6 Merge pull request #2665 from alphagov/fix-showing-name-of-service-you-dont-belong-to
Hide ‘back to …’ link if it’s not your service
2019-01-16 11:35:53 +00:00
Chris Hill-Scott
72c60ea9a4 Merge pull request #2658 from alphagov/sticky-footer-edit
Use sticky footer on edit template page
2019-01-16 11:26:53 +00:00
Pea Tyczynska
52526f2b9f Test aggregate_notifications_stats 2019-01-16 11:24:24 +00:00
Pea Tyczynska
06ab25665e Use single api call for service notification stats and template
usage stats.
2019-01-16 10:35:59 +00:00
Chris Hill-Scott
6b6e317ac4 Merge pull request #2666 from alphagov/fix-breaking-change-spacing
Fix spacing and overflow on breaking change page
2019-01-16 09:51:07 +00:00
Chris Hill-Scott
cb5fee10b9 Add scroll overflow 2019-01-16 09:45:19 +00:00
Chris Hill-Scott
61903a88eb Fix spacing on breaking change page
Quick fix so the text doesn’t overlap.
2019-01-16 09:45:13 +00:00
Chris Hill-Scott
558ae87baa Hide ‘back to …’ link if it’s not your service
This can happen if you click a link for a service you don’t have access
to. We shouldn’t show the back to service link in this case because:
- you shouldn’t be able to find out the service’s name from just knowing
  the link
- if you click the link you only get a `403` anyway
2019-01-15 17:31:55 +00:00
Pea Tyczynska
e5647703b3 Remove support for old template statistics api response 2019-01-15 16:44:37 +00:00
Pea Tyczynska
4fe239abb2 Add support for new template statistics API response
The new API response for template statistics returns separate
count for each status. We get rid of template stats for cancelled
notifications and group the rest of the statuses together.
2019-01-15 16:22:27 +00:00
Alexey Bezhan
46bfb541c8 Group new template-statistics response by template
New API template-statistics response returns notification counts for
each template and status combination. This can be used for both
service statistics counts and template statistics by grouping the
counts either by status or by template.
2019-01-15 15:55:04 +00:00
Chris Hill-Scott
7c92847b85 Merge pull request #2662 from alphagov/fix-status-display-notifications
Fix display of permanent failure on notifications page
2019-01-15 14:32:40 +00:00
Chris Hill-Scott
feabcbc7bf Fix display of perm. failure on notifications page
It had too much whitespace because it was accidentally being given the
wrong class.

This commit undoes the change that caused it (which was while working on
letters) and beefs up our tests for email and text messages (so if this
happened again the tests would catch it).
2019-01-15 13:51:32 +00:00
Chris Hill-Scott
309de074c3 Don’t give postage choice on service and template
We are moving from the postage being set on the service to being set on
the template. Once a service has been migrated to have the new
permission they should no longer be able to set the postage at a service
level, only at the template level.
2019-01-15 12:06:56 +00:00
Chris Hill-Scott
365d422ff8 Merge pull request #2660 from alphagov/blackpool.gov.uk
Mark agreement signed by Blackpool council
2019-01-15 12:04:19 +00:00
Chris Hill-Scott
899303d040 Mark agreement signed by Blackpool council 2019-01-15 11:14:55 +00:00
Chris Hill-Scott
eb3459e416 Merge pull request #2659 from alphagov/basildon.gov.uk
Mark agreement signed by Basildon council
2019-01-15 09:59:42 +00:00
Chris Hill-Scott
94c7a1acef Mark agreement signed by Basildon council 2019-01-14 17:44:19 +00:00
Chris Hill-Scott
393125d22f Merge pull request #2655 from alphagov/pyup-update-pytest-xdist-1.25.0-to-1.26.0
Update pytest-xdist to 1.26.0
2019-01-14 16:43:42 +00:00
Chris Hill-Scott
0df88f923c Refactor sticky button into component 2019-01-14 15:05:08 +00:00