* Integrate initialize command into make up flow
Rename "initialize_data" to "initialize"
Remove DOCKER_SERVICES as dangerous option given hard dependency on mysqld and elasticsearch.
Better timing for mysql healthcheck
* Partial revert of setup-ui-tests
* Fix initialization should always reindex
* TMP: fix
* Validate data dump
* Use db_backup to manage database dump/load
* TMP: fix docs
* Align file names and command names
* Reindex on data_load
* Fix broken class assignment and add better error handling
* Remove dead settings
* Move base class to __init__.py
* Remove uneeded data_load
* Lint
* TMP: updates to comments
* Fix broken test
* Create/migrate DB before seeding.
* Only log docker compose if specified in CI run-docker step
* Better and alphabetized ignore paths for git and docker
* Less aggressive post start health checks
* Clean up redundant code
* Add better documentation about dockerignore/gitignore
* Update start period
* Added view attachment link on DevHub in relation to #22640
* lint
* renamed attachment_link to attachment_url
* js attachment_url
* test update
* doc
* test
* dont hardcode test
* lint
* limit queries
* Use correct pk in reverse
* 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