Commit Graph

5317 Commits

Author SHA1 Message Date
Chris Hill-Scott
2ca4aaa83e Merge pull request #1998 from alphagov/expanding-session
Don’t store info about bad uploads in session
2018-03-29 14:03:46 +01:00
Chris Hill-Scott
890deec3ae Merge pull request #1997 from alphagov/dft.gov.uk
Record MoU signed by Department for Transport
2018-03-29 12:13:52 +01:00
Chris Hill-Scott
becee15e1e Add logging for session not being set bug
This is so we can be alerted to it before our users alert us to it.
2018-03-29 12:07:37 +01:00
Chris Hill-Scott
e74d261ec3 Don’t store info about bad uploads in session
Because we now[1] store info about each file upload separately in the
session the session isn’t overridden every time you upload a file. This
is good because you can do multiple file uploads idempotently.

Generally we are cleaning up after ourselves because we pop anything to
do with that upload from the session. However there is an edge case: if
you never send the file then the info about the file stays in the
session in perpetuity[2]. This is generally happening when people are
uploading files that are impossible to send, ie ones that have errors.

So this commit makes two changes:

1. remove info about a file upload from the session as soon as we know
   that it contains errors
2. `POST` reuploads to the same endpoint as initial uploads because
   otherwise we need to keep info about bad uploads in the session,
   which would prevent us from doing 1.

1. https://github.com/alphagov/notifications-admin/pull/1968
2. or at least until the session is cleared by the user logging out
2018-03-29 11:56:53 +01:00
Chris Hill-Scott
dd20388c5a Record MoU signed by Department for Transport 2018-03-29 10:01:41 +01:00
Chris Hill-Scott
a3374f32d8 Merge pull request #1994 from alphagov/ips.gov.uk
Add IPS to list of domains
2018-03-28 15:53:37 +01:00
Chris Hill-Scott
69c1753b1f Add IPS to list of domains
Identity and Passport Service is the old name for HM Passport Office, but they still use the domain for their emails.

> Identity and Passport Service became Her Majesty's Passport Office in May 2013.

– https://www.gov.uk/government/organisations/identity-and-passport-service/about
2018-03-28 15:38:56 +01:00
Chris Hill-Scott
33b7247e5d Merge pull request #1993 from alphagov/luton.gov.uk
Record agreement signed by Luton Borough Council
2018-03-28 15:08:26 +01:00
Chris Hill-Scott
22d88147dc Record agreement signed by Luton Borough Council 2018-03-28 14:53:25 +01:00
Chris Hill-Scott
b4bc53955f Merge pull request #1964 from alphagov/serve-mou
Let users download the data sharing and financial agreement
2018-03-28 13:52:11 +01:00
Chris Hill-Scott
1f94574076 Merge pull request #1991 from alphagov/twfire.gov.uk
Record Tyne and Wear Fire and Rescue Authority
2018-03-28 13:43:17 +01:00
Chris Hill-Scott
c2abae91ab Record Tyne and Wear Fire and Rescue Authority
They have now signed the non-crown agreement.
2018-03-28 13:39:11 +01:00
Chris Hill-Scott
2d83235f65 Merge pull request #1990 from alphagov/ccs
Mark CCS as part of Cabinet Office
2018-03-28 13:30:57 +01:00
Chris Hill-Scott
9354da5c60 Mark CCS as part of Cabinet Office
As such they don’t need to sign an agreement.
2018-03-28 12:54:02 +01:00
Chris Hill-Scott
dca5546cbd Only offer agreement download to non-crown for now
We don’t have the crown agreement in a nice downloadable format at the
moment.
2018-03-28 12:43:03 +01:00
Chris Hill-Scott
0c87dca0a6 Merge pull request #1989 from alphagov/rtgl-using-notify
Add link to request to go live from ‘Using Notify’
2018-03-28 10:25:38 +01:00
Chris Hill-Scott
2ec62e8b3d Merge pull request #1983 from alphagov/scottish-crown
Record Scottish Government as a crown body
2018-03-28 10:24:10 +01:00
Chris Hill-Scott
f1d609f2ab Merge pull request #1988 from alphagov/pyup-update-pyexcel-xlsx-0.5.5-to-0.5.6
Update pyexcel-xlsx to 0.5.6
2018-03-28 09:55:08 +01:00
Chris Hill-Scott
ed3004821c Merge pull request #1987 from alphagov/pyup-update-pyexcel-0.5.7-to-0.5.8
Update pyexcel to 0.5.8
2018-03-28 09:54:59 +01:00
Chris Hill-Scott
d1da749a7f Add link to request to go live from ‘Using Notify’
We used to have this link. It went away at some point. This should
reduce the number of users raising support tickets asking ‘how do I get
a live API key’ and similar.
2018-03-27 17:18:54 +01:00
Chris Hill-Scott
c7ab9f7f1a Link to the page to download the agreement
We prefer people downloading the agreement if they can. If we don’t know
which agreement they should be using (ie we don’t know their crown
status) then we fall back to having them contact us.
2018-03-27 11:35:17 +01:00
Chris Hill-Scott
0d6d4e461a Add wording to download page 2018-03-27 11:35:17 +01:00
Chris Hill-Scott
68292d2299 Add endpoints to serve the agreement
Rather than making users contact us to get the agreement, we should just
let them download it, when we know which version to send them.

This commit adds two endpoints:
- one to serve a page which links to the agreement
- one to serve the agreement itself

These pages are not linked to anywhere because the underlying files
don’t exist yet. So I haven’t bothered putting real content on the page
yet either. I imagine the deploy sequence will be:

1. Upload the files to the buckets in each environment
2. Deploy this code through each enviroment, checking the links work
3. Make another PR to start linking to the endpoints added by this
   commit
2018-03-27 11:35:17 +01:00
pyup-bot
c5dae849db Update pyexcel-xlsx from 0.5.5 to 0.5.6 2018-03-26 23:41:09 +01:00
pyup-bot
a5b4fe42a3 Update pyexcel from 0.5.7 to 0.5.8 2018-03-26 22:40:04 +01:00
Chris Hill-Scott
d1ae9cc1a6 Merge pull request #1984 from alphagov/pyup-update-pytest-3.4.2-to-3.5.0
Update pytest to 3.5.0
2018-03-23 10:55:15 +00:00
pyup-bot
3b1a57174d Update pytest from 3.4.2 to 3.5.0 2018-03-23 00:54:53 +00:00
Chris Hill-Scott
f456511c70 Record Scottish Government as a crown body
TBC…
2018-03-22 16:41:13 +00:00
Chris Hill-Scott
1b09c80eaf Merge pull request #1982 from alphagov/gov-scot
Add Scottish Government to list of domains
2018-03-22 16:06:00 +00:00
Chris Hill-Scott
b27021fe49 Add Scottish Government to list of domains 2018-03-22 15:55:58 +00:00
Chris Hill-Scott
2a0b706720 Merge pull request #1981 from alphagov/pins
Add The Planning Inspectorate to list of domains
2018-03-22 13:28:21 +00:00
Chris Hill-Scott
1afae28ae6 Add The Planning Inspectorate to list of domains 2018-03-22 11:54:11 +00:00
Chris Hill-Scott
ba11912a04 Merge pull request #1980 from alphagov/f-no-sa
Add alternative Food Standards Agency domain
2018-03-22 11:10:39 +00:00
Chris Hill-Scott
de6f2da2e7 Merge pull request #1978 from alphagov/richmond-wandsworth
Add Richmond and Wandsworth London boroughs
2018-03-22 11:10:33 +00:00
Chris Hill-Scott
ea5b95a175 Add alternative Food Standards Agency domain 2018-03-22 10:47:19 +00:00
Chris Hill-Scott
37392fb1da Add Richmond and Wandsworth London boroughs
Their IT is managed jointly, so they’ve signed the agreement for both.
2018-03-22 09:38:36 +00:00
Leo Hemsted
0c88556d17 Merge pull request #1977 from alphagov/human-readable-day
fix relative datetime function to handle dates correctly
2018-03-21 16:21:43 +00:00
Chris Waszczuk
59803348a4 Merge pull request #1974 from alphagov/org-links-dont-show-if-user-doesnt-have-permissions
Org links don't show if user doesn't have permissions
2018-03-21 16:15:42 +00:00
Leo Hemsted
df30562216 fix relative datetime function to handle dates correctly
Previously, we were looking at the day of the week - so messages sent
six days ago would show up as "tomorrow". We now look at the actual
date, so that won't happen again.

We were also subtracting an hour to make 00:00 this evening show up as
"midnight today", despite it technically being tomorrow. However, this
means that 00:59 tomorrow morning would show up as "00:59 today", a
full day out. So reduce that to just a minute, so it doesn't affect
other times of day.
2018-03-21 16:08:09 +00:00
chrisw
c47a4ab830 org links don't show if user doesn't have permissions 2018-03-21 15:23:01 +00:00
Chris Hill-Scott
cabd99d69a Merge pull request #1976 from alphagov/quis-patch-1
Fix untypographic apostrophe
2018-03-21 14:46:24 +00:00
Chris Hill-Scott
3d7422a8f6 Fix untypographic apostrophe
😱
2018-03-21 14:42:24 +00:00
Chris Hill-Scott
7e96a897b1 Merge pull request #1975 from alphagov/hmcts-gsi
Add canonical HMCTS domain
2018-03-21 14:34:35 +00:00
Chris Hill-Scott
4b2641d977 Merge pull request #1962 from alphagov/pyup-update-notifications-python-client-4.7.2-to-4.8.1
Update notifications-python-client to 4.8.1
2018-03-21 14:34:28 +00:00
Chris Hill-Scott
0f8a6ca2fb Merge pull request #1969 from alphagov/no-free-text-from-url
Don’t populate support form with arbitrary text
2018-03-21 14:34:19 +00:00
Chris Hill-Scott
b2c21569ed Merge pull request #1958 from alphagov/pyup-update-pyexcel-xls-0.5.5-to-0.5.6
Update pyexcel-xls to 0.5.6
2018-03-21 14:34:09 +00:00
Chris Hill-Scott
654fe7d97d Add canonical HMCTS domain 2018-03-21 10:27:40 +00:00
Katie Smith
674e66edf3 Merge pull request #1973 from alphagov/display-new-virus-states
Display new virus states
2018-03-21 10:17:12 +00:00
Katie Smith
bc5f4c145a Delete duplicated tests
test_api_keys.py and test_api_integration.py were almost identical
files with only a few lines difference between them. By moving one
test we can now delete test_api_keys.py
2018-03-20 16:10:37 +00:00
Chris Hill-Scott
64b5f03dcd Don’t populate support form with arbitrary text
I don’t think it’s a massive risk (we’re certainly mitigating against
any XSS), but having a page on a GOV.UK domain where you can prefill
text on the page from a query string probably isn’t great.

So this commit restricts prefilling the support form to a set of
named questions.
2018-03-20 16:07:23 +00:00