Commit Graph
14145 Commits
Author SHA1 Message Date
chrisw 0a7fe52e83 make content links in Notify consistent 2018-01-05 14:45:19 +00:00
Chris Hill-Scott 9265101b11 Merge pull request #1749 from alphagov/pyup-update-pytest-3.3.1-to-3.3.2
Update pytest to 3.3.2
2018-01-05 12:59:42 +00:00
pyup-bot 3e9e45ee29 Update pytest from 3.3.1 to 3.3.2 2018-01-05 12:46:24 +00:00
Chris Hill-Scott 291e55efa6 Merge pull request #1747 from alphagov/128-131
128-131 and 53 to 55
2018-01-05 12:46:05 +00:00
Pete Herlihy 9e70924042 128-131 and 53 to 55
* ABCi - Aneurin Bevan UHB – Aneurin Bevan University Health Board
* Research – Driver & Vehicle Standards Agency
* Tunbridge Wells Borough Council	 – Tunbridge Wells Borough Council
2018-01-05 12:32:34 +00:00
Chris Hill-Scott 8daeb4bcc4 Merge pull request #1743 from alphagov/all-pages-letter
Show all pages of a sent letter
2018-01-05 12:32:19 +00:00
Chris Hill-Scott 22de67fa19 Show all pages of a sent letter
Because we weren’t specifying how many pages the letter has, it was
defaulting to only showing the first page. This looked broken.
2018-01-05 12:19:55 +00:00
Chris Hill-Scott ec265dd2b4 Merge pull request #1745 from alphagov/🖨
Lint for print statements
2018-01-05 12:19:22 +00:00
Chris Hill-Scott b24c23fe3b Lint for print statements
flake8-print is a flake8 plugin that checks for `print()` statements in
Python files.

This should save us having to manually spot these when reviewing pull
requests.

The `--enable=T` flag needs to be set until this bug is fixed:
https://github.com/JBKahn/flake8-print/issues/27
2018-01-05 12:14:28 +00:00
chrisw efe90f6830 Updated service manual link on using-notify page 2018-01-05 11:52:28 +00:00
Chris Hill-Scott 2ec71ace5c Merge pull request #1746 from alphagov/british-museum
Add British Museum to whitelist
2018-01-04 17:14:20 +00:00
Chris Hill-Scott 1e7b330bd9 Add British Museum to whitelist
> BM is an executive non-departmental public body, sponsored by the
> Department for Digital, Culture, Media & Sport.
>
> British Museum has a separate website (http://www.britishmuseum.org)

– https://www.gov.uk/government/organisations/british-museum
2018-01-04 15:36:22 +00:00
Sakis 86cda8aaac Merge pull request #1744 from alphagov/make-failwhale
Add make targets to enable and disable failwhale
2018-01-04 11:39:44 +00:00
Sakis ee64d9bfee Use backticks around <environment> to make it render 2018-01-04 11:02:51 +00:00
Athanasios Voutsadakis 85c7ecfe64 Update docs about how to enable and disable failwhale 2018-01-04 11:02:18 +00:00
Athanasios Voutsadakis d9f6554956 Add make targets to enable and disable failwhale
Also add a couple of convenience targets and bring back the DNS_NAME
variable.
2018-01-03 17:17:26 +00:00
Sakis bb493bfddd Merge pull request #1739 from alphagov/clean-makefile
Remove unused targets and variables from Makefile
2018-01-03 15:10:24 +00:00
Athanasios Voutsadakis e9d706dde6 Merge branch 'master' into clean-makefile 2018-01-03 13:49:52 +00:00
Rebecca Law e71bbc1bb5 [WIp] 2018-01-03 13:21:00 +00:00
Rebecca Law 1fccb3da5e Merge branch 'master' into download_link-activity-page 2018-01-03 12:48:02 +00:00
Chris Hill-Scott 9586632fec Merge pull request #1723 from alphagov/admin-invite-url
Specify domain to use for invite links
2018-01-03 11:47:15 +00:00
Chris Hill-Scott 86d76baa0d Have admin specify host to use for invite links
When we’re doing user research we often:
- start the task by inviting the participant to a service on Notify
- have them use a prototype version of the admin app, hosted on a
  different domain

Currently we can’t do both of these things together, because the invite
emails always send people to notifications.service.gov.uk (because it’s
the API that sends the emails, and the prototype admin app points at the
production API).

This commit changes the admin app to tell the API which host to use when
creating the invite links.

Depends on:
- [ ] https://github.com/alphagov/notifications-api/pull/1515
2018-01-03 10:37:29 +00:00
Chris Hill-Scott 087c0cbc8c Merge pull request #1740 from alphagov/quis-patch-1
Force example CSV to download, not open in browser
2018-01-02 17:08:15 +00:00
Chris Hill-Scott a604ed60b6 Remove value of download attribute on links
We should standardise on <a download> rather than
<a download="download"> everywhere. The value of the download attribute
tells the browser what filename to use, but is overridden by the
Content-Disposition HTTP header. Since it’s not being used, we should
remove it for the sake of disambiguation.
2018-01-02 16:52:17 +00:00
Athanasios Voutsadakis d8dabcfbbf Remove appspec and related files
These have not been used since the migration to paas, so they can be
removed.
2018-01-02 14:24:26 +00:00
Chris Hill-Scott 85b3978061 Force example CSV to download, not open in browser
We wouldn’t wan’t anyone just seeing the raw CSV data in their browser – it isn’t clear what a user would do with it at that point. And we wouldn’t want it navigating them away from the send page, because this might cause them to lose their place.

This commit forces the file to download using the HTML5 `download` attribute:

> This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. 

– https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
2018-01-02 14:06:39 +00:00
Athanasios Voutsadakis 5a9d5cd065 Remove unused targets and variables from Makefile
Remove `cf-build` and `cf-build-with-docker` as they are not being used
Remove `build-codedeploy-artifact` in favor of `build-paas-artifact`
Remove `upload-codedeploy-artifact` in favor of `upload-paas-artifact`
Remove `deploy`, `check-aws-vars`,
`deploy-suspend-autoscaling-processes`,
`deploy-resume-autoscaling-processes`,
`deploy-check-autoscaling-processes` as they are remains of the pre-paas
era.

Consequently some variables became obsolete, namely: `CODEDEPLOY_PREFIX`
`CODEDEPLOY_APP_NAME`, `DNS_NAME`, `AWS_ACCESS_KEY_ID` and
`AWS_SECRET_ACCESS_KEY` and they are removed.
2018-01-02 12:29:50 +00:00
Chris Hill-Scott 538e3f8097 Merge pull request #1738 from alphagov/markdown-links-emails
Enable Markdown links in emails
2018-01-02 12:22:35 +00:00
Chris Hill-Scott bb460bd300 Enable Markdown links in emails
Depends on:
- [ ] https://github.com/alphagov/notifications-utils/pull/293
- [ ] https://github.com/alphagov/notifications-api/pull/1535
2018-01-02 11:23:32 +00:00
Katie Smith e3cf2bd455 Merge pull request #1726 from alphagov/ignore-case-of-invited-user-email-addresses
Make email addresses case insensitive when inviting users to services
2018-01-02 09:43:33 +00:00
Katie Smith 309396c906 Make email addresses case insensitive when inviting users to services
Email addresses in invites should be case insensitive. This is to stop
the bug where a user creates their account using a lower case email
address (e.g. user1@gov.uk), but is then invited to a service using
their email address in a different case (e.g. USER1.gov.uk) and sees
an error message telling them that they can't accept an invite for a
different email address.
2018-01-02 09:26:49 +00:00
Rebecca Law 259db9c271 Put the download csv link on the activity page.
Still needs some tests, probably some refactoring as well.
2017-12-30 16:54:39 +00:00
Pete Herlihy 31b3147f1d Merge pull request #1734 from alphagov/121-127
121-127 and 51-52 orgs
2017-12-28 11:26:05 +00:00
Pete Herlihy 68f5c0940b Merge branch 'master' into 121-127 2017-12-28 11:16:34 +00:00
Leo Hemsted c8088f5062 Merge pull request #1735 from alphagov/reqs-txt
Update requirements.txt
2017-12-28 11:06:39 +00:00
Pete Herlihy d24fe480fd Bumped to 128 and 53 for NCC Libraries 2017-12-28 10:46:20 +00:00
Leo Hemsted 21961a3bd2 bump utils
utils no longer needs smartypants from git
2017-12-28 10:08:16 +00:00
Leo Hemsted 99db15d975 fix notifications-python-client version import 2017-12-28 10:05:54 +00:00
Leo Hemsted 32db08269d Update requirements_for_test.txt 2017-12-28 10:01:56 +00:00
Leo Hemsted a6d2f9cf4d Update requirements.txt
bring in all pyup changes
2017-12-28 10:00:55 +00:00
Pete Herlihy 742d9ceebc 121-127 and 51-52 orgs
DVLA DM Contact Centre	Driver & Vehicle Licensing Agency
DVLA Contact Centre Complaints	Driver & Vehicle Licensing Agency
School Admissions Buckinghamshire County Council	Buckinghamshire County Council
Submit a GAR	Home Office
G-Cloud Commercial Agreement Team	Crown Commercial Service
Tracio Fflyd	Gwynedd Council
2017-12-27 12:44:16 +00:00
Rebecca Law 1c45c00c9e Merge pull request #1722 from alphagov/letter-on-usage-page
Letters on usage page
2017-12-21 14:29:22 +00:00
Rebecca Law ff01759cce Merge branch 'master' into letter-on-usage-page 2017-12-21 14:24:40 +00:00
Rebecca Law 2f118a78a1 Merge branch 'master' into letter-on-usage-page 2017-12-20 16:31:23 +00:00
Rebecca Law e7f94bd007 Add a template to show letter usage if the service has the letter permission 2017-12-20 16:28:40 +00:00
Chris Hill-Scott 7aa38028a9 Merge pull request #1721 from alphagov/5px-bug
Fix bug horizontal scrollbar being pushed off page
2017-12-20 15:50:40 +00:00
Chris Hill-Scott aa22568c64 Fix bug horizontal scrollbar being pushed off page
We weren’t calculating the height quite right; we were trying to
compensate for something that should have been compensated for in the
`stick-at-top-when-scrolling` code.

Add the 5px to the shim there is required because we’re adding it to the
element that the shim in replacing.
2017-12-20 15:37:34 +00:00
Chris Hill-Scott 86ab2bbe1b Merge pull request #1716 from alphagov/pyup-update-pyexcel-xlsx-0.5.4-to-0.5.5
Update pyexcel-xlsx to 0.5.5
2017-12-20 12:40:01 +00:00
pyup-bot d6ba0546f9 Update pyexcel-xlsx from 0.5.4 to 0.5.5 2017-12-20 12:32:52 +00:00
Chris Hill-Scott 92679d4cef Merge pull request #1686 from alphagov/full-screen-row-errors-3
Allow horizontal scrolling for big spreadsheets
2017-12-20 12:30:42 +00:00