Leo Hemsted
e2875ea66e
Merge branch 'master' into remove-stats-from-send
2016-07-29 11:08:42 +01:00
minglis
817a52781f
Merge pull request #803 from alphagov/remove-stats-from-job-page
...
Remove stats from job page
2016-07-26 11:24:00 +01:00
minglis
4db855c5b5
Merge pull request #804 from alphagov/too-many-messages
...
Too many messages
2016-07-26 11:23:55 +01:00
Leo Hemsted
45debe0d5b
remove get_statistics_for_service_for_day from codebase
...
two down, three to go
2016-07-25 14:54:58 +01:00
Leo Hemsted
0accd88869
request stats for today from send page from GET /service/:id endpoint
...
also amended test cases to ensure they mock out correct call
2016-07-25 14:46:27 +01:00
Leo Hemsted
aa37dc4929
add tests for send check error messages
2016-07-25 10:41:50 +01:00
Leo Hemsted
d6e6d05893
add tests for send check error messages
2016-07-21 15:39:00 +01:00
Leo Hemsted
57e03349d2
remove get_statistics_for_service from statistics_api_client
2016-07-20 15:54:30 +01:00
Leo Hemsted
fade656e3b
add new get_detailed_service mock to tests that the dashboard
2016-07-20 14:12:22 +01:00
Leo Hemsted
3ffd6c744c
separate detailed and normal service_api_client.get_service
...
to make it easier to mock and control return values
2016-07-20 14:12:22 +01:00
Leo Hemsted
4451a8634d
add detailed flag to GET service api client
...
returns current (past 7 days) notification stats as well as service info
2016-07-20 14:12:22 +01:00
Rebecca Law
43938936f3
If a user has already registered with the email they will get a different email when the register again.
...
The email includes likes to sign in and send feedback
2016-07-12 11:53:30 +01:00
Chris Hill-Scott
50c20ce680
Add formatted notification status to CSV
...
This commit makes the CSV download use the same language for failure
reasons as the frontend.
It also adds a test around this stuff, which was patchily tested before.
2016-07-11 13:12:46 +01:00
Chris Hill-Scott
cddfd6c517
Fix get started banner on dashboard
...
This banner was always being shown because the template was never
getting sent the service’s templates from the API.
This commit fixes this to only show the banner when a service has no
templates, and adds some tests to make sure it doesn’t happen again.
2016-07-04 13:15:32 +01:00
Adam Shimali
3bfcf0f8b3
Users can set a value that appears as the sender of a text message.
...
It can be up to eleven characters alpha numeric, no special characters
allowed.
2016-07-01 14:22:25 +01:00
Chris Hill-Scott
02dccde0bd
Don’t show send/edit links for deleted template
...
Since you can’t really send or edit a deleted template we should show
a message telling you that the template has been deleted.
This is important because deleted templates still show up in the
template statistics.
2016-07-01 13:35:48 +01:00
Rebecca Law
584ad26a1a
Merge branch 'master' into fix-password-changed-at
...
Conflicts:
tests/conftest.py
2016-06-28 11:02:53 +01:00
Rebecca Law
de42391afa
Keep Last changed text.
...
Update user test data to include the password_changed_at attribute.
2016-06-28 10:40:39 +01:00
Rebecca Law
7d64b77e5d
Use password_changed_at field from User object rather than use a hard coded date.
...
https://www.pivotaltracker.com/story/show/122205615
2016-06-27 17:03:15 +01:00
Leo Hemsted
6ce087a7b5
send key_type = normal when creating api keys
2016-06-27 12:02:16 +01:00
Adam Shimali
f030d1cb8a
Move check_messages in admin over to using get notification stats for
...
day.
2016-06-20 13:49:47 +01:00
Chris Hill-Scott
7416070199
Refactor job conftests to eliminate temp variables
...
These tests were assigning something to a variable, then immediately
returning that variable. Why not just return the thing itself?
2016-06-20 09:31:29 +01:00
Chris Hill-Scott
8ca7832541
Filter test messages from jobs on the dashboard
...
While test messages technically have a file and are a job, there’s not
much reason to ever revisit them. So all they end up doing is cluttering
the dashboard and making it harder to find the actual files you’ve
actually uploaded from your computer.
So this commit:
- abstracts the name of test messages into config
- filters out any files whose filename represents a test message
- adds some more thorough tests for the jobs on the dashboard
2016-06-20 09:31:20 +01:00
Leo Hemsted
845fee69c4
fix bug - calling wrong template_statistic endpoint causing 500 error on delete
...
- also unrolled a test with a for loop into a parametrized test
2016-06-14 11:01:33 +01:00
Leo Hemsted
65615360eb
Merge pull request #658 from alphagov/last-used-message
...
Last used message
2016-06-07 16:13:30 +01:00
Leo Hemsted
c4305d1610
only get template statistics for specific template
2016-06-07 14:28:02 +01:00
Leo Hemsted
9db20819ef
tests for last used message
...
also now parsing the datetime correctly and removing its UTC tz info to make comparisons work
2016-06-07 11:50:15 +01:00
Nicholas Staples
d53b4bd7cd
Bug fixed when sending yourself a test the back button links to the correct url.
...
Remove traceback.
2016-06-07 09:55:04 +01:00
Leo Hemsted
9669024f49
table with sending/delivered/failed stats for each service today
2016-05-31 14:10:32 +01:00
Leo Hemsted
f2cca024dd
Merge pull request #619 from alphagov/platform-admin-stats
...
Headline stats on the platform admin page
2016-05-31 13:53:21 +01:00
Leo Hemsted
83b151982e
add stats boxes to platform admin page
...
moved a couple of stats summary functions from dashboard to a shared statistics_utils file
2016-05-31 12:17:06 +01:00
Chris Hill-Scott
16d83faa72
Put uploaded files on the dashboard
...
This commit depends on and uses the data returned by:
- [x] https://github.com/alphagov/notifications-api/pull/345
- [x] https://github.com/alphagov/notifications-api/pull/347
- [x] https://github.com/alphagov/notifications-admin/pull/612
It puts the last 5 jobs on the dashboard. This should be changed to all the jobs
from the last 7 days when that parameter is available.
It also:
- links to the jobs page
- makes the numbers on the jobs page consistent with the dashboard
- makes the numbers on an individual job consistent with the appearance of the
dashboard
2016-05-26 09:00:00 +01:00
Nicholas Staples
2505d1421b
Fixed download bug for services with api notifications. Re-organised the mock job and job_json methods.
2016-05-24 12:35:12 +01:00
Chris Hill-Scott
dd25eb0fe1
Give the job CSV a helpful filename
...
If you’re downloading a bunch of reports from your jobs then it’s useful to be
able to differentiate between them. This commit makes it easy to do so by naming
the file with:
- the name of the template
- when the job was created
2016-05-24 09:57:21 +01:00
Martyn Inglis
664ae33108
Formatting
2016-05-18 13:10:51 +01:00
Chris Hill-Scott
158d4d6c43
Merge pull request #566 from alphagov/refactor-sending
...
Refactor and tidy up sending
2016-05-17 11:40:09 +01:00
Rebecca Law
c4de547b74
Merge pull request #568 from alphagov/template_history_view
...
Template history view
2016-05-17 08:50:40 +01:00
Adam Shimali
18a0b94d98
Admin app settings to save reply to email address for service.
2016-05-16 13:10:51 +01:00
Chris Hill-Scott
e84436d0e1
Make s3upload function return the UUID
...
Generating the UUID can be can be contained within this function,
thus any other part of the code using it doesn’t have to do the
ID-generating stuff itself.
2016-05-16 13:05:41 +01:00
Rebecca Law
d4225de45e
Update json structure for unit tests.
2016-05-16 11:53:22 +01:00
Nicholas Staples
64e7a7b010
Update all dates to use utc, only in the template is it converted to british time.
...
Template versions and template version pages added.
Fix merge changes.
2016-05-12 21:34:39 +01:00
Rebecca Law
9232ab51d5
Merge pull request #554 from alphagov/add-created_by-to-jobs
...
Update the jobs and activity page to show the user that created the job.
2016-05-11 14:55:29 +01:00
Rebecca Law
46d5065297
Update the jobs and activity page to show the user that created the job.
2016-05-11 11:57:31 +01:00
Nicholas Staples
af500a96e7
Update all dates to use utc, only in the template is it converted to british time.
2016-05-11 11:20:45 +01:00
Adam Shimali
5d7ff0cb47
Merge pull request #542 from alphagov/previous-weeks
...
Add a page to show delivery rates week-by-week
2016-05-09 10:17:59 +01:00
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
Chris Hill-Scott
687ccad018
Make send a test teach you how placeholders work
...
This commit does two main things:
- adds textboxes to the send yourself a test page, so you can replace
((name)) with ‘Chris’, or whatever your name is
- rejigs the send page a bit to make it clearer what the CSV upload is
for and how to use it
The idea being that, since most users go into ‘send yourself a test’
first, it teaches them about how placeholders work by making them do the
replacing themselves.
2016-05-05 08:53:00 +01:00
NIcholas Staples
bd0afce745
Merge pull request #527 from alphagov/windows_csv
...
Only check on csv is the file extension.
2016-05-03 12:50:34 +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
f581ff44d0
Only check on csv is the file extension.
...
Update validator logic
Update message for the validator.
2016-05-03 10:10:58 +01:00