Commit Graph

7485 Commits

Author SHA1 Message Date
Chris Hill-Scott
b6b0e81349 Merge pull request #1637 from alphagov/pyup-update-pyexcel-io-0.5.3-to-0.5.4
Update pyexcel-io to 0.5.4
2017-11-13 12:23:30 +00:00
Chris Hill-Scott
23a1c388f3 Add a link to download a PDF of a sent letter
This is useful for service teams to keep a copy for their records. The
letter won’t be available in Notify once the 7 day retention period has
passed.
2017-11-13 12:17:16 +00:00
Chris Hill-Scott
87a3bd38eb Retitle choose sender page as first page in flow
We have a sort of principle that when clicking a link, the page you land
on should be titled the same as the link you clicked.

This also reduces unnecessary repetition between the page title and the
form label.
2017-11-13 11:59:39 +00:00
Chris Hill-Scott
beffb9e123 Reword choose sender/reply to address pages
Make it clear that:

- In the case of text messages, it’s about who the message comes from
- In the case of emails, it’s about where the user will reply to
2017-11-13 11:56:05 +00:00
pyup-bot
27254599e5 Update pyexcel-io from 0.5.3 to 0.5.4 2017-11-10 21:17:59 +00:00
Chris Hill-Scott
6995ddc8f5 Don’t list all letter address cols if some missing
If you’ve spelt ‘postcode’ wrong, or missed only ‘address_line_2’ then
it’s pretty noisy to be told that your file needs columns called address
line 1, address line 2, and postcode.

It’s better to be specific about which column you need to fix in order
to get past this error. As a principle, we’ve found it better to tell
get people to fix one error at a time, rather than overwhelm them with a
list of errors to correct – this is why we split the recipient column
errors out separately in the first place.
2017-11-10 10:10:34 +00:00
Chris Hill-Scott
1412933356 Make dashboard totals smaller if numbers are big
Numbers over a billion overflow the two column layout. Numbers over one
hundred thousand overflow the three column layout.

This commit makes the type size smaller in these cases, so that the
numbers still fit in the boxes.
2017-11-09 17:50:19 +00:00
Chris Waszczuk
03447c10da Merge pull request #1633 from gov-cjwaszczuk/master
Updated code used flow
2017-11-09 17:11:28 +00:00
chrisw
04f6d0a5e0 Updated code used flow 2017-11-09 17:06:57 +00:00
Chris Waszczuk
888ac5bf85 Merge pull request #1622 from gov-cjwaszczuk/master
Alter login flow to allow for email auth login
2017-11-09 16:33:32 +00:00
chrisw
0fac7125d2 Don't 'use my own number' if user doesn't have one 2017-11-09 16:09:00 +00:00
chrisw
1effec78e5 alter login flow to allow for email auth login 2017-11-09 16:07:28 +00:00
Rebecca Law
ef5f5ca43a Merge pull request #1628 from alphagov/remove-unused-code-for-sms-sender
Remove unused routes
2017-11-09 15:59:09 +00:00
Leo Hemsted
ca373e9d88 add templates in a loop 2017-11-09 15:54:49 +00:00
Leo Hemsted
724093ac19 Merge pull request #1632 from alphagov/user-activation-stuff-for-real
User activation stuff for real
2017-11-09 15:42:13 +00:00
Leo Hemsted
fcefd2a80c pass in data to posts 2017-11-09 15:02:59 +00:00
Leo Hemsted
2f37b00989 use active-endpoint 2017-11-09 14:58:44 +00:00
Leo Hemsted
cbf1b3ec38 replace user PUT with POSTs
the update_user fn was used in two places, for things that are handled
fine by update_user_attribute. Reduce complexity in the API by killing
the PUT, which is more dangerous (might silently overwrite things that
shouldn't be, like "last_logged_in_at" etc).

Had to change the code not received mobile number form, and the
activate user function.
2017-11-09 14:58:33 +00:00
Leo Hemsted
76b9cb8f81 Merge pull request #1631 from alphagov/revert-1627-remove-user-put
Revert "replace user PUT with POSTs"
2017-11-09 14:57:15 +00:00
Leo Hemsted
bfa6980913 Revert "replace user PUT with POSTs" 2017-11-09 14:57:01 +00:00
Leo Hemsted
395a2fccbb Merge pull request #1630 from alphagov/revert-1629-activate-endpoint
Revert "use new activate endpoint"
2017-11-09 14:55:20 +00:00
Leo Hemsted
b9eca67b0d Revert "use new activate endpoint" 2017-11-09 14:55:08 +00:00
Leo Hemsted
51e91bc627 Merge pull request #1629 from alphagov/activate-endpoint
use new activate endpoint
2017-11-09 14:54:04 +00:00
Leo Hemsted
7b0fcf8c08 use active-endpoint 2017-11-09 14:37:33 +00:00
Leo Hemsted
a2926eaffe Merge pull request #1627 from alphagov/remove-user-put
replace user PUT with POSTs
2017-11-09 14:07:07 +00:00
Rebecca Law
8c9d90c0f8 Remove unused routes 2017-11-09 13:48:27 +00:00
venusbb
1ab4681ff5 Use the revise api endpoints without current-year parameter 2017-11-09 13:18:09 +00:00
Leo Hemsted
302a024d3b replace user PUT with POSTs
the update_user fn was used in two places, for things that are handled
fine by update_user_attribute. Reduce complexity in the API by killing
the PUT, which is more dangerous (might silently overwrite things that
shouldn't be, like "last_logged_in_at" etc).

Had to change the code not received mobile number form, and the
activate user function.
2017-11-09 12:30:12 +00:00
Chris Hill-Scott
86abb7dba9 Refactor for number reuse 2017-11-09 10:56:54 +00:00
venusbb
66b49821a7 Merge branch 'master' of https://github.com/alphagov/notifications-admin into vb-free-sms-history 2017-11-09 09:24:49 +00:00
Chris Hill-Scott
a11e57c50a Merge pull request #1625 from alphagov/revert-1614-fix-escaped-characters-inbound
Revert "Stop escaping special characters in inbound messages"
2017-11-07 17:27:02 +00:00
Chris Hill-Scott
6325f26081 Revert "Stop escaping special characters in inbound messages" 2017-11-07 17:22:57 +00:00
Chris Hill-Scott
a988abefee Merge pull request #1613 from alphagov/pyup-update-notifications-python-client-4.5.0-to-4.6.0
Update notifications-python-client to 4.6.0
2017-11-07 17:13:45 +00:00
Chris Hill-Scott
279c76eb18 Merge pull request #1614 from alphagov/fix-escaped-characters-inbound
Stop escaping special characters in inbound messages
2017-11-07 17:12:07 +00:00
Chris Hill-Scott
dbd4372ca3 Merge pull request #1624 from alphagov/cesg---ncsc
Updated the domain for CHECK link from cesg to ncsc
2017-11-07 17:11:39 +00:00
Pete Herlihy
eb0ce31253 Merge pull request #1623 from alphagov/103-104-and-44-45
103 - 104 and 44 - 45 orgs for DBS
2017-11-07 17:04:56 +00:00
Pete Herlihy
83d8e3d99b Updated the domain for CHECK link from cesg to ncsc 2017-11-07 17:02:22 +00:00
Pete Herlihy
75bca28cc1 103 - 104 and 44 - 45 orgs for DBS 2017-11-07 16:36:05 +00:00
Leo Hemsted
2cd77e628e remove wsgi.py - always serve with whitenoise
We're now running our app as a wsgi app locally, so don't need to
distinguish between the two processes by having wsgi and application.py
whitenoise just serves static files nicely - we don't lose anything
by doing that locally.
2017-11-07 11:50:13 +00:00
Leo Hemsted
0535702707 ensure flask app has right name 2017-11-07 11:23:15 +00:00
Pete Herlihy
43b487c823 Merge pull request #1616 from alphagov/102-103
102 - 103 for FormFinder Admin MOJ
2017-11-06 20:37:20 +00:00
Alexey Bezhan
7ed1156fc7 Merge pull request #1618 from alphagov/add-jshintrc
Move jshint configuration to .jshintrc
2017-11-06 17:46:34 +00:00
Alexey Bezhan
fce80b87b7 Move jshint configuration to .jshintrc
When provided with inline configuration in a gulp task jshint will
still try to load a configuration file from the current directory
or the user's home directory. If user has a global .jshintrc file
that sets different linting options this could lead to `npm test`
output being different from the CI one.

jshint only uses the first file it finds, and .jshintrc in current
directory or any parent of the current directory takes precedence
over the user one, so moving jshint configuration from gulpfile to
.jshintrc should make `npm test` produce the same outcome regardless
of the user config.
2017-11-06 17:37:15 +00:00
Leo Hemsted
4aeb57567a remove flask-script
flask-script has been deprecated by the internal flask.cli module, but
making this carries a few changes with it

* you should add FLASK_APP=application.py and FLASK_DEBUG=1 to your
  environment.sh.
* instead of using `python app.py runserver`, now you must run
  `flask run -p 6012`. The -p command is important - the port must be
  set before the config is loaded, so that it can live reload nicely.
  (https://github.com/pallets/flask/issues/2113#issuecomment-268014481)
* find available commands by just running `flask`.
* run them using flask. eg `flask list_routes`
* define new tasks by giving them the decorator
  `@app.cli.command('task-name')`. Task name isn't needed if it's just
  the same as the function name. Alternatively, if app isn't available
  in the current scope, you can invoke the decorator directly, as seen
  in app/commands.py
2017-11-06 17:33:04 +00:00
Pete Herlihy
430c67e538 102 - 103 for FormFinder Admin MOJ 2017-11-06 16:34:34 +00:00
Chris Hill-Scott
ba2c5a6ee2 Merge pull request #1615 from alphagov/pyup-update-pyexcel-xlsx-0.5.2-to-0.5.4
Update pyexcel-xlsx to 0.5.4
2017-11-06 15:49:14 +00:00
pyup-bot
3c9ef52ffb Update pyexcel-xlsx from 0.5.2 to 0.5.4 2017-11-06 15:45:20 +00:00
Chris Hill-Scott
095845109f Merge pull request #1610 from alphagov/allow-updates-to-sms-prefixing
Allow updates to SMS prefixing setting
2017-11-06 15:43:20 +00:00
Chris Hill-Scott
9e52958fab Merge pull request #1607 from alphagov/pyup-update-pyexcel-xls-0.5.2-to-0.5.4
Update pyexcel-xls to 0.5.4
2017-11-06 15:43:08 +00:00
Chris Hill-Scott
9e600b6051 POST to the correct endpoint when updating
`prefix_sms_with_service_name` is a computed attribute on the service
model. It’s where we get the value from, and the API does some work to
get it from the database, or derive it from the default SMS sender.
It can’t be updated, because it’s not itself a database column.

`prefix_sms` is the name of the actual database column. This is the
thing that we need to update.

This will go away eventually.
2017-11-06 15:08:34 +00:00