Commit Graph

162 Commits

Author SHA1 Message Date
Leo Hemsted
5d70b0edb0 remove credstash 2017-07-27 12:43:08 +01:00
Chris Hill-Scott
63f75a4cdc Merge pull request #1385 from alphagov/pyup-update-pyexcel-xlsx-0.4.0-to-0.4.1
Update pyexcel-xlsx to 0.4.1
2017-07-26 09:49:52 +01:00
pyup-bot
5eac2bdbd0 Update pyexcel-xlsx from 0.4.0 to 0.4.1 2017-07-26 09:43:40 +01:00
pyup-bot
b19ed257a1 Update pyexcel from 0.5.0 to 0.5.2 2017-07-26 09:43:36 +01:00
Chris Hill-Scott
3d076efeea Merge pull request #1357 from alphagov/pyup-initial-update
Initial Update
2017-07-26 09:43:27 +01:00
Chris Hill-Scott
c356c3c54c Bump utils
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/182
2017-07-20 17:36:58 +01:00
Chris Hill-Scott
cfd44c94f6 Fix error message for missing cells in CSV file
This was causing a 500 because of a bug in utils. It only occurred when
there was missing data for a cell in the recipient column. I’ve also
added a test for missing data in a non-recipient column just in case.
2017-07-20 15:51:07 +01:00
pyup-bot
92739c3acb Pin notifications-python-client to latest version 4.3.1 2017-07-12 09:19:08 +01:00
pyup-bot
a5db576616 Update whitenoise from 1.0.6 to 3.3.0 2017-07-12 09:19:08 +01:00
pyup-bot
38524bc504 Update gunicorn from 19.6.0 to 19.7.1 2017-07-12 09:19:08 +01:00
pyup-bot
b2d77fb795 Update pytz from 2016.4 to 2017.2 2017-07-12 09:19:07 +01:00
pyup-bot
f5bc2e57e7 Update pyexcel-ods3 from 0.1.1 to 0.4.0 2017-07-12 09:19:07 +01:00
pyup-bot
0388fae20e Update pyexcel-xlsx from 0.1.0 to 0.4.0 2017-07-12 09:19:07 +01:00
pyup-bot
7d0aad45dd Update pyexcel-xls from 0.1.0 to 0.4.0 2017-07-12 09:19:07 +01:00
pyup-bot
4a3c0fb8c7 Update pyexcel-io from 0.1.0 to 0.4.2 2017-07-12 09:19:07 +01:00
pyup-bot
1cef7325ce Update pyexcel from 0.2.1 to 0.5.0 2017-07-12 09:19:06 +01:00
pyup-bot
1565214dee Update lxml from 3.6.0 to 3.8.0 2017-07-12 09:19:06 +01:00
pyup-bot
b2fc4e1711 Update py-gfm from 0.1.2 to 0.1.3 2017-07-12 09:19:06 +01:00
pyup-bot
26d766f152 Update credstash from 1.8.0 to 1.13.2 2017-07-12 09:18:11 +01:00
pyup-bot
77ba0703fe Update flask-login from 0.3.2 to 0.4.0 2017-07-12 09:18:11 +01:00
pyup-bot
a42cdca038 Update flask-wtf from 0.11 to 0.14.2 2017-07-12 09:18:11 +01:00
pyup-bot
5529a14e32 Update flask from 0.10.1 to 0.12.2 2017-07-12 09:18:10 +01:00
pyup-bot
81e00e248f Update ago from 0.0.8 to 0.0.9 2017-07-12 09:18:10 +01:00
pyup-bot
d59a69bfe1 Update cffi from 1.9.1 to 1.10.0 2017-07-12 09:18:10 +01:00
Chris Hill-Scott
b69198bc0f Remove unused dependency
We used this for code highlighting when we had documentation in the
admin app.
2017-07-06 14:29:34 +01:00
Chris Hill Scott
702fa1bbb4 Bump utils to count characters in SMS properly
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/172
2017-07-04 09:47:53 +01:00
Chris Hill-Scott
4798258e62 Add redact_missing argument to get_template
Adds an interface to use:
https://github.com/alphagov/notifications-utils/pull/171
2017-06-30 14:04:10 +01:00
Ken Tsang
7d8ccc4cb5 Update requirements to get latest utils 2017-06-16 13:58:56 +01:00
Chris Hill-Scott
09b1e2eb6a Bump utils
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/168/files
2017-06-15 11:12:26 +01:00
Chris Hill-Scott
bff9365d1b Let users send inbound emoji
Implements:
- [ ] https://github.com/alphagov/notifications-utils/pull/167

Required some refactoring to be able to defined the `is_inbound`
variable.
2017-06-10 12:03:37 +01:00
Chris Hill-Scott
313f669690 Roll up messages in inbox
The inbox should work a bit like the one on your phone. You shouldn’t
see all the messages, but the latest one from each of your ‘contacts’
only.
2017-06-06 15:15:36 +01:00
Chris Hill-Scott
8accf7127f Enable placeholders in letter contact block
Depends on:
- [x] https://github.com/alphagov/notifications-api/pull/950
- [x] https://github.com/alphagov/notifications-template-preview/pull/18
- [x] https://github.com/alphagov/notifications-utils/pull/161
- [ ] https://github.com/alphagov/notifications-utils/pull/164
2017-05-18 11:03:39 +01:00
Chris Hill-Scott
d1cd74daa8 Update utils with to make letters unclickable
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/159

Means:
- renaming a bunch of things
- removing any CSS that targeted the link, and making it target the
  containing element too
2017-05-03 12:20:45 +01:00
Chris Hill-Scott
d62fbcb4cb Update utils version 2017-04-27 13:52:03 +01:00
Chris Hill-Scott
36db0ad598 Show all pages of a letter in the app
In research we’ve seen two problems with the click-to-see-PDF thing:

- it’s not very intuitive that the letter is clickable, or what you
  can expect when clicking the letter
- people get lost of stuck in the PDF view because it opens in the same
  tab, or they open it in a new tab and then get find their way back, or
  …

So this commit changes the show template page to show the entire
contents of the letter, same as we do for emails and text messages.

Right now it only does it on the view template page. I think we’ll have
to work out a way of showing some kind of truncated version on the _Send
yourself a test_ and _Preview_ pages. But that’s for later.
2017-04-20 15:57:43 +01:00
Leo Hemsted
6d5f90eea2 Merge branch 'master' into letters-from-a-service 2017-04-11 17:11:51 +01:00
Leo Hemsted
a6318f2674 remove pdf/png code from admin app entirely
while PDFs work on paas, they only do that because it turns out the
python buildpack happens to have imagemagick preinstalled - if that
ever changes then it'd break. so move those to the template preview
service. This also means we can get rid of weazyprint and wand
dependencies
2017-04-10 17:45:22 +01:00
Rebecca Law
c9a519dac7 Update the version of notification-utils. 2017-04-10 15:41:57 +01:00
Rebecca Law
4d49fabcdd Merge branch 'master' into refactor-s3-upload
Conflicts:
	requirements.txt
2017-04-10 11:44:56 +01:00
Rebecca Law
80a82cfdab Update notifications-utils to the latest version 2017-04-10 11:43:45 +01:00
Chris Hill-Scott
f5b4d72f8f Bump utils
Didn’t bump it enough versions as part of https://github.com/alphagov/notifications-admin/pull/1215/files

😔
2017-04-06 17:05:55 +01:00
Rebecca Law
faad2f5a09 correct version number in requirements. 2017-04-06 10:26:31 +01:00
Rebecca Law
b2088762c3 Update requirements with notifications-utils version 2017-04-06 10:24:23 +01:00
Chris Hill-Scott
e34d981dda Fix no. of column headers on breaking change page
The breaking change page wasn’t properly accounting for the fact that
letter recipients span multiple columns – it was assuming they’d only
take up one column like they do for email and SMS.

This commit fixes:
- the number of column headers (A, B, C, …) to be correct
- the count of columns (you will need X columns in your file) to be
  correct

It then parameterises the test to look at a case where a recipient is
in one column (email) and multiple columns (letter).
2017-04-06 10:22:36 +01:00
Chris Hill-Scott
35e12a02a0 Bump Boto version
Our deploys have stopped working. It’s complaining with an `ImportError`
somewhere in Boto:

```
017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR Traceback (most recent call last):
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR   File “/home/vcap/app/.heroku/python/bin/aws”, line 19, in <module>
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR     import awscli.clidriver
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR   File “/app/.heroku/python/lib/python3.5/site-packages/awscli/clidriver.py”, line 33, in <module>
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR     from awscli.help import ProviderHelpCommand
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR   File “/app/.heroku/python/lib/python3.5/site-packages/awscli/help.py”, line 27, in <module>
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR     from awscli.clidocs import ProviderDocumentEventHandler
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR   File “/app/.heroku/python/lib/python3.5/site-packages/awscli/clidocs.py”, line 18, in <module>
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR     from botocore.utils import is_json_value_header
2017-04-04T10:46:26.17+0100 [APP/PROC/WEB/0]ERR ImportError: cannot import name ‘is_json_value_header’
2017-04-04T10:46:26.20+0100 [APP/PROC/WEB/0]OUT Terminating application process with pid
```

Our version of Boto is a year old. Upgrading it to the latest version
seems like a good idea.

Not a breaking version number change. Changelog here:
https://github.com/boto/boto3/blob/develop/CHANGELOG.rst

Complete changes:
https://github.com/boto/boto3/compare/1.3.0...1.4.4
2017-04-04 11:05:04 +01:00
Chris Hill-Scott
b0a995beb2 Handle lists as CSV field values
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/128

This means that `RecipientCSV` will sometimes return the value of a cell
in a spreadsheet as a `list`, not a `string`. So we need to handle that,
rather than putting a Python representation (`['one', 'two', 'three']`)
on the page.

This commit handles it by putting a bulleted list on the page instead.

This breaks our model of showing the spreadsheet as it appears in Excel
or whatever, because we’re showing the aggregation of the columns into a
list. However:
- this is the easier thing to do for now
- it might actually be more usable because it keeps the table narrower
2017-04-04 09:35:15 +01:00
Leo Hemsted
85404f20db bump utils to 13.10.0
pass in the base URL - if not set in the environment this is set to
localhost, but on paas we can pull this out of vcap_services so that
letters render properly on paas
2017-03-27 17:59:06 +01:00
Chris Hill-Scott
c5d418e165 Bump utils to bring in letter layout tweaks
Includes
- [x] https://github.com/alphagov/notifications-utils/pull/127
- [ ] https://github.com/alphagov/notifications-utils/pull/129
2017-03-24 11:35:27 +00:00
Chris Hill-Scott
77b41aa851 Pin six to a version that’s more likely to work
Everything is fine and happy locally and on Jenkins.

Getting a `cannot import name viewkeys` error on AWS.

Based on some Googling, it’s possible that this will fix it.
2017-03-15 13:13:14 +00:00
Chris Hill-Scott
3a8fe23a2d Update utils to get latest version of bleach
Implements:
- [ ] https://github.com/alphagov/notifications-utils/pull/126
2017-03-14 11:29:37 +00:00