Leo Hemsted
fb85877c75
add tests for platform admin list ordering
2016-11-14 11:33:39 +00:00
Leo Hemsted
defa93809a
show archived label on platform admin page, and sort last
2016-11-08 15:00:44 +00:00
Leo Hemsted
7a48e25dbb
flash up prompt when archiving a service
...
same way as we do when deleting templates
(also rename button from deactivate -> archive)
2016-11-08 14:33:53 +00:00
Leo Hemsted
a982144821
add deactivate service button on the service settings page
...
only visible for platform admins looking at active services.
no way to undo. no confirm button.
2016-11-02 16:53:40 +00:00
Leo Hemsted
e89f89bd11
remove unused delete service functionality
2016-11-02 10:29:44 +00:00
Leo Hemsted
8803de2cc3
Merge pull request #1000 from alphagov/letters-flag
...
Letters flag
2016-10-31 16:33:12 +00:00
Chris Hill-Scott
da75dd403b
Merge pull request #1004 from alphagov/utils-bump-email-newline
...
Bump utils
2016-10-31 16:36:29 +01:00
Leo Hemsted
96c592be10
add user permissions to the letters endpoints
...
you can get in with either "manage_templates" or "send_letters"
also improve running of a bunch of tests, by parametrising rather than
looping and by cleaning up some mock imports
2016-10-31 14:43:40 +00:00
Leo Hemsted
e0fcb79b9b
Merge branch 'master' of github.com:alphagov/notifications-admin into letters-flag
2016-10-31 14:04:05 +00:00
Chris Hill-Scott
2c6ab4756f
Bump utils
...
Includes:
- [ ] https://github.com/alphagov/notifications-utils/pull/75
2016-10-31 09:19:53 +00:00
Chris Hill-Scott
318e8fdc81
Merge pull request #994 from alphagov/remove-all-services
...
Remove ‘all services’ page
2016-10-31 10:13:49 +01:00
Chris Hill-Scott
5d76335015
Move relevant test, delete others
...
The test for non-gov.uk domains adding services is still relevant, but
probably makes more sense in `test_add_services.py`.
The others are no longer relevant now the ‘All services’ page has gone.
2016-10-31 09:09:10 +00:00
Chris Hill-Scott
fc60016566
Remove ‘all services’ page
...
It’s not needed any more, because the platform admin page does the same
thing better.
2016-10-30 09:16:46 +00:00
Chris Hill-Scott
14b99e5a24
Go to platform admin page when logging in
...
If you’re a platform admin, you should go straight to the platform admin
page when you log in.
The all services page is just a crappier version of the same thing,
without all the stats, etc.
2016-10-30 09:16:35 +00:00
Leo Hemsted
ef00427564
Merge pull request #1001 from alphagov/service-email-fix
...
ensure robustness of email_safe function
2016-10-28 16:18:11 +01:00
Leo Hemsted
13d0039aab
Merge pull request #1002 from alphagov/go-live-typo
...
Update request-to-go-live.html
2016-10-28 16:16:50 +01:00
Leo Hemsted
c6291a614e
Update request-to-go-live.html
...
fix typo
2016-10-28 16:16:26 +01:00
Leo Hemsted
a5d228d837
ensure robustness of email_safe function
...
* remove leading, trailing, or consecutive periods
* strip unicode accents, umlauts, diacritics etc
2016-10-28 16:11:08 +01:00
imdadahad
847bb8ed57
Merge pull request #998 from alphagov/invite-nongov-users
...
Invite nongov users
2016-10-28 15:40:37 +01:00
Imdad Ahad
4dbae97fd1
Update to use raw strings
2016-10-28 12:09:08 +01:00
Imdad Ahad
f3a4432ed7
Stop non-gov user seeing/changing email and add test
2016-10-28 11:45:05 +01:00
Imdad Ahad
e58b63f504
Update regex/config and remove unused imports
2016-10-28 11:44:35 +01:00
Imdad Ahad
a7e5285073
Add tests to ensure non gov user cannot see, access or create service
2016-10-28 10:48:29 +01:00
Imdad Ahad
2676ee9bcf
Add additional tests and refactor
2016-10-28 10:47:32 +01:00
Imdad Ahad
5ecdbb8596
Refactor to use a cleaner and lean regex
2016-10-28 10:45:05 +01:00
Leo Hemsted
f039397533
make letters error if user not logged in
...
also added tests for the various hiding logic points
also added new logged_in_client in conftest - so you dont need to
patch all those stupid API calls for get user and get service
2016-10-27 16:46:51 +01:00
bandesz
df313ad3d4
Add minimal 404 page for Cloudfront
2016-10-27 13:13:49 +01:00
Leo Hemsted
730719b61f
platform admins can toggle services from seeing letters
2016-10-26 16:56:51 +01:00
Leo Hemsted
4a7f136cab
add placeholder letters page
2016-10-26 16:51:36 +01:00
Leo Hemsted
baf3bfbda5
Merge pull request #999 from alphagov/xl-fix
...
fix 500 errors with excel files > 500k size limit
2016-10-26 16:39:14 +01:00
Leo Hemsted
26a985720c
fix 500 errors with excel files > 500k size limit
...
werkzeug's internal workings keep files under 500kb in memory, and files
greater than 500kb as a TemporaryFile
(https://github.com/pallets/werkzeug/blob/0.11-maintenance/werkzeug/formparser.py#L38 )
when we encounter a CSV or TSV, we call normalise_newlines, which invokes
`.read()`, however when we were passing straight into pyexcel, we called
`file.getvalue()` - this exists on BytesIO (small files) but not on
TemporaryFile objects (large files) - we were seeing 500 errors
2016-10-26 16:35:14 +01:00
Imdad Ahad
cd3a8bf533
Remove whitelist user fixture and refactor
2016-10-26 14:15:55 +01:00
Imdad Ahad
4203c7c250
Refactor creating a non-gov user
2016-10-26 14:03:18 +01:00
Imdad Ahad
da0c03e8a1
Remove gov-only email text on page
2016-10-26 14:02:23 +01:00
Imdad Ahad
1fb0e22570
Update forgotten password to allow non-gov with test
2016-10-26 14:01:01 +01:00
Imdad Ahad
78aeb8934b
Add test to invite nonwhitelist user and refactor
2016-10-25 18:13:50 +01:00
Imdad Ahad
bb85782230
Remove link for adding service if nonwhitelist user
2016-10-25 18:12:46 +01:00
Imdad Ahad
84762edef4
Abort 403 if nonwhitelist user tries to add service
2016-10-25 18:11:37 +01:00
Imdad Ahad
f33e0d0e94
Add function to check if given email in whitelist
2016-10-25 18:10:15 +01:00
Imdad Ahad
1b046ab94d
Update invite user form to allow non-whitelist users through
2016-10-25 18:08:20 +01:00
imdadahad
a93333572f
Merge pull request #995 from alphagov/fix-500s
...
Fix 500s
2016-10-25 12:20:31 +01:00
imdadahad
8f10eae9c3
Rename test
2016-10-25 10:46:10 +01:00
Imdad Ahad
2b5894bed9
Add check for current user not authenticated
2016-10-24 17:36:53 +01:00
Pete Herlihy
7bf18c9fd1
Merge pull request #997 from alphagov/go-live-page
...
Updated the request to go live page
2016-10-24 16:28:18 +01:00
Imdad Ahad
a707bd546c
Updates:
...
* Fix tests
* Add tests for new message format
2016-10-24 16:10:41 +01:00
Pete Herlihy
ae48bdef98
Made the request to go live fields mandatory
2016-10-24 15:46:22 +01:00
Pete Herlihy
24cad78ecb
Reverting width of fields to 100% on request to go live
2016-10-24 15:38:00 +01:00
Imdad Ahad
462bacb88c
Merge branch 'go-live-page' of github.com:alphagov/notifications-admin into go-live-page
2016-10-24 15:36:07 +01:00
Imdad Ahad
876832801e
Fix tests and other bits
2016-10-24 15:35:51 +01:00
Pete Herlihy
0bb7fdb216
Added non breaking space to the request to go live page
2016-10-24 15:33:13 +01:00