* TMP: add http server to expose version endpoint
* Use data volume for mounting repository files
* Use watchmedo directly from docker to run celery
* TMP: fix test
* TMP: remove data_olympia volume on ci yml
* TMP: add settings djanmgo modeul to celery worker.
* TMP: remove references to ssupervisor
* Update docs/topics/development/building_and_running_services.md
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
---------
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* ignore rule F405 per file
* ruff autofix of B007 and B010
* B007 manual fixes
* B026 fixes
* B023 fixes
* updated ruff ignore list
* black formatting & rework decorators
* optimize iterating on dicts where we don't need the keys or values
* Replace nobot with django-recaptcha
* Silence system check since we'll be using the test keys locally
* Customize template to avoid inline JavaScript
* Don't run generate_default_addons_for_frontend outside ui tests
* Add special URL to bypass authentication locally
* Always go through generate_default_addons_for_frontend but skip fxa if not needed
* Add fake FxA authentication flow for local development
* Revert "Add special URL to bypass authentication locally"
* Tests for the view
* Test fxa_login_url()
* More testing
* Remove leftover obsolete import
* Draft pull request - validator for criteria
* Updated validation for criteria; revised models, test_admin, conftest
* Added additional criteria validation tests to test_admin
* Replaced validator with clean_criteria method
* Removed responses for shelves
* Revised clean_criteria method and added tests to test_admin.py
* Revised shelf types in models.py
* Added message to inform admin the total addons returned after successfully saving a shelf
* Updated success message and respective tests
* Created test_forms, revised forms, admin, test admin
* Updated settings to add INTERNAL_SITE_URL and nginx to ALLOWED_HOSTS
* Revised baseUrl, removed results/save method - to add later
* Revised settings (dev, stage, prod) to move INTERNAL_SITE_URL near EXTERNAL_SITE_URL, moved 'nginx' to list from settings_base.py
* Formatting
* Serve files in old file-viewer through FileResponse.
Fixes bug 1566954
The old file-viewer will be going away "soon" anyway so we should be
using the same technique as for the new one.
The problem here specifically is that when going through Nginx via
X-Accel-Redirect nginx isn't setting proper CSP headers for the
download. Serving the files ourselves allows us to much easier restrict
CSP in the future even further.
* Explicitly restrict CSP config on download endpoints.
* Set report uri in settings.py too
* Explicitly add frame-ancestors
* Remove outdated test
* 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
* Adds a test to test unicode support for latest python-memcached
versions
* Configures caches key prefix so that tests don't conflict with each other
* Remove a few cache.clear calls with `cache.delete` calls that avoids
deleting all memcached entries while other tests are running
* Remove zadmin.memcached as it's crazy dangerous, such power should
only be wielded by ops-folks who wake up at night when pressed
* Fixes waffle helpers to call .flush() to flush appropriate caches
This also fixes how parameters are forwarded to memcached and fix KEY_PREFIX initialization
We are now making sure parameters from `settings.CACHES` are properly forwarded
to the actual cache backend (now memcached). These errors were not seen
since LocMemCache didn't require any parameters.
The `KEY_PREFIX` setting is set to a uuid instead of the xdist-slaveid to
ensure test functions are properly isolated from each other.
`cache.clear` is not called anywhere unless absolutely necessary to reduce
the side-effects of our test-setup.
Fixes#8602