Commit Graph

7194 Commits

Author SHA1 Message Date
Chris Hill-Scott
afb61bb038 Mark agreement signed by North Tyneside council 2019-02-19 16:49:08 +00:00
Leo Hemsted
c261c41475 Merge pull request #2769 from alphagov/delete-redis-button
Clear redis cache page
2019-02-19 16:20:55 +00:00
Katie Smith
2f4e933b65 Merge pull request #2773 from alphagov/letter-branding-preview
Add preview pane for letter branding
2019-02-19 14:05:21 +00:00
karlchillmaid
2659db4ad0 Merge pull request #2775 from alphagov/updated-message-statuses
Update message status descriptions to match the documentation.
2019-02-19 13:37:51 +00:00
Chris Hill-Scott
376bc9534c Merge pull request #2786 from alphagov/flag-dwp
Flag go live requests from DWP
2019-02-19 12:01:07 +00:00
Leo Hemsted
bfefb115ed move choices from form to view
so that when updating, you don't have to update two separate places
2019-02-19 11:35:34 +00:00
Chris Hill-Scott
032cbf9a17 Flag go live requests from DWP
It’s not enough to check that they’ve signed the agreement. We have to
make sure we inform them every time a service wants to go live.
2019-02-19 11:18:50 +00:00
Katie Smith
d904c7e5c5 Show letter branding preview when selecting a brand
This adds a preview pane which is visible when updating a letter brand.

If JavaScript is enabled, the preview pane shows on the set-letter-branding
page, and submitting the form saves updates the letter brand for a service
immediately. If Javascript is not enabled, there is a separate 'Preview email
branding' page which shows a preview of the brand and has a 'Save' button on it.
2019-02-19 10:44:51 +00:00
Katie Smith
44781e3b69 Change preview pane JS to preview letters as well as emails 2019-02-19 10:44:51 +00:00
Katie Smith
83c10149bd Rename 'email-branding-preview' CSS styles to 'branding-preview'
Renamed since the same styling will be used for previewing letters.
2019-02-19 10:44:51 +00:00
Chris Hill-Scott
8986e1db32 Merge pull request #2785 from alphagov/judicialappointments.digital
Adding judicialappointments.digital to the email domains
2019-02-19 10:35:50 +00:00
Pete Herlihy
a89ad81cdc Adding judicialappointments.digital to the email domains 2019-02-19 10:23:52 +00:00
Chris Hill-Scott
eeeaa5546e Merge pull request #2781 from alphagov/pyup-update-coveralls-1.5.1-to-1.6.0
Update coveralls to 1.6.0
2019-02-19 10:19:28 +00:00
Chris Hill-Scott
203393de23 Merge pull request #2783 from alphagov/pyup-update-flake8-3.7.5-to-3.7.6
Update flake8 to 3.7.6
2019-02-19 10:19:17 +00:00
Chris Hill-Scott
420b17cd49 Merge pull request #2784 from alphagov/torridge.gov.uk
Mark agreement signed by Torridge District Council
2019-02-19 10:19:01 +00:00
Chris Hill-Scott
f0af083892 Mark agreement signed by Torridge District Council 2019-02-19 10:12:09 +00:00
pyup-bot
7be7861473 Update flake8 from 3.7.5 to 3.7.6 2019-02-18 21:48:03 +00:00
pyup-bot
12ddd5c514 Update coveralls from 1.5.1 to 1.6.0 2019-02-18 18:57:55 +00:00
Chris Hill-Scott
86e6f4a843 Merge pull request #2779 from alphagov/oxford.gov.uk
Mark agreement signed by Oxford City Council
2019-02-18 16:14:50 +00:00
Chris Hill-Scott
877556c2d7 Mark agreement signed by Oxford City Council 2019-02-18 16:08:01 +00:00
karlchillmaid
d4516f3f4d Remove 'pending' status 2019-02-18 13:57:01 +00:00
Chris Hill-Scott
61b8e10fc0 Merge pull request #2765 from alphagov/folder-after-delete-template
Return to a template’s folder after deleting it
2019-02-18 13:22:27 +00:00
Chris Hill-Scott
782d705857 Merge pull request #2778 from alphagov/southwark
Added Southwark council agreement
2019-02-18 12:20:51 +00:00
Pete Herlihy
ffa5cb6a1c Added Southwark council agreement 2019-02-18 12:14:14 +00:00
Leo Hemsted
b062a5a13f make banner green (default) instead of red (dangerous) 2019-02-18 12:09:14 +00:00
Pea (Malgorzata Tyczynska)
cdbbdda730 Merge pull request #2771 from alphagov/update_passowrds_blacklist
Update common passwords blacklist
2019-02-18 11:02:40 +00:00
Chris Hill-Scott
d83622d3b4 Merge pull request #2777 from alphagov/antrim-and-newtonabbey-runneymede-east-riding-of-yorkshire
Mark agreement signed by 3 councils
2019-02-18 10:43:41 +00:00
Chris Hill-Scott
24ba4235d1 Mark agreement signed by 3 councils
- Antrim and Newtonabbey
- Runneymede
- East Riding of Yorkshire
2019-02-18 10:12:22 +00:00
karlchillmaid
9450787c95 Removed API statuses
Removed API statuses. Added a link to documentation.
2019-02-15 17:12:28 +00:00
karlchillmaid
f362cebd88 Correct headings 2019-02-15 16:59:41 +00:00
karlchillmaid
c3be75e7f7 Fix typo
Fix typo
2019-02-15 16:54:15 +00:00
karlchillmaid
ca10c86cbf Update message state descriptions
Update message state descriptions to match the agreed versions in the API documentation.

Added API states for letters too.
2019-02-15 16:49:45 +00:00
Pea Tyczynska
3f6e0b6631 Update common passwords blacklist
I did the update following instructions from this commit:
https://github.com/alphagov/notifications-admin/
commit/136662bd309d986a9b7c3e0ee76588612c1ab761

Password repositiories I used were:
darkweb2017-top10000.txt
probable-v2-top12000.txt
twitter-banned.txt
2019-02-15 13:43:46 +00:00
Leo Hemsted
89bfdf27ce add tests 2019-02-15 11:44:09 +00:00
Leo Hemsted
1dcba53daf add clear cache platform admin page
a form that allows you to clear entries from the cache for all of
either users, services or templates. It'll tell you the largest amount
of keys deleted, since there are multiple keys associated with each
model.
2019-02-15 11:44:08 +00:00
Leo Hemsted
f6513613d3 bump utils to bring in redis changes
also set redis url locally to be localhost. redis is disabled by
default so this won't do anything unless you set REDIS_ENABLED=1 as an
environment variable
2019-02-15 11:44:08 +00:00
Leo Hemsted
f6367f2278 move (non-api) clients (inc redis) from app/__init__.py to extensions
when clients are defined in app/__init__.py, it increases the chance of 
cyclical imports. By moving module level client singletons out to a 
separate extensions file, we stop cyclical imports, but keep the same 
code flow - the clients are still initialised in `create_app` in 
`__init__.py`.

The redis client in particular is no longer separate - previously redis 
was set up on the `NotifyAdminAPIClient` base class, but now there's one 
singleton in `app.extensions`. This was done so that we can access redis 
from outside of the existing clients.
2019-02-15 11:44:08 +00:00
Chris Hill-Scott
51e56614c0 Merge pull request #2767 from alphagov/barnsley
Signed contract from Barnsley
2019-02-15 10:12:10 +00:00
Katie Smith
a4b41537d8 Merge pull request #2768 from alphagov/remove-add-template-by-type-links
Removed links to add_template_by_type_endpoint
2019-02-15 09:28:01 +00:00
Katie Smith
862d077f66 Removed links to add_template_by_type_endpoint
The endpoint was removed, but was still linked to in a couple of
places. Some old links were no longer needed, so have been removed.

We do still need a link to `add_template_by_type` on the 'Choose reply'
page - this page is used to allow to let someone pick a template to
reply to inbound SMS with. Since the link only appears if they have no
SMS templates, we now link to `.choose_template` with the templates and
folders form already opened at the option to add a template.
2019-02-15 08:06:06 +00:00
Pete Herlihy
8a79f879ac Signed contract from Barnsley 2019-02-14 14:53:25 +00:00
Chris Hill-Scott
6a66ee0a4f Merge pull request #2756 from alphagov/clean-up-domains
Clean up domains file
2019-02-14 11:27:34 +00:00
Pea (Malgorzata Tyczynska)
42990fe376 Merge pull request #2759 from alphagov/remove_all_service_postage_references
Remove all service postage references
2019-02-14 11:19:15 +00:00
Pea Tyczynska
f0b82e7d3b Remove all service postage references
Since service.postage field has been removed from our model
and database.
2019-02-14 11:05:39 +00:00
Chris Hill-Scott
a7b090d287 Return to a template’s folder after deleting it
It’s disconcerting going back to the root if a template is in a deeply
nested folder. Especially if you’re trying to delete multiple templates.
2019-02-14 10:32:50 +00:00
Chris Hill-Scott
46b56c950d Merge pull request #2764 from alphagov/fix-misaligned-checkboxes
Fix misaligned checkboxes
2019-02-13 17:33:44 +00:00
Chris Hill-Scott
1ddf5b5176 Fix misaligned checkboxes
The template list wasn’t getting the right class applied because the
check was referring to an undefined variable (`can_manage_folders`) that
should have been removed when all other references to it were.
2019-02-13 17:25:06 +00:00
Chris Hill-Scott
b2ed3e01b4 Merge pull request #2752 from alphagov/remove-folder-flag
Remove code that is redundant now that all users have folders
2019-02-13 17:10:24 +00:00
Chris Hill-Scott
303638be92 Merge pull request #2763 from alphagov/hmrc-defra-mod
Add some central gov. domains we don’t yet have
2019-02-13 17:10:12 +00:00
Chris Hill-Scott
d02b4c2148 Add some central gov. domains we don’t yet have
So we can auto-assign their letter logos.

Depending on where people sit in these organisations they my or may not have signed the MOU, so it’s `None` not `True` or `False`.
2019-02-13 17:02:44 +00:00