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

293 Коммитов

Автор SHA1 Сообщение Дата
Mathieu Pillard ffa64dbc65
Remove dead code from update service (#18443)
* Remove dead code from update service

* Remove now unused constant
2021-12-02 14:02:23 +01:00
Mathieu Pillard de822655b1
Remove binary/binary_components fields from File (#17811)
* Remove binary/binary_components fields from File

* Reformat this
2021-08-31 11:15:07 +02:00
Andrew Williamson 80f526e840
run pyupgrade (#17603)
* let pyupgrade work as command line tool

* run_pyupgrade and black on src/ tests/ services/

* delete the comment as absolute_import is gone
2021-08-05 15:00:44 +01:00
Mathieu Pillard 04d22874ea
Remove the platform field from the Files model (#16799)
* Remove the platform field from the Files model

* Fix files_view.html now that distinct_files is gone

* Simplify this test now that platform support is gone

* Noir

* Update fixes

* Unused imports

* Completely remove platform constants

* Re-blackify

* fix typo
2021-03-22 16:31:58 +01:00
William Durand 20a7bd35c0
remove isort (#16456) 2021-02-03 17:06:42 +01:00
William Durand dbb492383c
Fix more u'str' (#16159) 2020-12-11 12:23:05 +01:00
William Durand 0016987289
Fix double quotes and enforce single quotes (#16143) 2020-12-11 11:33:53 +01:00
William Durand e61d8b0de7
"Black" all the things! (#16123) 2020-12-09 19:24:56 +01:00
Mathieu Pillard 14223cfe24
Drop obsolete lightweight theme update endpoint (#15060)
* Drop obsolete lightweight theme update endpoint

* Remove obsolete MIGRATED_LWT_UPDATES_ENABLED setting
2020-07-28 11:57:54 +02:00
Mathieu Pillard 461f0695a7
Fix database encoding and exception handling in update service (#14851)
* Fix database encoding and exception handling in update service

* Remove leftover ipdb

* Cleaner way to override SERVICES_DATABASE in tests through pytest fixture

* Remove now unused imports
2020-07-07 13:23:13 +02:00
Andrew Williamson 0e7152107c
Remove CompatOverride models and api (#12086) 2019-08-12 12:36:07 +01:00
Andrew Williamson 18a805baa7
remove more (all?) personas cruft (#12031)
* remove more (all?) personas cruft

* _ADDON__PERSONA to _ADDON_PERSONA
2019-08-06 19:39:20 +01:00
Andrew Williamson b9af944d34
drop Personas model (#12009)
* drop Personas model

* didn't mean to commit this icon file

* Rename 1110-drop-migrated-lwt-constraint.sql to 1109-drop-migrated-lwt-constraint.sql
2019-08-05 10:54:50 +01:00
Christopher Grebs 2de22598bd
Remove all usage of 'six' and as much compat code as I could f… (#11730)
* Remove all usage of 'six' and as much compat code as I could find.

Cleans up some imports along the way.

Fixes #11728

* Fix typo

* Fix rta related code paths, I actually misread the comment…

* Move ResourceWarning filtering to setup.cfg
2019-07-16 12:01:31 +02:00
Andrew Williamson 665d45df3d
STATUS_PUBLIC to STATUS_APPROVED (#11249) 2019-04-25 20:58:03 +01:00
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