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

252 Коммитов

Автор SHA1 Сообщение Дата
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
Christopher Grebs c6d1cc2d66 Update django-waffle, django-piston, more import path fixes.
* Pull in django-waffle 0.10 and a fixed version of django-piston.
  Both provide late-initialization support by not calling get_user_model
  on import-time.
* Add alias for addons.buttons.js
2016-01-06 10:48:03 +01:00
Christopher Grebs 7ec38cc446 Update setup.cfg, fix package imports, syntax errors, various cleanups.
* Update installed apps, fix grouping and naming.
* Fix app-names in settings
* re-add startup import to manage.py for now

Various more import fixes, all import rewrites are now done.

This unfortunately still failes because of some circular imports
depending on django not being setup early enough.
2016-01-06 10:48:03 +01:00
Andy McKay f7bc049307 show the url of the error issue #922 2015-12-29 14:44:23 -08:00
Mathieu Agopian 2d2ee7df34 Use z.update instead of z.receipt to log update checks (issue #1122) 2015-12-22 11:25:35 +01:00
Mathieu Agopian 279a4aaac5 More guillotine: remove app-related stuff 2015-12-17 17:29:36 +01:00
Mathieu Agopian e14e438a3c Fix UnicodeDecodeErrors in the theme update checks service (issue #1090) 2015-12-16 13:35:21 +01:00
Mathieu Agopian 83c39c07a5 Remove amo_user (bug 1041696) 2015-11-13 14:56:06 +01:00
Mathieu Agopian f15338ed9f Add the file hash to the update link answer (bug 1158738) 2015-04-27 14:11:41 +02:00
Mathieu Agopian 02513213d4 Don't provide updates for unlisted addons (bug 1144711) 2015-04-03 16:51:32 +02:00
Kris Maglione 4422a939b3 Bug 1122133 - Serve prelim versions as updates to disabled versions, when applicable. 2015-01-15 10:55:03 -08:00
Yohan Boniface 657929945b Remove applications.Application (bug 1068591) 2014-09-18 13:38:21 +02:00
Wil Clouser 3aa26c33fc add colon, thanks @magopian 2014-09-11 13:02:27 -07:00
Benjamin Smedberg 0ffe981df0 Bug 1063605 - PFS should stop providing direct installer links for any plugin: we just link to the vendor's install website. 2014-09-11 12:09:33 -04:00
jpfeif66 202185e0cd Update pfs.py
Here is the bugzilla bug record for this change:
https://bugzilla.mozilla.org/show_bug.cgi?id=1062425
2014-09-03 10:43:24 -07:00
Mathieu Agopian fa8f17ec02 remove vagrant (bug 1061190) 2014-09-02 15:48:38 +02:00
Mathieu Agopian a46a690c48 get rid of vendor submodule (bug 1049428) 2014-09-01 15:47:17 +02:00
Mathieu Agopian a1e1c8c5fb Remove the need for a settings_local.py (bug 1050155) 2014-09-01 14:51:04 +02:00
Mathieu Agopian df9c902b62 Fix the theme_update service (bug 1055654) 2014-08-19 21:55:30 +02:00
Mathieu Agopian c0c9f2f6e3 fix an import loop in services (bug 1055654) 2014-08-19 19:20:55 +02:00
Mathieu Agopian a79684ca8c Revert "Remove the default app (bug 1050154)" 2014-08-19 11:28:19 +02:00
Mathieu Agopian 4e0106e319 Remove the need for a settings_local.py (bug 1050155) 2014-08-12 15:25:01 +02:00
Wil Clouser aa63625b3b Merge pull request #180 from jpfeif66/patch-6
Update pfs.py
2014-08-07 15:38:38 -07:00
Yohan Boniface 986d8670de Removing MIRROR_* settings (bug 1013865) 2014-08-06 18:53:24 +02:00
jpfeif66 8a8c61e87e Update pfs.py 2014-08-05 11:39:32 -07:00
Yohan Boniface 5bd1a96912 Rename storage to user-media (bug 1013865)
We noticed that /storage/ path conflicts with some other
URL configuration on the servers.
2014-08-05 11:20:50 +02:00
Yohan Boniface a35ab0834d Migrating to staticfiles (bug 1013865) 2014-08-04 11:12:47 +02:00