* Set REMOTE_ADDR correctly when requests are going through a CDN Shield
https://www.fastly.com/documentation/guides/concepts/shielding/
CDN Shield is an additional PoP requests can go through, and their
IP is added to X-Forwarded-For so we need to look for the client IP
in a different place. The special X-AMO-Request-Shielded header is
set to "true" in that case.
* Tweak documentation about IP addresses and move them from middleware docstring to their own doc
* 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>
* Convert .rst files to MyST style markdown
* TMP: convert literal text back to emphasis
* TMP: fix from previous commit, bring back literals where we had them
* Add pip-api to make hashin work out of the box
* Update docs/topics/development/dependencies.md
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
---------
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
* Split build and authentication from _build.yml to separate actions, remove _build.yml
* Push production Docker images in CI
* TMP: Provide fallback for non fork CI image build name
* local docker build command
* Move copy . to after installing packages (prevents always re-installing)
* Enable buildkit cache mount to cache pip/npm dependencies
- cache npm/pip dependencies across builds
- add clear logging to npm install for cache hit/miss
- move copy npm files to update_assets
* Split build into stages
- splitting to stages offers better caching of layers and more efficient use of disk/time
- The initial gains will be with better caching of locale compilation, but will expand as we can move more logic from the final stage
TODO: split up apt depedencies to specific stages, move update_assets to pre-final stage to prevent re-running on every build with a * file change.
* Document the docker file and build process
* update docs
* Duplicate services/ URLs under /api/v5/services/
This makes it easier to reach those views for testing purposes, enabling
us to reach client_info/ from services.a.m.o. domain or test the various
40x/500 handlers from an API perspective.
* Docs, only include relevant endpoints, support 403
* replace force disable/enable buttons with actions
* update api docs
* move activity logging back to reviewer tools
* expose enable/disable activity log to developers
* correctly stringify activity log in reviewer tools important changes
* rm unused line
* review fixes
* Add sort=ratings sorting param for consistency
See https://github.com/mozilla/addons-server/issues/20763
* Add test_sort_ratings search filters test
- Ensure "sort=ratings" is supported, preferred
- Ensure "sort=rating" is still supported, for backwards compatibility
- Update existing tests using "sort=rating" to use the new preferred parameter
See https://github.com/mozilla/addons-server/issues/20763
* Update addons search endpoint ratings sort documentation
Mention sort=ratings parameter being preferred.
Mention sort=rating parameter being still supported for backwards-compatibility but deprecated.
See https://github.com/mozilla/addons-server/issues/20763
* Update v5 API changelog for Addons search endpoint sort=ratings param renaming
* Clarify that authentication is not mandatory in API calls
* Update auth.rst
* Update docs/topics/api/auth.rst
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
---------
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>