Chris Hill-Scott
01ac70f6a0
Merge pull request #905 from alphagov/sms-sender-no-prefix
...
Don’t prefix text messages is sender name is set
2016-08-26 15:10:34 +01:00
Chris Hill-Scott
c745422578
Don’t prefix text messages is sender name is set
...
Implements:
- [x] alphagov/notifications-utils#66
2016-08-26 14:45:26 +01:00
Leo Hemsted
4fbd23d5e9
Merge pull request #907 from alphagov/plat-admin
...
Platform admin stats rework
2016-08-26 13:51:36 +01:00
minglis
9a60cf49a4
Merge pull request #899 from alphagov/handle-new-jobs-api
...
Handle new jobs api
2016-08-25 09:56:30 +01:00
Martyn Inglis
c61199d17d
Rewrote some slighlt over complicated logic
2016-08-25 09:15:55 +01:00
Leo Hemsted
6ad7b019ea
added tests for reworked platform admin page
2016-08-24 17:39:20 +01:00
Leo Hemsted
b983f020ff
remove old statistics_api_client
...
now unused - replaced mock fn with detailed_services too
2016-08-24 16:26:08 +01:00
Leo Hemsted
7864f9455d
rewrite platform-admin page to use new non-stats endpoints
...
had to change because format from api is slightly different
2016-08-24 15:04:03 +01:00
Martyn Inglis
d56c14e147
Actually use the right exception class.
...
Two HTTPError classes exist. Need to use the one in notifications_python_client.
2016-08-24 12:12:19 +01:00
Martyn Inglis
d149a9691a
Added tests for the 2 use cases:
...
used templates
unused templates
2016-08-24 12:09:38 +01:00
Martyn Inglis
0b95a30e2f
Raise the exception if not a 404
2016-08-24 11:26:34 +01:00
Martyn Inglis
5b2ae43d5d
Wrote some tests around the stats conversions.
...
Properly named the finished parameter.
Handled the root JSON key
2016-08-24 10:35:04 +01:00
Martyn Inglis
c44a6cb65d
Merge branch 'master' into new-api-for-deleting-templates
2016-08-23 09:31:05 +01:00
Martyn Inglis
49b4387b25
Merge branch 'master' into handle-new-template-stats-endpoint
2016-08-23 09:30:38 +01:00
Martyn Inglis
4dec7a7939
Changed order of templates activity page from alphabetical to desc count.
2016-08-23 09:14:21 +01:00
Martyn Inglis
c43fde0ac0
For the brief moment when we have incompatible API versions out,
...
We won't call template stats by template id as the format has changed. So just ask the question "do you want to delete" without the context.
2016-08-22 16:35:14 +01:00
Martyn Inglis
9d25f326b0
Using new endpoint for template statistics
...
- gets notifications by template id, returning the most recent to illustrate the last use of that template.
2016-08-22 16:25:35 +01:00
Martyn Inglis
63fa77fde7
Admin app now in line with new API response for template statistics
...
- dropped the day level aggregate. Now grouped by template only,
2016-08-22 13:14:35 +01:00
Martyn Inglis
55c4443a05
Admin app uses the new API response formats.
2016-08-18 15:30:57 +01:00
Leo Hemsted
fde8d81868
send organisation back in correct variable
2016-08-15 11:15:49 +01:00
Leo Hemsted
3c0f06a36d
set value of radio input to be org id
...
also don't use nil, this isn't ruby
2016-08-15 10:39:34 +01:00
Leo Hemsted
fb510d2522
only set organisation on GET and add allowed fields to service client
...
we were overwriting it before validating the form for POST, so lost info
2016-08-12 12:37:18 +01:00
Leo Hemsted
7c16614538
set current services's values on service branding form
2016-08-12 11:48:04 +01:00
Chris Hill-Scott
6b5e64479a
Add a page to set organisation and branding option
...
Platform admin only.
Adds radio buttons to choose one of:
- three hard-coded branding options
- organisations from a list provided by the API
2016-08-12 10:31:43 +01:00
Leo Hemsted
20c39d24b7
Merge pull request #863 from alphagov/allow-partial-service-updates
...
Allow partial service updates from service API client
2016-08-12 10:07:55 +01:00
Leo Hemsted
6d27d568fe
Merge pull request #865 from alphagov/remove-noti-stats
...
remove unused call to notification statistics
2016-08-11 17:32:07 +01:00
Chris Hill-Scott
002b58a062
Make service API client do partial updates
...
The service API client was updating every attribute of a service. Which,
while kinda clunky, is fine…
…until something calling it doesn’t pass in every attribute of the
current service. It was then defaulting optional parameters to `None`.
Which resulted in a bug whereby every time a service was set to live,
its `reply_to_address` and `sms_sender_name` got overwritten to be
empty.
This commit changes the `update` method to only require the service ID,
and pass whatever other named arguments it received straight through to
the API. The API handles partial updates just fine (I think).
2016-08-11 17:07:33 +01:00
Chris Hill-Scott
a809ef59fb
Merge pull request #861 from alphagov/trial-mode-api-keys
...
Talk about trial mode on API keys page
2016-08-11 16:44:16 +01:00
Chris Hill-Scott
497a9548e3
Merge pull request #859 from alphagov/point-documentation-at-clients
...
Link to client documentation, not API documentation
2016-08-11 16:44:14 +01:00
Leo Hemsted
6fc474a37f
remove unused call to notification statistics
2016-08-11 12:07:50 +01:00
Chris Hill-Scott
e82cb21ecc
Talk about trial mode on API keys page
...
When you make a ‘normal’ API key it won’t work as described until your
serivce is live.
We should make this clear at the point at which you choose this key.
2016-08-10 17:04:22 +01:00
Chris Hill-Scott
7010e35256
Remove example personalisation from template page
...
This was of dubious value, and the syntax probably isn’t accurate for
all languages.
2016-08-10 10:31:21 +01:00
Leo Hemsted
3f3463b1ff
Merge branch 'master' into remove-stats-from-send
2016-08-09 14:41:00 +01:00
Leo Hemsted
f2b6bfbfc2
Merge pull request #815 from alphagov/weekly-refactor
...
Weekly stats aggregate page refactor
2016-08-09 09:37:50 +01:00
Leo Hemsted
f46d10b401
Merge pull request #844 from alphagov/deskpro-user-email
...
Fix deskpro user email
2016-08-08 11:32:13 +01:00
Chris Hill-Scott
652534533b
Rewrite prev/next test to use BeautifulSoup
2016-08-05 11:33:32 +01:00
Chris Hill-Scott
b85b929b11
Lose the confusing list slicing
...
Slicing was to avoid duplicate items in the list. A more idomatic way
to avoid duplicate items in a list is to use a `set` instead.
The order of the list doesn’t really matter, but it’s a lot easier to
test for if the order is consistent.
2016-08-05 11:16:34 +01:00
Chris Hill-Scott
01bb2ada0a
Don’t let _set_status_filters mutate original list
...
Mutating stuff is scary and prone to problems. Better for it to
return a new list instead.
2016-08-05 11:02:30 +01:00
Chris Hill-Scott
e621dddd6d
Don’t show the download until the job is complete
...
The CSV report isn’t very useful until it has all the rows from your
original file. So we shouldn’t show you the link until all notifications
have been created.
Until this point, it’s useful to know how much longer you need to wait,
so this commit adds a percentage count of how much of the file has been
processed.
2016-08-05 10:59:49 +01:00
Chris Hill-Scott
45ae43d987
Include ‘created’ in ‘sending’ bucket
...
The difference between created and sending isn’t something a user should
have to care about. So this commit:
- counts created and sending as the same thing
- displays and notifications which have a status of created as sending
2016-08-05 10:59:49 +01:00
Chris Hill-Scott
51a4ab8060
Change ‘processed’ to ‘total’
...
Processed is not an easy to understand thing, and the overlap with
sending/delivered/failed is not easy to intuit.
‘Total’ is a much easier concept to grasp (it relates directly to your
file), and it’s less distracting because it doesn’t change.
2016-08-05 10:59:49 +01:00
Chris Hill-Scott
3fcfdc1bce
Make sending count down from total rows
...
It’s weird when the sending number ramps up to ~200 or so and then
just floats around as new rows are being added and older ones are being
marked as delivered/failed.
It’s also not great that you don’t know how many rows are in a file, if
you haven’t uploaded it yourself. But the only reason you want to know
this is to know how much work Notify has remaining to do.
So ‘sending’ should start from the total number of rows in the file
and count down.
2016-08-05 10:59:49 +01:00
Chris Hill-Scott
47e7d418eb
Remove redundant if statement
...
We check for the `None` case in the parent `if` statement.
2016-08-05 10:59:49 +01:00
Leo Hemsted
d5238bce5b
handle if user doesn't provide name/email
...
also clean up usage of DESKPRO_PERSON_EMAIL and put it in the conf rather than env
2016-08-04 18:01:08 +01:00
Leo Hemsted
ff46aaa6cc
send user contact info to deskpro correctly
...
previously we were erroneously setting our own reply email rather
than using the user's provided one 😵
2016-08-04 17:02:21 +01:00
Leo Hemsted
e2875ea66e
Merge branch 'master' into remove-stats-from-send
2016-07-29 11:08:42 +01:00
Leo Hemsted
4ea23a7484
move away from statistics_api towards service_api
2016-07-29 10:28:18 +01:00
Leo Hemsted
a7c8e88ecb
add tests and remove old aggregate code
2016-07-28 18:09:17 +01:00
Leo Hemsted
2ab23fa4ef
move weekly summary page over to new notifications/weekly endpoint
2016-07-28 16:23:22 +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