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

278 Коммитов

Автор SHA1 Сообщение Дата
Andrew Williamson b9e30e21a6
python3 unicode fixes for theme_update.py (#10960) 2019-03-19 14:41:51 +00:00
Andrew Williamson 85e9ea6f03
use utf8mb4 everywhere; replace reset_db (#10935) 2019-03-18 10:57:49 +00:00
Mathieu Pillard ff5071b4d1 Python 3 fixes to unblock some of the test jobs
Notably, this should fix all the tests in the 'assets' job.
2019-01-16 12:09:35 +01:00
Mathieu Pillard f5de6a2bcd Replace forgotten urlparse import by six.moves.urllib_parse for Python 3 compat 2019-01-08 14:30:03 +01:00
Andrew Williamson 8daf0e5383
remove UA testing from theme updates; add setting to disable serving migrated lwts (#9977) 2018-11-13 13:12:41 +00:00
Andrew Williamson f7414e156b
change z.update debug to z.addons info 2018-11-09 13:05:30 +00:00
Andrew Williamson b5f076613a
add logging to lwt update check service (#9936) 2018-11-08 18:59:17 +00:00
Andrew Williamson d5d41202e5
don't serve lwt migrated to static themes to android (#9875) 2018-11-06 11:00:01 +00:00
pyup.io bot 60dd98e48f Update flake8 to 3.6.0 (#9795) 2018-11-05 12:39:42 +00:00
Andrew Williamson 8244f9873f
drop xml update.py support (#9380) 2018-09-07 15:55:44 +01:00
Andrew Williamson 50add9064b
serve migrated theme to lwt update check (#8718) 2018-07-03 18:20:06 +01:00
Mathieu Pillard 7faada75cf Remove code related to Firefox hotfixes, they are no longer used
They were replaced by system add-ons, which operate outside AMO.
2018-06-28 17:23:44 +02:00
Christopher Grebs a2ddf0d5f4
Avoid logging through mozlog in tests experiment (#8528)
Closes #8451 (Doesn't necessary fix it, we don't want a unified logging-level but this PR makes logging much clearer.)

* Don't use verbose mode for tox
* Refactor logging settings
* Fix services logging, correct dev and stage settings, update docs
* Update logging
* Be vigilent about disabling all logging
* Remove MOZLOG_NAME from stage settings
2018-06-18 06:10:26 -07:00
Mathieu Pillard 11f5df4204 Remove 'dataurl' from theme update data - it's not used by Firefox 2018-06-13 15:01:57 -07:00
Mathieu Pillard e9b9c40681 Increase theme update caching duration to 24 hours 2018-06-13 12:01:06 -07:00
Andrew Williamson 31937a520f
Update update.py (#8452) 2018-06-06 12:24:07 +01:00
Andrew Williamson 14616eb25d
py3 change wasn't so friendy! - fix services update (#8449) 2018-06-06 11:27:59 +01:00
Andrew Williamson b457a5cece
some py3 friendly syntax changes (#8372) 2018-05-30 11:29:13 +01:00
Mathieu Pillard 131c8f22db
Serve JSON update manifests instead of RDF, but to Firefox only (#8271)
Serve JSON update manifests instead of RDF, but to Firefox only
2018-05-17 14:39:46 +02:00
Mathieu Pillard 5e0b51d44f Revert "Serve JSON update manifests instead of RDF (#8175)"
This reverts commit 2b3cd80154.

Somehow, it's breaking *some* seamonkey updates on dev.
2018-05-15 12:37:22 +02:00
Andrew Williamson cae6c3ad2f
drop mozilla-logger and all logging1.0 support (#8242)
* drop mozilla-logger and all logging1.0 support

* drop (hopefully) unused SYSLOG_CSP setting

* drop 'error' formatter; refactor 'debug' formatter format a little
2018-05-11 18:37:42 +01:00
Mathieu Pillard 2b3cd80154
Serve JSON update manifests instead of RDF (#8175)
* Serve JSON update manifests instead of RDF

Also remove code to support hotfixes for super old versions of Firefox

* Fix get_output() call and add basic end-to-end test

* Avoid hitting actual database in end-to-end test of update service

* Remove now useless freeze_time decorator
2018-05-09 13:32:50 +02:00
Mathieu Pillard 7175210ec8 Remove obsolete Plugin Finder Service 2018-04-30 12:54:33 +02:00
Andreas Wagner 828dda1937
Remove all beta versions code (#8100)
Remove all beta versions code
2018-04-24 21:17:03 +02:00
Andreas Wagner 5ac2a96579
Redirect beta versions to newer stable versions in versioncheck (#7831)
Redirect beta versions to newer stable versions in versioncheck
2018-03-16 13:34:20 +01:00
Mathieu Pillard 9cf33ae6c5 Use Persona checksum to cachebust its images 2018-03-01 15:20:01 +01:00
Christopher Grebs c3c31665e2
Revert "Revert "Refactor our tests and code to make better use of settings.TMP_PATH""
This reverts commit 3f7fe78093.
2018-02-02 12:47:50 +01:00
Mathieu Pillard 8d79f08b1e Return a blank string for footerURL in theme update if footer is absent 2018-01-31 20:24:02 +01:00
Christopher Grebs 3f7fe78093
Revert "Refactor our tests and code to make better use of settings.TMP_PATH"
This reverts commit 778a94871a.
2018-01-30 14:22:23 +01:00
Christopher Grebs 778a94871a
Refactor our tests and code to make better use of settings.TMP_PATH
* Also let the dot in py.test die so that upstream is happy again :)
 * Update tox to 2.9.1
 * Make sure that our urlconf is reset *after* we set MEDIA_ROOT
 * Adapt file extraction handling to new TMP_PATH prefixes
 * Less dump_apps hacks since the apps.json file isn't present at the
   beginning of any test now thanks to temporary paths for every separate
   test
 * Rewrite read-only-mode tests to cope with pytest settings fixture
 * Remove atexit hack from settings_test

This will probably make things a lot easier for ui-tests as well.

Fixes #7205
Fixes #7206
2018-01-05 16:41:35 +01:00
Mathieu Pillard 19dc95ee70 Rename D2C_MAX_VERSIONS to D2C_MIN_VERSIONS (makes more sense that way) 2017-11-07 17:33:05 +01:00
Christopher Grebs 2573ea4a9c
No bare exception catching anymore. 2017-10-30 10:54:02 +01:00
Andrew Williamson e78bdf21f2 fix import error in update service - I think (#6656) 2017-10-12 11:52:01 +01:00
Andrew Williamson 956ffe8685 refactor, then flake8 our services py (#6583) 2017-10-05 13:48:52 +01:00
Christopher Grebs 78145b4670 Remove more unused code. Most of it are leftovers from other cleanups. 2017-04-07 17:50:42 +07:00
Mathieu Pillard 19177a796e Move commonware utils we use to our own repos
- Middlewares are integrated to existing ones or moved to amo.middlewares
- Logging is moved to core.logger
- All logging calls are modified to use core.logger
- In addition, get/set_user(), get/set_remote_addr() are moved to core
  to circumvent import issues.
2017-03-08 12:01:03 +01:00
Mathieu Pillard 6007338d66 Don't serve updates to disabled add-ons
This matters only for edge cases where the files are somehow not
disabled.
2017-02-14 13:23:21 +01:00
Mathieu Pillard 61cbdbae22 Remove obsolete code dealing with mirrors
We haven't been mirroring add-on files to external servers for a
long time: currently we just have files in 2 different locations
depending on whether they are disabled or not, and the CDN
mirrors the public ones.

All code dealing with mirrors is therefore obsolete.
{File}.file_path is the same thing as {File}.mirror_file_path,
making the latter redundant and copy_to_mirror(),
as well as amo.MIRROR_STATUSES, useless.

Fix #3887
2016-12-09 12:28:47 -10:00
Mathieu Pillard ed8f9612ce Don't serve unlisted versions when checking for add-on updates
Part of #3567
2016-11-16 14:40:11 +01:00
Andrew Williamson 3fdb0cae8a finish cleaning up preliminary review 2016-09-29 19:37:44 +01:00
ka7 a6b707331f some trivial spelling fixes (#3107)
some trivial spelling fixes
2016-07-16 19:54:30 +02:00
Jason Thomas 71d0e40ccb fix logging import 2016-06-24 10:37:45 -04:00
Mathieu Pillard 808ef37988 Replace nuggets' dictconfig by logging.config 2016-06-23 01:54:26 +02:00
Andrew Williamson 982e86965d Soft delete versions; don't allow version number re-use. 2016-02-29 17:15:56 +00:00
Jason Thomas 80a1555038 Use force_bytes to encode for uwsgi 2016-02-22 17:57:02 -05:00
Jason Thomas 9a0b51859a Use mypool from services.utils 2016-02-22 17:57:02 -05:00
Jason Thomas b7465e66cb Set mysql connection charset to utf8 2016-02-22 17:57:02 -05:00
Christopher Grebs ea92a3d2d9 Merge branch 'master' of github.com:mozilla/olympia into feature/restructure-modules 2016-01-18 16:03:44 +01:00
Mathieu Agopian 5c3e4792bb Revert "Fix UnicodeDecodeErrors in the theme update checks service (issue #1090)" 2016-01-06 19:12:57 +01:00
Christopher Grebs 580ccf7710 Update gitignore, updates to mock/patch import paths, minor fixes along the way. 2016-01-06 10:48:04 +01:00