Chris Hill-Scott
50427ecd3f
Add a page to show delivery rates week-by-week
...
Implements
https://github.com/alphagov/notifications-api/pull/286
Will always show weeks as Monday to Sunday.
2016-05-05 10:56:20 +01:00
Adam Shimali
09117e5eeb
Updated flask-login to version 0.3.2
2016-05-04 14:06:14 +01:00
Chris Hill-Scott
00030bc254
Add usage to the dashboard
...
Takes the number of emails and SMS fragments sent from:
https://github.com/alphagov/notifications-api/pull/273
Using these numbers it’s possible to show:
- how much of your allowance is left
- or how much you have spent
For now the allowance and rates are hard coded.
Only for users that have manage service.
2016-05-03 11:06:12 +01:00
NIcholas Staples
96297d2989
Merge pull request #522 from alphagov/sms_msg_limit
...
Sms msg limit
2016-04-29 12:29:45 +01:00
Nicholas Staples
471eac209e
Handling template content size error. All tests passing.
2016-04-29 09:38:59 +01:00
Adam Shimali
a627cf9002
Change activity to view to request 7 days data.
...
Cleaned up filters a bit so that if you want both templates
email and sms is passed.
Added mock assertion to test.
2016-04-28 15:52:20 +01:00
Adam Shimali
7c1867fde6
Record login including remembered user login events to the api based of flask login
...
signals.
2016-04-27 16:39:17 +01:00
Nicholas Staples
3122500ce0
Failed login count set to zero with password reset.
2016-04-26 11:51:34 +01:00
Chris Hill-Scott
0cc499bce4
Make sure the stats client passes params through
...
This was the cause of the dashboard showing statistics from all time.
2016-04-25 11:30:09 +01:00
Adam Shimali
786ce0e071
This is intended to be a temporary solution to allow product
...
owner to see history records until proper design is done for
viewing histiry.
2016-04-21 18:25:18 +01:00
Chris Hill-Scott
312a903e65
Limit templates usage on dashboard to last 7 days
...
Previous the table of templates on the dashboard was for all time.
This commit uses the `limit_days` parameter of the API endpoint to only
show template usage from the last 7 days, aligning with the big numbers
shown above.
2016-04-20 15:02:29 +01:00
Chris Hill-Scott
8d6eb0985b
Merge pull request #471 from alphagov/craig-david
...
Show the last 7 days of statistics on the dashboard
2016-04-20 11:13:51 +01:00
Chris Hill-Scott
be7c7cebbc
Limit big numbers to the last 7 days
...
Implements and depends on:
- https://github.com/alphagov/notifications-api/pull/241
2016-04-19 17:10:39 +01:00
Nicholas Staples
f3210ea992
Functionality added to download all on activity page. All tests passing.
2016-04-19 11:45:36 +01:00
Rebecca Law
848db38573
Added missing import
2016-04-15 11:53:39 +01:00
Nicholas Staples
2085792742
Add created_by to all appropriate requests.
2016-04-15 11:08:19 +01:00
Nicholas Staples
a6d1c5b693
Download CSV option now available.
...
App is updated to use the rebased db.
2016-04-12 15:38:02 +01:00
Nicholas Staples
8f8cdabfff
Upload csv location updated, all tests passing.
2016-04-07 12:56:57 +01:00
Nicholas Staples
aa5fd65171
Status page now relies on the api passing else a 500 will be returned.
2016-04-06 16:36:26 +01:00
Adam Shimali
159fe60c1a
Template statistics now surfaced on dashboard.
...
Job list removed.
Template statistics retrieved at same time as
notification stats.
2016-04-05 11:47:24 +01:00
Nicholas Staples
a41dda8884
Working functionality for filtering notifications and all tests passing.
2016-04-04 16:34:06 +01:00
Rebecca Law
9a2cb60f5e
Update the service name validation in the ServiceNameForm and AddServiceForm to check the email_safe version
...
of the name against a list of all service email_from fields.
Update find_all_service_names to find_all_service_email_from, which returns the email_from of all services.
2016-03-31 15:17:05 +01:00
Rebecca Law
1871243cc8
Check the uniqueness of the service name ignoring case.
...
When the service name changes the email_from changes to.
Renamed find_all_service_names to find_all_service_names_lower.
2016-03-31 10:26:03 +01:00
Rebecca Law
677237ba47
Update email_from when the service name is changed.
...
Update unit tests
Service name is uniqueness is not based on case.
2016-03-30 17:12:00 +01:00
Rebecca Law
e67bb5f716
Fix main_nav for platform admin
...
Renamed or_ to any_
2016-03-30 11:30:18 +01:00
Nicholas Staples
644336b151
Merge with master.
2016-03-29 22:50:40 +01:00
Nicholas Staples
f3689cc113
Functionality added and all tests working.
...
Update correct use of permissions form.
2016-03-23 10:56:14 +00:00
Rebecca Law
a1ef676fab
Merge branch 'master' into platform-admin
...
Conflicts:
app/main/views/send.py
2016-03-21 12:18:44 +00:00
Rebecca Law
461b374f68
Do not throw 404 if email address is not found on sign in.
...
https://www.pivotaltracker.com/story/show/115947639
2016-03-21 11:48:16 +00:00
Rebecca Law
402f55be23
Merge branch 'master' into platform-admin
...
Conflicts:
app/__init__.py
app/main/views/add_service.py
app/main/views/jobs.py
app/templates/main_nav.html
tests/app/main/views/test_dashboard.py
tests/conftest.py
2016-03-18 16:32:10 +00:00
Rebecca Law
13d9acf7dd
Completion of the platform admin user story.
2016-03-18 16:20:37 +00:00
Rebecca Law
d003dc4aa9
[WIP]: fixing unit tests
2016-03-18 10:49:22 +00:00
Adam Shimali
2792bece54
Changed registration flow to first send email verification link that
...
when visited sends sms code for second step of account verification.
At that second step user enters just sms code sent to users mobile
number.
Also moved dao calls that simply proxied calls to client to calling
client directly.
There is still a place where a user will be a sent a code for
verification to their email namely if they update email address.
2016-03-17 15:19:51 +00:00
Rebecca Law
7eb4bcc592
Remove unused method
...
Added more tests
2016-03-17 14:25:28 +00:00
Chris Hill-Scott
d04bde5486
Add API client for notification statistic
...
Adds a client for the endpoints added in
67c4bd2263
2016-03-17 13:15:41 +00:00
Rebecca Law
b28fbc16d7
A platform admin user is able to see a list of all services.
...
Each service on the list is linked to the dashboard page of the service.
The platform admin user can see/edit templates, see/invite users, see/edit service settings.
The platform admin user can not send messages, see/edit api keys and developer docs.
2016-03-17 10:46:47 +00:00
NIcholas Staples
cf195b3a16
Merge pull request #271 from alphagov/remove-dao-layer
...
Start to remove the dao layer
2016-03-14 09:42:22 +00:00
Rebecca Law
34e7d21855
Remove sender module, code was moved to api.
2016-03-13 09:39:29 +00:00
Rebecca Law
6e3bf97af4
Remove services_dao.insert_new_service.
...
Update api_client.create_service to return the service id.
Fix unit tests.
2016-03-13 09:37:17 +00:00
Rebecca Law
9d2fbca557
Merge pull request #264 from alphagov/fix-sign-in-tests
...
Fix to sign in test and user model
2016-03-11 14:59:49 +00:00
Adam Shimali
069a549d57
Bug fix for passing list of empty string if no permissions selected for
...
invite.
Send empty list instead.
2016-03-11 12:50:25 +00:00
Rebecca Law
58c748e703
Noticed that the api was being called when running the unit tests.
...
This also lead me to find the the failed_login_in count was always returning 0.
2016-03-11 11:47:21 +00:00
Rebecca Law
f6d98b63ea
Refactored register_errorhandlers so that it handles HTTPError
...
Remove most cases where we catch HTTPError
2016-03-10 11:53:29 +00:00
Rebecca Law
74a85a532b
Merge branch 'master' into forgot-password
2016-03-09 10:47:00 +00:00
Nicholas Staples
a1c4600b29
Exact permissions added.
2016-03-08 16:54:07 +00:00
Rebecca Law
29ddad60e7
Merge branch 'master' into forgot-password
...
Conflicts:
app/main/views/two_factor.py
2016-03-08 15:03:25 +00:00
Nicholas Staples
eb994ff189
Change put to post for service update.
2016-03-08 10:40:07 +00:00
Rebecca Law
3e969b3640
Re-implement forgot password
2016-03-07 18:18:52 +00:00
minglis
48a8be9ea4
Merge pull request #234 from alphagov/invite-permissions-status
...
[WIP] Add call to api to update invitation to accepted.
2016-03-04 16:18:20 +00:00
Rebecca Law
e1de40429c
Merge pull request #231 from alphagov/add_manage_service_permission
...
Add manage service permission
2016-03-04 11:07:34 +00:00