Commit Graph

2635 Commits

Author SHA1 Message Date
Rebecca Law
b2cc57fcab Merge pull request #991 from alphagov/add-ucds-domain
Update email domain list.
2016-10-18 15:54:51 +01:00
Rebecca Law
a0ce270cf5 Update email domain list. 2016-10-18 13:51:34 +01:00
Chris Hill-Scott
a5e8de202a Merge pull request #968 from alphagov/new-api-key-format
Present API key as a combination of secret and service ID
2016-10-18 12:25:29 +01:00
Chris Hill-Scott
6946d3af54 Make API key combination of secret and service ID
In research we’ve seen people mix up the service ID and API key because
they’re both 36 character UUIDs. We can’t get rid of the service ID
because it’s used to look up the API key.

Instead, we should change API key to be one long string, which contains
both the service ID, API key and (optionally) the name of the key. For
example:

```
casework_production-8b3aa916-ec82-434e-b0c5-d5d9b371d6a3-dcdc5083-2fee-4fba-8afd-51f3f4bcb7b0
```

We still need to keep the old, separate, key and service ID for a while
until people have updated their clients. But they’re now both on this
page, rather than on two separate pages, which should make for less
fussing anyway.

This shouldn’t be rolled out until the new clients are available.

- [ ] https://github.com/alphagov/notifications-python-client/pull/36
- [ ] https://github.com/alphagov/notifications-node-client/pull/10
- [ ] https://github.com/alphagov/notifications-ruby-client/pull/15
- [ ] https://github.com/alphagov/notifications-java-client/pull/38
- [ ] PHP????
2016-10-18 12:21:00 +01:00
Chris Hill-Scott
4ddc99781f Make revoked message in API keys table lighter
It’s secondary information so works better in the secondary text colour.
2016-10-18 11:57:46 +01:00
Chris Hill-Scott
138b83af68 Merge pull request #988 from alphagov/quis-patch-1
Make page <title> match <h1> on upload page
2016-10-17 17:37:02 +01:00
Pete Herlihy
72f555ba95 Merge pull request #989 from alphagov/link-to-status-page
Updated link to the new status page in the terms of use
2016-10-17 15:46:00 +01:00
Pete Herlihy
697533b347 Updated link to the new status page in the terms of use 2016-10-17 15:35:48 +01:00
Chris Hill-Scott
d75b58435b Make page <title> match <h1> on upload page 2016-10-17 15:23:24 +01:00
Chris Hill-Scott
5a3b247766 Merge pull request #987 from alphagov/fix-50000
Make ‘too many rows’ error actually work
2016-10-17 11:26:29 +01:00
Chris Hill-Scott
fb906fbfdb Make ‘too many rows’ error actually work
Was using the wrong attribute name on the instance of `RecipientCSV`
(needed to match 19df1eb4ef/notifications_utils/recipients.py (L156) )

The ‘can’t show file contents’ message wasn’t showing up, now it is.
2016-10-17 10:20:14 +01:00
Chris Hill-Scott
c4df3d1109 Merge pull request #985 from alphagov/over-50000
Error if a CSV file contains more than 50,000 rows
2016-10-17 09:24:50 +01:00
Chris Hill-Scott
a32dcbf8e3 Error if a CSV file contains more than 50,000 rows
We want to limit the number of rows someone can have in a job, because
it gets too slow to process the file otherwise.

This should be the first error that a user sees, because we can’t work
out if there are other errors until they’ve got the file down to a
processable size.

This also means adding a message to say that the file can’t be displayed
if it doesn’t contain any processed rows.

***

https://www.pivotaltracker.com/story/show/129830161
2016-10-16 10:55:19 +01:00
Leo Hemsted
7ceb1cdd15 Merge pull request #986 from alphagov/utils-bump
bump utils to 9.0.6
2016-10-14 16:00:52 +01:00
Rebecca Law
f02bcd3338 Merge pull request #984 from alphagov/confirm-email-change
Send an email to the user when they change email address
2016-10-14 16:00:47 +01:00
Rebecca Law
789ba58c2e Removed unused form.
And used session.pop to remove NEW_EMAIL from the session.
Also removed variable not being used in user_profile.
2016-10-14 14:46:31 +01:00
Leo Hemsted
92f2d1fef3 bump utils to 9.0.6
includes a slightly stricter regex
2016-10-14 14:36:34 +01:00
Chris Hill-Scott
c6b740976e Merge pull request #981 from alphagov/fix-api-page-firefox
Fix API log page in Firefox
2016-10-14 13:28:38 +01:00
Rebecca Law
a0e7d569e9 Send an email to the user when they change email address
This PR changes the flow to change an email address.
Once the user enter their password, they are told "Check your email".
An email has been sent to them containing a link to notify which contains an encrypted token.
The encrypted token contains the user id and new email address. Once the link is clicked the user's email address is updated to the new email address.
They are redirected to the /user-profile page.

Also in this commit is an update from flask.ext.login to flask_login.
2016-10-13 17:05:37 +01:00
Pete Herlihy
366be2af71 Merge pull request #983 from alphagov/statuspage-footer
Added a link to the system status page
2016-10-13 14:28:59 +01:00
Pete Herlihy
20da2d815e Changed System status to top of the support links. 2016-10-13 14:20:40 +01:00
Pete Herlihy
6cea0aeee9 Added a link to the system status page
Changed the footer headings to better reflect what you get there...
2016-10-13 14:06:40 +01:00
imdadahad
f0dd59e75b Merge pull request #982 from alphagov/add-ids-for-functional-tests
Add ids for dashboard numbers and stats for functional tests
2016-10-13 11:23:27 +01:00
Imdad Ahad
d099a080e6 Add ids for dashboard numbers and stats to be used by the functional tests 2016-10-13 10:52:09 +01:00
Chris Hill-Scott
f561bfe603 Show expander arrow for all browsers
The polyfill we use for details/summary only renders the arrow if the
browser doesn’t natively support the feature.

The latest versions of Firefox _do_ now support the feature (after 5
years), but for some reason they don’t draw the arrow. So this commit
forces the arrow to be polyfilled in all browsers, and hides the browser
default one, for those browsers that do render it.
2016-10-12 15:55:53 +01:00
Chris Hill-Scott
c13f1aa5d1 Fix API log page in Firefox
The details of each notification were not being hidden on page load in
Firefox.

Firefox does not natively support the `<details>` element, so we
polyfill it.

Because of the way the polyfill is written[1]

1. There can’t be any `<div>` elements inside the `<summary>` (this
   commit changes them to be `<span>`s instead, and adds CSS to make
   sure they wrap as before)
2. The contents to be shown/hidden must be wrapped in a `<div>` (which
   this commit adds)

***

1. 48fde82c72/public/javascripts/govuk/details.polyfill.js (L90)
2016-10-12 15:28:38 +01:00
Chris Hill-Scott
4a7273beb4 Merge pull request #978 from alphagov/test-message-filtering
remove filtering of test messages from jobs
2016-10-12 13:58:36 +01:00
Leo Hemsted
12d1b64a90 fix broken string 2016-10-12 13:54:23 +01:00
Leo Hemsted
e4f0656a32 remove filtering of test messages from jobs
this is now down on the api side
2016-10-12 13:54:22 +01:00
Chris Hill-Scott
ee8ac59d70 Merge pull request #980 from alphagov/limit-jobs-7-days
Fix all jobs being shown on the dashboard
2016-10-12 13:37:32 +01:00
Chris Hill-Scott
b48874dbad Fix all jobs being shown on the dashboard
The dashboard was showing the 50 most recent jobs, not the 50 most
recent in the last 7 days.
2016-10-12 11:31:59 +01:00
Leo Hemsted
daa848f4c5 Merge pull request #965 from alphagov/paginate-dashboard
Limit jobs on the dashboard
2016-10-11 11:36:22 +01:00
Chris Hill-Scott
00aa9df350 Merge pull request #977 from alphagov/revert-976-revert-969-dont-create-normal-key-trial-mode
Revert "Revert "Don’t let people create a normal key in trial mode""
2016-10-11 11:07:39 +01:00
Chris Hill-Scott
645e935f55 Revert "Revert "Don’t let people create a normal key in trial mode""
Reverts alphagov/notifications-admin#976
2016-10-11 10:42:11 +01:00
Leo Hemsted
8464c67a3d move job statuses to job_api_client
prevent code duplication and a good excuse to use set subtraction
2016-10-11 10:35:33 +01:00
Leo Hemsted
0fdd38b9c5 add tests for new jobs functionality 2016-10-10 17:15:57 +01:00
Chris Hill-Scott
d13dbe5066 Merge pull request #976 from alphagov/revert-969-dont-create-normal-key-trial-mode
Revert "Don’t let people create a normal key in trial mode"
2016-10-10 17:02:54 +01:00
Chris Hill-Scott
8e323a81a8 Revert "Don’t let people create a normal key in trial mode" 2016-10-10 16:50:46 +01:00
Chris Hill-Scott
13227606a9 Merge pull request #973 from alphagov/remove-documentation
Remove documentation pages
2016-10-10 16:01:09 +01:00
Chris Hill-Scott
f854422396 Merge pull request #974 from alphagov/email-regex
notification-utils 9.0.5
2016-10-10 15:59:40 +01:00
Chris Hill-Scott
fb157ec501 Merge pull request #975 from alphagov/capita-whitelist
Added Capita to whitelist as they're running a service for EFA
2016-10-10 15:59:21 +01:00
Chris Hill-Scott
b733feb8c4 Merge pull request #969 from alphagov/dont-create-normal-key-trial-mode
Don’t let people create a normal key in trial mode
2016-10-10 15:59:13 +01:00
Chris Hill-Scott
1fccc524a1 Remove documentation pages
These are out of date now and potentially misleading.

Adds a new error page for HTTP `410 GONE`. Looks like the 404 page, but
returns the appropriate error code to be a good web citizen.
2016-10-10 15:58:11 +01:00
Leo Hemsted
dbe4400441 paginate jobs page
(only views/jobs/jobs.html, which is the drill-down page, not the dashboard view)
2016-10-10 15:43:01 +01:00
Leo Hemsted
ebb590bc5d clean up generate_previous_next_dict
separate it into two functions to avoid repeatedly passing in the same parameters everywhere, and removed some unused if blocks
2016-10-10 15:43:01 +01:00
Leo Hemsted
479623ee99 fix query param testing once and for all. hopefully
try and avoid comparing URLs as much as possible cos its hard
2016-10-10 15:43:01 +01:00
Leo Hemsted
aa458a15da update tests to reflect new code
also change jobs.py to filter out test jobs (since we dont need to see em)
and to use the new statuses filter rather than filtering on front end
2016-10-10 15:43:01 +01:00
Leo Hemsted
441a2717f2 make dashboard jobs list hit job api twice
once for scheduled jobs, once for past jobs

this ensures that if you have lots of scheduled jobs it can still return your last 50 jobs
2016-10-10 15:43:01 +01:00
Leo Hemsted
be97edce7f make add_rate_to_jobs singular
there was no reason for it to operate on a whole list at a time
2016-10-10 15:43:01 +01:00
Leo Hemsted
549a17c1f7 separate get_job and get_jobs in job_api_client
also remove the status parameter, as we never use it anywhere
2016-10-10 15:43:01 +01:00