Граф коммитов

111 Коммитов

Автор SHA1 Сообщение Дата
Stephanie Hobson 8beef7541e Add Contentful integration and convert home page
* Convert English and German home pages to use Contentful (behind a
  switch)
* Add docs for Contentful integration

Fix #9990 #9991 #9480 #10268

Co-authored-by: Paul McLanahan <pmac@mozilla.com>
2021-09-01 15:31:18 -04:00
dependabot[bot] 5175194046 Bump django from 2.2.20 to 2.2.21 in /requirements
Bumps [django](https://github.com/django/django) from 2.2.20 to 2.2.21.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.2.20...2.2.21)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-08 09:51:14 +01:00
dependabot[bot] 62c0bc3229 Bump django from 2.2.13 to 2.2.20 in /requirements
Bumps [django](https://github.com/django/django) from 2.2.13 to 2.2.20.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.2.13...2.2.20)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-21 16:16:23 +01:00
dependabot[bot] daa9b16a78 Bump urllib3 from 1.25.6 to 1.25.8 in /requirements
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.25.6 to 1.25.8.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.25.6...1.25.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-21 13:15:07 +01:00
dependabot[bot] f84fb768fc Bump pillow from 7.2.0 to 8.1.1 in /requirements
Bumps [pillow](https://github.com/python-pillow/Pillow) from 7.2.0 to 8.1.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/7.2.0...8.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-13 15:21:37 +01:00
Paul McLanahan f3b81c8596 Remove Prometheus metrics gathering 2021-04-15 16:10:39 -04:00
dependabot[bot] e73775f21b Bump jinja2 from 2.11.1 to 2.11.3 in /requirements
Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.1 to 2.11.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/2.11.1...2.11.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-13 14:59:39 +01:00
dependabot[bot] 77765ed146 Bump pyyaml from 5.1 to 5.4 in /requirements
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1 to 5.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/5.1...5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-13 09:35:37 +01:00
dependabot[bot] 72c65cd618 Bump bleach from 3.1.5 to 3.3.0 in /requirements
Bumps [bleach](https://github.com/mozilla/bleach) from 3.1.5 to 3.3.0.
- [Release notes](https://github.com/mozilla/bleach/releases)
- [Changelog](https://github.com/mozilla/bleach/blob/master/CHANGES)
- [Commits](https://github.com/mozilla/bleach/compare/v3.1.5...v3.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 17:50:47 +00:00
Paul McLanahan 0c8488d267 Add QR Code generator template helper function
Re #9875
2021-02-12 13:56:53 +00:00
Paul McLanahan 9d6ddb7c07 Enable multiprocess mode for prometheus metrics gathering 2020-11-20 18:12:08 -05:00
Paul McLanahan 0fcf769426 Revert "Revert "Move from Raven to Sentry-SDK for error reporting""
This reverts commit 8847fe3ec2.

Fixing this again plus upgrading pytest libraries
2020-09-24 10:47:18 -04:00
Paul McLanahan 378f34665b Upgrade Pillow to 7.2.0 2020-09-10 16:07:54 +01:00
Alan Alexander 8847fe3ec2 Revert "Move from Raven to Sentry-SDK for error reporting"
This reverts commit ae9360bf43.

Seems to be causing pytest to behave strangely, spinning up tons and tons of extra processes.
2020-07-21 14:42:11 -04:00
Paul McLanahan ae9360bf43 Move from Raven to Sentry-SDK for error reporting
Fix #6378
2020-07-21 10:56:05 -04:00
Paul McLanahan 89a6b9c8bd Reduce the number of latency buckets for Prometheus
The default list of latency buckets contains 17 entries. My proposal
is just 8.

5ca09db237/django_prometheus/middleware.py (L8-L26)

Also add an environment variable to deal with multiple wsgi processes
for prometheus, and use a version of django-prometheus that allows
us to set a metrics namespace.
2020-07-14 15:18:04 -04:00
Paul McLanahan ede8ac6a4a Add prometheus and remove statsd 2020-06-10 10:21:17 -04:00
Paul McLanahan 21b8e4331f
Revert "Add middleware to compress responses with gzip, brotli, or zstandard"
This reverts commit 8951db7886.
2020-06-09 13:17:58 -04:00
Paul McLanahan 8951db7886 Add middleware to compress responses with gzip, brotli, or zstandard
Fix #8983
2020-06-08 09:09:39 +01:00
Paul McLanahan 92e9bd2f61 Upgrade Django to 2.2.13 2020-06-04 09:45:31 +01:00
Paul McLanahan 5584e789a6 Upgrade bleach to 3.1.5 2020-05-29 18:58:47 +01:00
Paul McLanahan 1dcea384e3
Add automation to submit a PR for Fluent file changes (#8786) 2020-04-23 09:50:21 +01:00
Paul McLanahan 11d3567ce2 Upgrade Django to 2.2.11 2020-03-04 17:35:54 +00:00
Paul McLanahan fdf2e903b2 Upgrade Jinja2 to latest version
Also upgrade django-jinja and MarkupSafe.

Fix #8624
2020-03-04 17:10:17 +00:00
Craig Cook 90e171a952
[fix #8465] Remove concert series page (#8507)
Remove concert series page
2020-02-12 14:06:15 -08:00
dependabot[bot] d8914bd9be Bump django from 2.2.9 to 2.2.10 in /requirements
Bumps [django](https://github.com/django/django) from 2.2.9 to 2.2.10.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.2.9...2.2.10)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-11 21:47:35 -05:00
Paul McLanahan 18ea170faf Remove all twitter feed machinery
Fix #8417
2020-01-23 19:27:22 +00:00
Paul McLanahan d5185796e3 Upgrade Django to 2.2.9 2020-01-17 11:38:22 -05:00
dependabot[bot] 8406f8b3bc Bump django from 2.2.5 to 2.2.8 in /requirements
Bumps [django](https://github.com/django/django) from 2.2.5 to 2.2.8.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.2.5...2.2.8)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-04 16:57:12 -05:00
Paul McLanahan 2c8f97887e Upgrade Jinja2 to 2.10.3 (#8214)
Mostly this will help by addressing Python 3.7 warnings.
2019-11-26 12:15:13 -06:00
Gene Wood 096fb7dd6a Mitigate vulnerable dependent packages
Requests : CVE-2018-18074 : https://github.com/advisories/GHSA-x84v-xcm2-53pg
Jinja2 : CVE-2019-10906 : https://github.com/advisories/GHSA-462w-v97r-4m45
2019-11-25 13:28:26 -05:00
Josh Mize 32d1c13d5a Upgrade urllib3 to 1.25.6 to fix #8078 (#8079)
Version 1.25 now verifies HTTPS connections by default
https://urllib3.readthedocs.io/en/latest/user-guide.html#certificate-verification

* Upgrade requests to 2.22.0 to support urllib3 1.25
2019-11-05 09:16:49 +00:00
dependabot[bot] b7a4957f5b Bump pyyaml from 3.11 to 5.1 in /requirements
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 3.11 to 5.1.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/3.11...5.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-30 14:22:20 -04:00
dependabot[bot] f57cd17bfe Bump urllib3 from 1.24.1 to 1.24.2 in /requirements
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.24.1 to 1.24.2.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/master/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.24.1...1.24.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-29 15:11:28 -04:00
dependabot[bot] b514cd2952 Bump pillow from 6.0.0 to 6.2.0 in /requirements
Bumps [pillow](https://github.com/python-pillow/Pillow) from 6.0.0 to 6.2.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/6.0.0...6.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-29 15:10:22 -04:00
Paul McLanahan a8114a786e Add Fluent L10n system and port the Mission page to use it
* Fix dict cache default timeout
* Add fallback strings and checking for translations in template
* Add ftl alias and ftl_lazy for use in py files
* Move git repos and add fluent to l10n_update
* Add percent_translated and required_messages to the l10n object
* Add management commands for converting en-US .lang file and templates
* Add command to convert en-US .lang file to .ftl file
* Using data from above command add a command that will convert a
template to use the .ftl strings
* Update the l10n_update command to update both external l10n repos
* Convert the /mission/ page to Fluent
* Add command to convert .lang translations to .ftl
* Copy en .ftl file when porting translations
  * Removes the original string hash comments as well.
* Add Fluent docs.
* Add indentation and key sorting to metadata JSON output
* Add FTL file linting command
* Update mission template for FTL and remove FTL specific template
* Set l10n cache to 10s when DEBUG=True
* Fix and add tests for get_l10n_path
* Fix some style mistakes in docs and code
* Support multiline group comments for required strings

fix #7725, fix #7822, and fix #7726
2019-10-28 16:46:11 +00:00
Paul McLanahan 651e1a2c42 Upgrade Django to 2.2.5 2019-09-04 09:29:16 +01:00
Paul McLanahan a5c85b5a4f Remove pathlib2 (#7540)
pathlib2 is a backport of the Python 3.4+ standard library
pathlib. This PR just removes the now superfluous library
and switches all code to use the stdlib version. It also cleans
up some flake8 errors in some of the files updated.
2019-08-07 10:05:47 -05:00
Chris Beaven fbf4afbd77 Update Django 2.2.1 -> 2.2.3 2019-07-03 22:34:10 -05:00
Chris Beaven bf67e8bf34 Django 2.2 (#7196)
* Complete removal of nose test artifacts

* Update base requirements to Django 2.2 and python 3 compatibile packages
2019-07-03 02:24:42 -05:00
Paul McLanahan 6580f3dbe5 Update Django from 1.11.20 to 1.11.21 (#7272) 2019-06-03 14:03:53 -05:00
Paul McLanahan 05c453c975 Upgrade Puente and fix args for l10n management commands (#7182)
Django 1.11 switched to argparse for arguments and added a method
for adding them. This was missed for the l10n commands during the
Django upgrade. Also the Puente library needed to be updated to a
supported version.

Fix #7181
2019-05-13 11:39:26 -05:00
Chris Beaven 5c7518d3cf Abstract a lockable management command, removing django-crontab 2019-05-02 10:32:03 -04:00
Chris Beaven aa7146a529 Update django-mozilla-product-details to django 1.11 friendly version 2019-05-02 10:32:03 -04:00
Chris Beaven 94af08e387 Explicitly require typing, now a prerequisite of django-extensions 2019-05-02 10:32:03 -04:00
Chris Beaven aae1cf1d3d Complete removal of nose test artifacts 2019-05-02 10:32:03 -04:00
Chris Beaven e696479c73 Update django-extensions to a 1.11 compatible version 2019-05-02 10:32:03 -04:00
Chris Beaven 36933ab318 Update django-statsd-mozilla to Django 1.11 compatible version 2019-05-02 10:32:03 -04:00
Chris Beaven 6cf507862b Django -> 1.11.20 2019-05-02 10:32:03 -04:00
Josh Mize 1a453dc70c Revert "Upgrade pytest-xdist to latest (1.26.1) (#6767)"
This reverts commit b6aa4437df.
2019-01-31 13:17:53 -05:00