Commit Graph

430 Commits

Author SHA1 Message Date
Katie Smith
1d6716275a Bump utils to bring in changes to logging
Freezing the requirements changes the Werkzeug version to 0.16.0, which
requires a change in how we import an exception
(https://github.com/pallets/werkzeug/blob/master/CHANGES.rst#version-0160)
2019-10-28 10:54:19 +00:00
Leo Hemsted
51f90c17fd pin marshmallow and update flask error handling 2019-09-04 12:14:28 +01:00
Leo Hemsted
01c702535d freeze requirements and bump utils 2019-09-04 10:55:22 +01:00
Athanasios Voutsadakis
02f50975b9 Run make freeze-requirements 2019-08-14 11:52:32 +01:00
Leo Hemsted
9726edf68d bump utils
also remove the `read().splitlines()` pattern from csv.reader usage,
as it's redundant. also add .vscode to gitignore to accomodate my
hipster IDE choices, and add some lines to pytest.ini so just running
`py.test` uses some useful flags
2019-08-02 12:41:03 +01:00
Katie Smith
3a9bc36b54 Bump utils to 33.2.4 2019-07-18 15:27:13 +01:00
Katie Smith
db95a8460b Bump utils to 33.2.3 2019-07-18 14:11:41 +01:00
Chris Hill-Scott
a87a8f3fc6 Bump utils to 33.2.2
Changes:
- https://github.com/alphagov/notifications-utils/compare/33.2.1...33.2.2
2019-07-15 15:16:38 +01:00
Chris Hill-Scott
a2e1c812b2 Bump utils to bring in changes to email HTML
Changes:
https://github.com/alphagov/notifications-utils/compare/33.1.0...33.2.1
2019-07-10 10:17:19 +01:00
Pea Tyczynska
090769a069 Pull cancellable job statuses from utils and fix tests 2019-07-01 15:45:03 +01:00
Katie Smith
284785a7d7 Bump utils to add alt text to email branding
Utils 33.0.0 adds alt text to email branding - the HTMLEmailTemplate now
initializes slightly differently as a result (with both `branding_name`
and `branding_text`).
2019-06-25 16:53:07 +01:00
Katie Smith
06d82161cc Bump utils to 32.0.1
This updates requirements and brings in the change to preserve trailing semicolons
on URLs.
2019-06-03 16:15:46 +01:00
Katie Smith
1fac8e8e29 Bump utils to bring in new fragment count for unicode SMS
Version 32.0.0 of notifications-utils changes how SMS fragment count is
calculated. Certain Welsh characters will cause the SMS to be encoded in
unicode encoding (instead of GSM) so the fragment counts will be lower.
2019-05-15 14:02:07 +01:00
Leo Hemsted
a46394f997 freeze-requirements 2019-05-09 10:55:41 +01:00
pyup-bot
a22e7a0679 Update cffi from 1.12.2 to 1.12.3 2019-04-29 14:05:47 +01:00
Rebecca Law
37e580eed3 Update requirements 2019-04-29 09:46:16 +01:00
Rebecca Law
ee69e70b76 Bump requirements.
Minor weekly updated and a bump for a security alert in urllib3.
Sort list in test, to ensure it passes everytime.
2019-04-26 10:49:25 +01:00
Katie Smith
c02b7edb92 Bump utils to bring in changes to RecipientCSV rows
Bumped utils to version 31.2.5, which changes when the rows of a
RecipientCSV get created. Switched to using `.get_rows()` from
RecipientCSV (a generator) instead of the `.rows` property (which builds
a list of the rows in memory).
2019-04-25 10:58:19 +01:00
Rebecca Law
b30969dbcf Update requirements.txt 2019-04-17 11:35:42 +01:00
Alexey Bezhan
d43b53db73 Stop pyup from trying to upgrade gunicorn 2019-04-10 11:32:11 +01:00
Katie Smith
9b739aaa1c Upgrade flask-marshmallow from 0.9.0 to 0.10.0 2019-03-22 13:43:36 +00:00
Katie Smith
60be63133c Upgrade marshmallow from 2.18.1 to 2.19.1 2019-03-22 13:43:36 +00:00
Katie Smith
5d03b92993 Upgrade marshmallow-sqlalchemy from 0.16.0 to 0.16.1 2019-03-22 13:43:36 +00:00
Katie Smith
05ab6ceeef Upgrade jsonschema from 3.0.0b3 to 3.0.1
Running `make freeze-requirements` causes Werkzeug to be updated from
0.14.1 to 0.15.1, which means that we need to change the message of 1
test.
2019-03-22 13:43:26 +00:00
Chris Hill-Scott
f961110603 Bump utils
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/592
2019-03-18 16:01:08 +00:00
Leo Hemsted
335eeea235 bump requirements
pyup ignore pytest until we sort all the fixtures as functions issues
2019-02-19 16:17:33 +00:00
Leo Hemsted
27fc67bdae reqs bump 2019-02-06 16:49:56 +00:00
Chris Hill-Scott
406496c2a1 Bump utils to 30.7.5
Brings in:
- [x] https://github.com/alphagov/notifications-utils/pull/572
2019-02-01 09:35:42 +00:00
Pea Tyczynska
821a7ccbac Update requirements with flake8 and subdependencies and fix over-indents 2019-01-31 15:08:23 +00:00
Pea (Malgorzata Tyczynska)
29c1a39016 Merge pull request #2316 from alphagov/pyup-update-psycopg2-binary-2.7.5-to-2.7.7
Update psycopg2-binary to 2.7.7
2019-01-25 18:44:20 +00:00
Pea Tyczynska
3f984ecbf6 Update requirements.txt with new version of psycopg2-binary
also auto-bumped sub-dependencies.
2019-01-25 18:36:10 +00:00
Pea (Malgorzata Tyczynska)
8995db0e99 Merge pull request #2297 from alphagov/pyup-update-sqlalchemy-1.2.14-to-1.2.16
Update sqlalchemy to 1.2.16
2019-01-25 18:08:51 +00:00
Pea Tyczynska
aacd8c7c24 Update requirements.txt version of SQLAlchemy and subdependencies 2019-01-25 18:03:07 +00:00
Pea Tyczynska
eca0afe1ff Update requirements.txt with new version of Flask-Migrate and subdependencies 2019-01-25 17:17:58 +00:00
Leo Hemsted
5e7bff08aa Merge pull request #2287 from alphagov/redis-bump
bump utils (inc redis bump)
2019-01-11 10:59:46 +00:00
Leo Hemsted
7f9b64d3df bump utils (inc redis bump) 2019-01-08 15:02:09 +00:00
Alexey Bezhan
47c403f6ab Don't return pagination links for API Message log requests
Flask-SQLAlchemy paginate function issues a separate query to get
the total count of rows for a given filter. This query (with
filters used by the API integration Message log page) is slow for
services with large number of notifications.

Since Message log page doesn't actually allow users to paginate
through the response (it only shows the last 50 messages) we can
use limit instead of paginate, which requires passing in another
flag from admin to the dao method.

`count` flag has been added to `paginate` in March 2018, however
there was no release of flask-sqlalchemy since then, so we need
to pull the dev version of the package from Github.
2019-01-08 13:22:27 +00:00
Leo Hemsted
40a17a0e93 pin redis to 2.x
while we sort out v3 compatibility
2019-01-07 11:14:25 +00:00
Leo Hemsted
2e53ba1e3e bump utils
brings in https://github.com/alphagov/notifications-utils/pull/563
2019-01-04 16:17:52 +00:00
Chris Hill-Scott
98e501c4c4 Bump utils to 30.7.2 2019-01-02 15:45:06 +00:00
Alexey Bezhan
e7a2f4c151 Update utils to 30.7.1 to silence 'Header missing' warnings
Brings in changes from https://github.com/alphagov/notifications-utils/pull/553
2018-11-27 15:50:33 +00:00
Katie Smith
ff06d120e8 Bump notifications-utils to 3.7.0
Bumped notifications-utils to 3.7.0. Version 3.7.0 includes the
`convert_utc_to_bst` and `convert_bst_to_utc` functions and the
`LETTER_PROCESSING_DEADLINE` constant, so these have been removed from
this repo and anywhere using these has now been updated to get these
from `notifications-utils`.

Also bumped pytest by a patch version to bring in a bug fix.
2018-11-26 12:53:39 +00:00
Rebecca Law
0163a6d9b7 Update marshmallow and SqlAlchemy dependencies 2018-11-13 14:19:53 +00:00
Rebecca Law
f5de80f195 Fix conflict 2018-11-07 16:39:04 +00:00
Rebecca Law
39198ed67e Using jsonschema for create_template.
Updated jsonschema to Draft7, this allowed a conditional validation on subject, if template_type == 'email' or 'letter' then subject is required.
This version is backward compatible with Draft4.
When creating TempalteRedacted, I've built the dict depending on if the created_by or created_by_id exists.
2018-11-07 16:17:08 +00:00
Leo Hemsted
267c4fc07b bump requirements, fix pyflake8 things, unpin botocore/awscli 2018-11-07 13:39:08 +00:00
Katie Smith
9ccffb6980 Update notifications-utils to 30.5.6
This brings in the change to email validation which removes obsure white
space from email addresses.
2018-10-29 09:33:55 +00:00
Leo Hemsted
58cd349194 pin itsdangerous to v0.24
itsdangerous v1 uses sha512 instead of sha1 to sign and unsign its
strings. Pin to 0.24 until we figure a migration plan, since it's
used in a few places (In the DB, in email tokens, and sending blobs
to celery at least).
2018-10-22 17:00:04 +01:00
Leo Hemsted
29ea2e51d6 bump requirements
also pyup ignore awscli and botocore because that complex mesh of
dependency hell doesn't play will with pyup opening a new PR every time
that botocore/awscli update (every few days)
2018-10-22 14:43:08 +01:00
Tom Byers
228802ab5a Bump utils to 3.5.5 2018-10-16 12:41:33 +01:00