Nicholas Staples
2d35f5f36a
All tests passing and merged with master.
2016-01-27 16:30:33 +00:00
NIcholas Staples
68891d8eb8
Merge pull request #112 from alphagov/post-hack-day
...
Show all links in side navigation again
2016-01-27 12:25:00 +00:00
NIcholas Staples
8ff5ee9ffb
Merge pull request #113 from alphagov/real-templates
...
Use real templates when sending text messages
2016-01-27 12:24:52 +00:00
Nicholas Staples
6959d695d3
Working tests, hopefully all code changes done.
2016-01-27 12:22:32 +00:00
Chris Hill-Scott
3a864ad132
Use real templates when sending text messages
...
Sets the value of `template` to the ID of the chosen template when submitting
the form.
2016-01-26 17:17:46 +00:00
Chris Hill-Scott
5637e62493
Remove hint from choose service page
...
We might want this one day, but for now nothing is better than non-real-looking
text.
2016-01-26 17:12:28 +00:00
Chris Hill-Scott
e03813ceef
Make 'API key was revoked' banner green
2016-01-26 16:26:08 +00:00
Adam Shimali
b394a18b4e
Incrementing of failed logins happens on api side
2016-01-26 12:36:05 +00:00
Nicholas Staples
ce81a6f540
Work in progress.
2016-01-25 10:47:27 +00:00
Adam Shimali
3d14296ae0
Re introduced some tests. Moved update email from db to api.
2016-01-24 15:00:50 +00:00
Adam Shimali
4674bd6b68
Reintroduce some tests. A bit of cleanup of mocks.
...
User object fields made a bit clearer and simple test to
verify user added.
2016-01-23 23:14:50 +00:00
Adam Shimali
ba0d0d49e1
Fixed tests
2016-01-22 19:32:08 +00:00
Adam Shimali
f8fc8e951a
If user is logged in and visits / /sign-in or /register they will
...
be redirected to choose service.
2016-01-22 17:24:14 +00:00
Rebecca Law
6ef9becf8f
Able to get services by user id
2016-01-22 16:46:59 +00:00
Nicholas Staples
96d38b8189
Added check for password on service change page, work in progress.
2016-01-22 16:34:36 +00:00
Chris Hill-Scott
cd38d54be7
Make ‘template type’ radio buttons not <select>
...
Because burn your select tags[1]
This commit hard codes the markup for the time being until I can work out how
to get WTForms outputting the markup I want.
1. https://www.youtube.com/watch?v=CUkMCQR4TpY
2016-01-22 14:51:00 +00:00
Chris Hill-Scott
9ee8610da0
Rename content to template content
...
WTForms sets the `id` of a `textarea` element to the variable name to which the
form control is assigned.
This conflicts with the page container, which is styled by targeting `#content`.
2016-01-22 14:51:00 +00:00
Nicholas Staples
5d5505bbff
Delete template fix.
2016-01-22 11:36:49 +00:00
Nicholas Staples
dc7504b5a9
Edit form now populated correctly.
2016-01-22 11:24:33 +00:00
Nicholas Staples
ac433835f0
Fixed viewing templates.
2016-01-22 11:20:39 +00:00
Nicholas Staples
bb853ee95a
Added fixes, displaying templates still needs to be fixed.
2016-01-22 11:14:56 +00:00
Rebecca Law
61893c5c7e
Validation on key name is case insenstive
2016-01-21 16:52:01 +00:00
Rebecca Law
46e0e3fd1b
Merge branch 'master' into api-keys-flow
...
Conflicts:
tests/app/main/views/test_api_keys.py
2016-01-21 15:50:00 +00:00
Rebecca Law
e7713a8b7f
Added a validator so that the key name is unique per service.
2016-01-21 14:15:36 +00:00
Rebecca Law
8737edfad1
Merge branch 'master' of github.com:alphagov/notifications-admin into api-keys-flow
...
Conflicts:
tests/app/main/views/test_api_keys.py
2016-01-21 12:31:28 +00:00
Adam Shimali
167c7b0f13
Fixed some tests. Some broken mocked tests commented out until later
2016-01-21 12:31:09 +00:00
Rebecca Law
90fca93308
Implementation of api key pages.
...
Revoke page will show the correct key name
Show api keys shows a well formatted expiry date
Fix tests for api key endpoints.
2016-01-21 12:28:05 +00:00
Adam Shimali
856b6adb56
First slice full sign in flow
2016-01-21 11:33:53 +00:00
NIcholas Staples
33075178e8
Merge pull request #94 from alphagov/verify-user
...
Verify activate and login user with sms and email code
2016-01-21 09:45:19 +00:00
Rebecca Law
41c775cd68
Created api_key_api_client.
...
Implementation of create, revoke and show api keys for service.
These calls work, however we still need to fix the tests.
2016-01-20 17:32:55 +00:00
Adam Shimali
6a1cc32fd3
Merge pull request #93 from alphagov/send-sms-page-2
...
Put message previews on ‘Send SMS’ page
2016-01-20 16:36:34 +00:00
Chris Hill-Scott
9784a9936c
Add pages for create/view/revoke API keys
...
Copying what they’ve done on GOV.UK Pay, we should let users:
- generate as many keys as they want
- only see the key at time of creation
- give keys a name
- revoke any key at any time (this should be a one way operation)
And based on discussions with @minglis and @servingUpAces, the keys should be
used in conjunction with some kind of service ID, which gets encrypted with the
key. In other words the secret itself never gets sent over the wire.
This commit adds the UI (but not the underlying API integration) for doing the
above.
2016-01-20 16:22:23 +00:00
Adam Shimali
ca3d3240a6
Verify activate and login user with sms and email code
2016-01-20 15:34:42 +00:00
Nicholas Staples
75d7110642
Updated to send email through the client send_email.
2016-01-20 14:45:50 +00:00
Chris Hill-Scott
f36a1bb6c9
Make SMS templates plausible for hack day
...
This commit replaces the previous SMS templates.
I’ve written a couple of new ones which are plausible for developers on the
hack day:
- one with placeholders
- one without
2016-01-20 13:12:21 +00:00
Nicholas Staples
ae781bc58d
Merge remote-tracking branch 'origin/master' into implement_send_sms_and_email
2016-01-20 11:46:57 +00:00
Nicholas Staples
2cc9dc6995
Work in progress.
2016-01-20 11:46:39 +00:00
Adam Shimali
b5cdf86b40
User registration now creates user via api.
...
Verification flow is still to be completed.
Foreign key constraint on verify codes to user table removed.
2016-01-19 22:49:46 +00:00
Adam Shimali
0304838a2f
Merge pull request #88 from alphagov/integrate_template_api
...
Mapped template actions to the api and mocked tests.
2016-01-19 16:47:35 +00:00
Rebecca Law
28658c6cc4
Rename NOTIFY_API_URL to API_HOST_NAME.
...
The NOTIFY_API_URL will point to the alpha api.
2016-01-19 16:39:04 +00:00
Nicholas Staples
f6f4fe15b2
Merge with master.
2016-01-19 16:35:52 +00:00
Adam Shimali
c86b53f7f1
Add user via api
...
Leave original user object in for this slice. Remove on next
2016-01-19 16:07:44 +00:00
Nicholas Staples
cfb3f96b01
Mapped template actions to the api and mocked tests.
2016-01-19 15:54:12 +00:00
Chris Hill-Scott
ba0c9ac6c1
Remove placeholder logs of notifications sent
...
From the:
- dashboard
- activity page
This info will be confusing for users at the hack day, because it will say
they’ve already sent messages when they first sign up.
This involved changing the table macro to have a nice ‘no rows’ message.
2016-01-19 12:04:18 +00:00
Nicholas Staples
a9fead0d82
Merge with master.
2016-01-19 09:49:01 +00:00
Nicholas Staples
609f5f0a8d
Working service integration.
2016-01-18 17:35:28 +00:00
Nicholas Staples
6e19dd7c9c
Added choose_service using services_dao.
2016-01-18 16:01:04 +00:00
Nicholas Staples
a09ac6cbf5
Added choose_service using services_dao.
2016-01-18 11:15:14 +00:00
Chris Hill-Scott
81d4230b61
Page for adding a new service
...
This page is exactly the same as the page for adding your first service, save
the heading text.
So all this commit does is:
- set up two routes (`/add-service`, `/add-service/first`) for each of the two
journeys and change the existing journeys to use the `/add-service/first`
route
- add logic to show different heading text depending on the journey
- add a link to the new (`/add-service`) route in the service chooser dropdown
2016-01-18 11:03:25 +00:00
Chris Hill-Scott
f3459847f1
Move view function into own file, add test
2016-01-16 12:31:01 +00:00