Commit Graph

8393 Commits

Author SHA1 Message Date
karlchillmaid
ed14b72779 Update description 2022-01-28 17:15:05 +00:00
karlchillmaid
a31d4c1746 Add postage changes 2022-01-28 16:43:14 +00:00
Chris Hill-Scott
4f672cb5dc Make logo CDN domain into simple config
Having this as a function which does string parsing and manipulation
surprised me a bit when I was trying to figure out why something wasn’t
working.

It’s more in line with the way we do other config like this (for example
`ASSET_PATH`) to make it a simple config variable, rather than trying to
be clever and guess things based on other config variables.

It’s also less code, and is explicit enough that it doesn’t need tests.
2022-01-27 10:33:05 +00:00
Pea Tyczynska
2224eacf6b Merge pull request #4135 from alphagov/display_broadcast_cancelled_by_api
Display if broadcast was cancelled via API
2022-01-21 14:04:18 +00:00
Tom Byers
61ce8e8d65 Merge branch 'master' into review-accessibility-statement 2022-01-21 10:11:47 +00:00
Tom Byers
2a343aae67 Add HTML abbrevation back
Co-authored-by: karlchillmaid <karl.chillmaid@digital.cabinet-office.gov.uk>
2022-01-21 10:04:28 +00:00
karlchillmaid
88edb2aafe Bump date 2022-01-21 09:01:10 +00:00
Ben Thorner
d34655b5e8 Merge pull request #4136 from alphagov/update-roadmap-january-22
Update public roadmap for Q4, January 2022
2022-01-20 17:55:07 +00:00
karlchillmaid
97a0b15b0b Merge pull request #4130 from alphagov/add-anchors
Add anchor IDs to headings on GOV.UK Notify
2022-01-20 17:38:25 +00:00
Chris Hill-Scott
862b95751b Fix links which point at text message status anchor 2022-01-20 15:08:02 +00:00
Tom Byers
b12c82965c Review and update accessibility statement
As with the last update, the work prepping the
interface that will be used for emergency alerts
for its accessibility audit took priority and has
taken longer than expected. Because of this, we
haven't had time to work on the issues listed
here.

This updates the planned timings to reflect what
we now believe will be possible with the work left
on emergency alerts and amount of work required to
fix them.
2022-01-20 15:01:53 +00:00
karlchillmaid
280608c576 Update ‘Things we’ve done’ content 2022-01-20 13:59:18 +00:00
karlchillmaid
755bbbf46f Update lead in 2022-01-20 13:14:19 +00:00
karlchillmaid
47dbf35a68 Update lead in so it works better with previous sentence 2022-01-20 13:13:20 +00:00
karlchillmaid
175b9704c5 Update figures 2022-01-20 13:12:32 +00:00
karlchillmaid
1670791f7f update bullets 2022-01-20 11:48:16 +00:00
karlchillmaid
d97cfaaada Improve lead-in 2022-01-19 17:05:14 +00:00
karlchillmaid
6178a5504e Update ‘Things we’ve done’ 2022-01-19 17:04:09 +00:00
karlchillmaid
a1d9f18927 Reinstate line break 2022-01-19 15:45:42 +00:00
karlchillmaid
0c701a2b6d Update now, next, later bullets 2022-01-19 15:44:41 +00:00
Pea Tyczynska
78681eb452 Display if broadcast was cancelled via API
If broadcast_message has no value under cancelled_by_id, display
in the view that it was cancelled by an API call.
2022-01-19 11:01:03 +00:00
karlchillmaid
e37172f585 Bump date 2022-01-18 16:38:07 +00:00
Ben Thorner
c11e317dad Point people to Zendesk if there's a problem
This was a minor issue in a recent incident [1].

We don't want people emailing us directly:

- It's harder to collaborate on replies than in Zendesk, where I
can see who's editing.

- We can't take advantage of macros like we can in Zendesk.

- People emailing us directly creates an unnecessary distraction
and it's easy to lose track. We want to minimise distractions in
an incident situation.

- We use notify-support@ for monitoring, so we don't want noise.

[1]: https://docs.google.com/document/d/1eArpcYoCmhlgB45FZpGj1_HnkAgpgtgwr-KBiUq7h8c/edit#
2022-01-18 11:48:17 +00:00
Leo Hemsted
a602ffceb9 fix bug where job reports showed before jobs finished
for a job to be finished there are two requirements:

* the status to be "finished"
* the percentage complete to be 100%

The job status is set to finished when the process_job task finishes
(even though not all process_row may have finished). The
percentage_complete is calculated by comparing the number of
notifications in the database with the number of rows in the
spreadsheet.

This was inadvertently changed from an "and" to an "or" clause two years
ago. This meant that people could download a report when the status was
finished but not all notifications were present in the database. Lets
change it back.

7d52ac97f1 (diff-44b012cad205379c481bed244ddb2294bae5ee85dcd01f4aee932a2bd85b67b2L86-R100)
2022-01-14 15:48:04 +00:00
karlchillmaid
6414578c70 Bump date 2022-01-14 14:45:56 +00:00
karlchillmaid
f6c9f49862 Add anchor IDs 2022-01-14 11:28:19 +00:00
karlchillmaid
151b260fbc Add anchor IDs 2022-01-14 11:24:20 +00:00
karlchillmaid
9518157993 Add anchor IDs 2022-01-14 11:22:24 +00:00
karlchillmaid
025ae07261 Add anchor IDs 2022-01-14 11:18:58 +00:00
karlchillmaid
3440251336 Update anchor ID 2022-01-14 11:16:16 +00:00
karlchillmaid
a377299cbc Add anchor IDs 2022-01-14 11:12:28 +00:00
karlchillmaid
18e36ac63e Add anchor IDs to headings 2022-01-14 11:08:33 +00:00
karlchillmaid
b46a75cf99 Add anchor IDs 2022-01-14 11:07:25 +00:00
karlchillmaid
3132347b53 Add anchors to h2s 2022-01-14 11:04:36 +00:00
karlchillmaid
41cff17086 Add anchors to h3s 2022-01-14 11:01:32 +00:00
karlchillmaid
e7d9a14168 Add anchor 2022-01-14 10:59:51 +00:00
Katie Smith
f3baacfb56 Stop showing link for cancelled org users 2022-01-13 14:08:37 +00:00
Katie Smith
5bf0e8638e Remove two unused org templates
One of these was empty. The other could not be viewed without giving a
`500` status code and isn't needed or linked to from anywhere.
2022-01-13 14:08:37 +00:00
Katie Smith
de2afb2f1a Add hidden text next to the 'Cancel invitation' link
This matches what we do on the service team members page.
2022-01-13 14:08:37 +00:00
Katie Smith
d166c6382c Add link next to org team members allowing them to be removed
This adds a link next to the organisation team members which lets
them be removed from the organisation. Service team members have
their own page and the link to remove them appears there. For
organisation team members, we don't currently have any other
information we want to show or any  other actions to perform. As
a result, this change uses the 'Team members' page to show the
confirmation banner.

The endpoint called 'edit_user_org_permissions' was renamed to
'edit_organisation_user' and some of the existing code around deleting
org users (which didn't work) was changed.
2022-01-13 14:08:37 +00:00
Katie Smith
5b658d924c Tweak and add test for OrganisationsClient.remove_user_from_organisation
This stops adding the current user to the data sent to the API when
removing a user from an organisation. API only needs to know the
organisation_id and the id of the user we want to remove from
the organisation, so we don't need to pass through the id of the
current user too.

The other change made is to clear the user cache of the user who has
been removed from the org. We don't need to clear any of the organisation
caches, since these values don't contain lists of users for the orgs.
2022-01-13 14:08:37 +00:00
Chris Hill-Scott
3ab30f27b6 Remove checks for renaming without changes
When checking the service or organisation name for uniqueness before
changing it, it would be necessary to exclude the current name from
this check. However now we are changing it immediately we don’t need
to guard around this behaviour of the uniqueness check.

So this commit removes the guard for both renaming a service and an
organisation.
2022-01-13 10:29:01 +00:00
Chris Hill-Scott
24ff80280e Move template file to parent directory
It was the only file in its directory.
2022-01-13 10:28:50 +00:00
Chris Hill-Scott
b998b6bb20 Remove methods for checking service/org name uniqueness
We don’t use these now – instead we try to update the name and see if
it works or not.
2022-01-13 10:16:07 +00:00
Chris Hill-Scott
a09af2acc8 Remove update_organisation_name model method
It’s weird to have a method just for updating one attribute. I think
the reason for doing this was to only invalidate the
`organisation-{}-name` cache when absolutely necessary, but:
- we don’t need a separate method to check whether it’s the name being
  updated
- it was easy to get around this by calling
  `OrganisationsClient.update_organisation` directly, leaving a stale
  value in the cache
2022-01-13 10:16:06 +00:00
Chris Hill-Scott
c630faf3b4 Remove re-enter password step from rename organisation
Note that this is copied from the same change made to the rename service
page:
1190e4541b

The original idea behind was to always ask users to re-enter their
password any time:
- we want them to be sure that they want to do what they’re about to do
- we want to be sure it’s really the user trying to do the thing (and
  not someone malicious)

In reality we:
- removed this from the initial place it was added (a descendent of the
  ‘suspend service’ feature)
- only ever added it to the ‘rename service’ and ‘rename organisation’
  features

So in reality it’s not a pattern we have persisted with. Arguably there
are several things you can now do in the admin app without re-entering
your password which are much more high consequence than changing the
service name.

Also, with browser autofill there’s a lot less chance that forcing
someone to re-enter a password really gives much defence against an
unattended laptop, for example.

So this commit removes the need to re-enter your password when renaming
an organisation.
2022-01-13 10:16:03 +00:00
Chris Hill-Scott
45e178036a Pass current value to form constructor
This is the more idiomatic way to achieve this in WTForms.
2022-01-13 10:14:18 +00:00
Chris Hill-Scott
d4ec4bf9f4 Don’t error if organisation name is unchanged
If you submit the rename organisation form without making any changes
you will get an error saying that the name is currently in use. This is
true because it’s being used by the current organisation.

However your intention is probably not to actually change anything, so
we can just redirect back to the settings page.

This is the same thing we do when renaming services:
60f5b74904/app/main/views/service_settings.py (L99-L100)
2022-01-13 10:14:17 +00:00
Chris Hill-Scott
ef3b092831 Merge pull request #4118 from alphagov/platform-admin-client-request
Standardise on use of `client_request` fixture
2022-01-13 10:10:21 +00:00
Chris Hill-Scott
c40cc7f04a Remove errant >
It was showing up in the page
2022-01-12 12:20:27 +00:00