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

13866 Коммитов

Автор SHA1 Сообщение Дата
maureenlholland 4e8441904e
Add variation for get-app email basket id (fixes #11206) (#11224)
* Add variation for get-app email basket id (fixes #11206)

* Fix basket ID

* Add variation android and ios links
2022-03-02 15:59:31 +00:00
Alex Gibson ecd01daeb9 Remove adjust.com links from WNP 98 badges (issue #11211) 2022-03-02 11:24:25 +00:00
Alex Gibson d46d1a4476 Fix active locale logic for displaying VPN NWP 98 (Fixes #11262) 2022-03-01 13:52:47 +00:00
Rob Hudson ce9e87659b
Link to Mozilla VPN advisories (#11260) 2022-03-01 09:59:45 +00:00
Rob Hudson df39b58c7b Bump Whitenoise 2022-02-28 18:04:13 -05:00
Steve Jalim 97176a59c0
Remove now-404ing link to a webinar from the H2 2021 Transparency Report page (#11258)
* Remove now-404ing link to a webinar from the H2 2021 Transparency Report page

* Revert "Remove now-404ing link to a webinar from the H2 2021 Transparency Report page"

This reverts commit dd6d053884.

* Fix 404ing link to a webinar from the H2 2021 Transparency Report page
2022-02-28 16:33:37 -05:00
Rob Hudson d83c59cb8c
Updates to support Django 3.2 (#11228)
Django 3.0 fixes:
* Remove six
* Convert LANGUAGES to a list
* Update redirects
  * Django's `re_path` no longer sends they key for matched group name if the value is `None`. This caused some errors as we were depending on the old behavior.
* Add `private` for cache-control headers
* Remove context argument to `from_db_value`
* Re-arrange check due to `re_path` change.
* Tweak contentful query
  * The change to using bitwise operations on the `Q` object here are due to this adding an empty `(AND: )` to the query. While this doesn't change anything about the underlying query, I made this change to clean up the query and match Django documented usage.
* Fix failing contentful test
* `is_ajax` is deprecated
  * The `HttpRequest.is_ajax()` method is deprecated as it relied on a jQuery-specific way of signifying AJAX calls, while current usage tends to use the JavaScript Fetch API. Depending on your use case, you can either write your own AJAX detection method, or use the new HttpRequest.accepts() method if your code depends on the client Accept HTTP header.
* Update docs to follow Django upgrades and syntax

Django 3.2 fixes:
* Set value for the new `DEFAULT_AUTO_FIELD` setting
* Updates for new app config discovery
* Update to new response headers interface.
* Remove regex from URL `path`s
* Change quoting to match black in docs
2022-02-28 10:48:36 -08:00
Alex Gibson 9a87f8aeae
WNP 98 for DE/FR (Fixes #11211) (#11248) 2022-02-28 10:29:04 +00:00
Steve Jalim dc00f8661b
Add initial ADR for pip-compile-multi (#11254) 2022-02-28 10:03:46 +00:00
Craig Cook ba8ff350c7
Add Turning Red promo banner [fix #11195] (#11218) 2022-02-25 10:48:20 -08:00
Reem H 3489a9dbc2
Bundling Protocol's split component (#11107) 2022-02-25 10:40:47 +00:00
Rob Hudson 42055fe4c5
Bump pre-commit libs and fixes (#11251) 2022-02-24 15:32:11 -08:00
Reem H 32bfde97c6
updated 2019 link to 2020 (#11253) 2022-02-24 17:46:29 -05:00
Steve Jalim 1df9109206 Clarify that it's data flowing around, not rendered sitemaps 2022-02-24 14:06:21 -05:00
Steve Jalim 1c0f3b600a Add initial summary of how sitemap generation works 2022-02-24 09:43:19 -05:00
Alex Gibson c957bd3987 Remove obsolete sanity markers from functional tests 2022-02-24 12:08:37 +00:00
Alex Gibson f8e58f2682 Add Transparency Report for H2 2021 (Fixes #11214) 2022-02-24 12:08:19 +00:00
Steve Jalim 29c2caf001 Minor fix to the label element when showing the XUL namespace page
Because we're linking off to a Wikipedia page, calling it 'documentation'
didn't seem appropriate.
2022-02-24 12:07:59 +00:00
Paul McLanahan 89c8644608 Add redirect support for /truecolours
Our friends in Canada and the UK might spell it this way if they hear
about the campaign. Let's support them.
2022-02-23 16:52:44 -05:00
Alex Gibson b5af1d1f77 Fix variable names in enterprise.ftl 2022-02-23 17:38:04 +00:00
Moises Sanchez ef6edd2160
Replace mpn in XUL (#11242) 2022-02-23 17:23:20 +00:00
Alex Gibson e29943d695 Fix ftl config filename in pontoon.toml 2022-02-23 16:29:26 +00:00
Steve Jalim db6453a753
Update docs re pyenv-virtualenv setup (#11239)
* Update docs re pyenv-virtualenv setup

* Add required PYENV_ROOT export to local install guide
2022-02-23 14:16:51 +00:00
Alex Gibson 2c529367f6 Use lowercase i for Internet in .ftl files 2022-02-23 09:59:52 +00:00
Alan Alexander adffeba8e5 Skipping the compatibility test for not-prod
We're not paying for the extra backwards compatability,
so it makes sense to skip this test for dev/stage
2022-02-22 12:31:26 -05:00
Alex Gibson 8261725f51 No need to escape IE download button query params (Fixes #11154) 2022-02-22 16:39:39 +00:00
Steve Jalim 33121eb7f2
Fix broken hyperlinks (#11225)
* Fix hyperlink to security@mozilla.com to be a mailto:

* Fix broken link in MPL2.0 FAQs back to MPL itself

* Fix link to National Security Requests info

This fixes a bad link on https://www.mozilla.org/en-US/about/policy/transparency/
in the section How does Mozilla handle Government Demands for User Data?

* Fix broken links on Safari page

* Fix broken link to Norwegian locale from the /locales/ page

* Fix broken link in VPN 'What is an IP address' page - variable no longer available

Added a new FTL string and used the original (semi broken) one as a fallback for now

* Make outdated string obvious

Co-authored-by: Alex Gibson <alexgibson@users.noreply.github.com>

Co-authored-by: Alex Gibson <alexgibson@users.noreply.github.com>
2022-02-22 16:18:10 +00:00
maureenlholland 75d8073ad5 Add basket docs link [no bug] 2022-02-22 15:38:50 +00:00
dependabot[bot] 8d1e5aa9fc Bump nanoid from 3.1.30 to 3.2.0
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 13:40:14 +00:00
dependabot[bot] 3373f748d1 Bump follow-redirects from 1.14.4 to 1.14.9
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.9.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.9)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 13:33:10 +00:00
dependabot[bot] e25f1c1c46 Bump karma from 6.3.5 to 6.3.14
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.5 to 6.3.14.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.5...v6.3.14)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-22 13:18:24 +00:00
Alex Gibson c655e5bc40
Add new supported countries to VPN landing page (Fixes #11213) (#11230) 2022-02-21 13:59:03 +00:00
Alex Gibson d8efb304af
Add WNP 98 for EU (VPN) (Fixes #11210) (#11223) 2022-02-21 13:57:58 +00:00
Sylvestre Ledru a293632967
Some minor improvements on the access policy doc (#11231)
* access policy: Improve the rendering

* access policy: Comment the old content until it is addressed

* Minor fix around HTML comment

Co-authored-by: Steve Jalim <steve@stevejalim.net>
2022-02-21 13:54:19 +00:00
Ayushsunny e7db88b8b1 fixing of non-functional stylesheet URL from credits page 2022-02-21 09:34:25 +00:00
maureenlholland df36d573ce
Fix docs syntax [no bug] (#11222) 2022-02-18 14:00:30 +00:00
Alex Gibson 8c61e0aa88
Update install docs with correct virtualenv command (#11220) 2022-02-18 12:21:18 +00:00
Alan c4a029e23b
Adding cdn tests (#11129)
* Adding cdn tests

Using a cdn mark to allow skipping or only running the cdn tests
uses ssllabs to get the tls/cipher information
That can be fairly slow, so trying to ensure it only happens once per run - so caching to a json file

* migrating existing tests into the functional area

* formatting failed in circle
2022-02-17 10:29:19 -08:00
Paul McLanahan 1748a8091c Add redirects for /turningred and /truecolors
Include default query params if none are incoming with the request,
otherwise forward the ones from the request.
2022-02-15 15:05:31 -05:00
Benjamin Beurdouche e6c875774a
Update module owners in the Access Policy page (#11134) 2022-02-11 17:07:48 +00:00
Sylvestre Ledru e947adee06
access policy: Update some old content (#11198) 2022-02-11 11:10:44 +00:00
Steve Jalim 501664c8cb
Quick fix to handle WP posts having no tags data returned (#11194) 2022-02-08 20:50:29 +00:00
Steve Jalim 06a533d030
Upgrade Bedrock to Python 3.9 and update dependency management tooling (#11176)
* Move Bedrock to pip-compile-multi for easier Python dependency management

This changeset adds tooling to ease dependency management and also rationalises
our requirements files.

Before, we were just using hashin to manually hash pinned deps straight into a requirements file

Now we're using pip-compile-multi, which sits on top of pip-tools to do this.
We now get:
* Simpler syntax for adding and pinning dependencies via *.in files
* Automatic hash generation when the *.txt requirements files are produced

The dependency compilation/update tooling runs in a Docker container, so will be compatible
with the deployed service's containers.

We're also rationalising the existing split of dependency files:

* base -> being retired and used as the basis for prod requirements
* migration -> being retired and the two deps still useful to us (for moz-l10n-lint)
  added to dev deps
* dev -> now extends from the prod requirements. We're not too concerned about image
  size for dev and test builds
* prod -> still exists, but includes the base deps
* docs -> still exists as a standalone file, but also follows the "*.in"-file pattern

* Regenerate dependency files using pip-compile-multi

Note that to avoid clashes, the following balances were made:

* Keep meinheld at the lower version used in prod.txt, not the dev.txt one -- for now at least
* Downgrade Markdown to 3.3 to avoid a clash over importlib-metadata version
* Remove importlib-metadata==4.10.1 altogether as a hard pin and let pip-compile-multi work out the best fit

* Update docs to reference pip-compile-multi, replacing now-redundant notes on hashin

* Update Dockerfile to copy over and use freshly recut dependency files

* Attempting to tune deps to allow local builds to work, not just Docker ones

* Update pip-compile-multi config to inject a custom header that explains how to rebuild reqs

* Update Bedrock to use Python 3.9

* Update base images
* Update CI
* Update dependencies to make install run -- this involved manually using hashin to upgrade two hashed deps (greenlet and meinheld) then re-running make compile-requirements to update the top-level hash in prod.txt. It's a bit of a chicken-and-egg situation when the deps are built/re-locked in a container but you can't build the container itself unless the deps are viable, but it worked

* Upgrade everett in order to remove configobj, which is redundant and causing local install issues on MacOS M1

* Drop backports.cached-property and typed-ast from dev reqs because we don't need them on 3.9

* Update docs with local-installation guidance for pyenv and pyenv-virtualenv

* Remove 'upgrade requirements' option

Given that the --upgrade flag is implicitly / by-default true with
pip-compile-multi anyway, plus the fact we're hard-pininng everything,
there's no point having an explicit 'upgrade' path - so let's remove it

* Docs tweak to suggest simpler virtualenv name

* Update help option in Makefile

* Pin version of pip in the compile-requirements script

When unpinned, the build suddenly broke, so we're keeping it under strict
limits for now

* Upgrade Django to 2.2.27

* Upgrade newrelic package to latest, incl py3.9 support

* Switch to Python 3.9 Debian bullseye image, from buster

* Rationalise dependency input files to remove over-pinned subdeps

When we moved from hand-managed requirements.txt files, we were taking on files
that had literally every dependency and thier sub-deps in them. We don't want
the input (*.in) files to reference those subdeps, so this changeset tries to
thin things out and remove them

Note that the diff shows this was successful - there are very few changes to
the dependencies being mentioned in the output *.txt files, and the ones that
are there are all deliberate changes (eg removing 'pbr')

* Drop unused tenacity dep, bump APScheduler and link to a Python 3.9-patched version of mdx-outline

* Add --require-hashes option to pip usage in Dockerfile

It's implicitly set because the reqs files feature --hash=XXX
but better to be explicit

* Drop what appear to be redundant top-level dev dependencies

regex, pep8 and wcwidth appear to be subdeps that don't need pinning.

The others appear to not be in used, based on a search of the codebase.

Tests till pass

* Thin out some unnecessary top-level deps in prod.in

 - funcsigs - old backport, redundant
 - lxml - over-pinned subdep of BeautifulSoup?
 - typing_extensions - over-pinned subdep
 - zipp - over-pinned subdep

* Cap pip version to 21 for pip-compile-multi for now

* Reinstate lxml as a first-class dep: BeautifulSoup needs it as a user-specified parser

* Fix typo in pip-compile-multi header

* Hard-pin latest working combo of pip + pip-tools in compile-requirements.sh

* Update docs explaining why we're using 3.9.10 locally
2022-02-08 16:59:17 +00:00
Craig Cook 856587d32b
Add whatsnew page for Firefox 97 [fix #11172] (#11186) 2022-02-04 08:58:25 -08:00
maureenlholland 6feabef7b7 Remove Firefox Reality (fixes #11118) 2022-02-03 16:24:44 -05:00
Paul McLanahan a57449e030 Use default language if none match accept-language
Fix bug 1752823
2022-01-31 11:47:03 -05:00
maureenlholland 0192b33ad4 Conditionally include pocket dev connect url 2022-01-28 10:41:28 -05:00
maureenlholland 0b28ded73e Include bedrock/settings in pre-config check 2022-01-28 10:41:28 -05:00
maureenlholland b6be59cc6c Add snowplow to pocket (fixes #11171) 2022-01-28 10:41:28 -05:00
Ed Lee 91430e8f34 Add taskbar and votefox images for Emotive Continuous Onboarding 2022-01-27 17:52:25 -05:00