Releases: alephdata/servicelayer
v1.22.2
This release includes a fix for the archive functionality in servicelayer. Previously, the generate_url
methods of the Google Cloud Storage archive adapter and the AWS S3 archive adapter were generating URLs instructing AWS S3 and Google Cloud Storage to send a Content-Disposition: inline
header in the response.
When sending this header, most browsers will automatically open the file if the file’s MIME type is supported by the browser. This may not be desired in some cases, for example when downloading files from untrustworthy sources.
Starting with this version of servicelayer, the generated URLs will instead instruct AWS S3 and Google Cloud Storage to send a Content-Disposition: attachment
header. Browsers won’t open files without user interaction if this header is set.
v1.22.1
What's Changed
- Change default port for Prometheus metrics endpoint to 9100 by @tillprochaska in #129
- Misc Promethus changes by @tillprochaska in #130
Full Changelog: v1.22.0...v1.22.1
v1.22.0
What's Changed
- Add basic Prometheus instrumentation for workers by @tillprochaska in #111
- Log worker retry count and retry count exhaustion by @stchris in #113
Dependency upgrades
- Bump pytest-env from 0.8.1 to 1.0.1 by @dependabot in #110
- Bump wheel from 0.40.0 to 0.41.2 by @dependabot in #108
- Bump ruff from 0.0.270 to 0.0.292 by @dependabot in #119
- Bump fakeredis from 2.13.0 to 2.19.0 by @dependabot in #118
- Bump black from 23.3.0 to 23.9.1 by @dependabot in #117
- Bump structlog from 23.1.0 to 23.2.0 by @dependabot in #116
- Bump pytest from 7.3.1 to 7.4.2 by @dependabot in #115
- Bump normality from 2.4.0 to 2.5.0 by @dependabot in #114
- Bump pytest-mock from 3.10.0 to 3.11.1 by @dependabot in #98
New Contributors
- @tillprochaska made their first contribution in #111
Full Changelog: v1.21.2...v1.22.0
v1.21.0
What's Changed
-
Add Sentry support to servicelayer workers by @stchris in #88
This release adds support for sending error tracebacks to sentry.io (or a self-hosted instance). This is controlled by two environment variables: SENTRY_DSN and SENTRY_ENVIRONMENT. Note that you also have to take care of installing the sentry_sdk package.
-
Add and enforce linter (ruff) and code formatter (black) by @stchris in #89
This updates the development environment and CI configuration to be closer to what we have in Aleph.
Full Changelog: v1.20.7...v1.21.0
v1.20.7
v1.20.6
What's Changed
- Bump pika from 1.3.0 to 1.3.1 by @dependabot in #76
- Bump fakeredis from 1.9.1 to 1.10.0 by @dependabot in #77
- Bump fakeredis from 1.10.0 to 1.10.1 by @dependabot in #79
- refactor to suport SQLAlchemy 2.0 migration by @catileptic in #82
New Contributors
- @catileptic made their first contribution in #82
Full Changelog: v1.20.5...v1.20.6
v1.20.5
What's Changed
- Bump fakeredis from 1.8.1 to 1.9.0 by @dependabot in #71
- Bump fakeredis from 1.9.0 to 1.9.1 by @dependabot in #73
- Bump pika from 1.2.0 to 1.3.0 by @dependabot in #68
- Update structlog requirement from <22.0.0,>=20.2.0 to >=20.2.0,<23.0.0 by @dependabot in #70
Full Changelog: v1.20.4...v1.20.5
1.19.1
What's Changed
- Bump fakeredis from 1.7.1 to 1.8 by @dependabot in #66
- Bump fakeredis from 1.8 to 1.8.1 by @dependabot in #67
Full Changelog: v1.19.0...v1.19.1