Christina Lin
c7b2dc1042
DevHub Pastebin Re-implementation ( #22664 )
...
* 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
2024-09-17 13:21:44 -04:00
Kevin Meinhardt
5d24c7a759
Remove all reference to update_deps* ( #22662 )
2024-09-16 10:42:45 +02:00
Mathieu Pillard
e3d55d9adf
Document 'app' query parameter in ratings API ( #22648 )
2024-09-12 17:27:18 +02:00
Leo Heitmann Ruiz
93df3a9d43
License related fixes ( #22573 )
...
* License related fixes
---------
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-09-06 16:42:17 +02:00
Kevin Meinhardt
2a64618e9d
Enable Production Mode via DEBUG or docker-compose.ci.yml ( #22613 )
...
* TMP: clean bake metadata file
* SPLIT: Log UWSGI in docker compose console
Remove PID
* SPLIT: Raise error in update_assets if file not found
* Enable Production mode via DEBUG and or docker-compose.ci.yml
* Option 1: Load node_modules from statifiles directory
* Option 2: Load node_modules via django-node-asset
* separate ./static from locally built static files
* Add docs for static file serving
* TMP: fixes from code review
* Update docs/topics/development/static-files.md
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* TMP: update docs
---------
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-09-05 16:20:03 +02:00
Kevin Meinhardt
f5d21109a9
Use default buildx builder for faster build ( #22631 )
...
* Use default buildx builder for faster build
* Update Docs
* Rename metadata.json
* Remove uneeded build.py
* TMP: clarify the reason for docker driver
* Keep explicit builder declaration for backwards compatibility
* TMP: shorten metadata file
2024-09-04 15:30:38 +02:00
Mathieu Pillard
697bffd6a9
Set REMOTE_ADDR correctly when requests are going through a CDN Shield ( #22603 )
...
* 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
2024-08-29 15:05:10 +02:00
Kevin Meinhardt
d7b21e18e6
Remove supervisor and enable more efficient container startup ( #22592 )
...
* 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>
2024-08-27 12:42:10 +02:00
Kevin Meinhardt
e4ceb64b9e
Remove the chown command from entrypoint. ( #22584 )
...
* Remove the chown command from entrypoint.
* TMP: remove redundant timeout on the health check for worker/web containers
2024-08-23 12:00:32 +02:00
Kevin Meinhardt
c65b1e8497
Make up the docs ( #22313 )
...
* Update the docs bro
* TMP: FIx stuff
* Update docs/topics/development/troubleshooting_and_debugging.md
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* TMP: include compose file configs
* More fixes from comments
---------
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-08-14 12:12:54 +02:00
Andrew Williamson
83691aff3e
restrict /policy PATCH to non-themes ( #22564 )
2024-08-12 17:18:48 +01:00
Mathieu Pillard
f9de2f6f3d
Allow EULA/Privacy policy to be edited through the API ( #22522 )
...
* Allow EULA/Privacy policy to be edited through the API
2024-07-31 12:05:31 +02:00
Kevin Meinhardt
884d1c4669
Convert .rst files to MyST style markdown ( #22467 )
...
* 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
2024-07-17 21:05:00 +02:00
Kevin Meinhardt
5f16cb911f
Update setup_and_configuration.md ( #22484 )
...
* Update setup_and_configuration.md
* Update docs/topics/development/setup_and_configuration.md
Co-authored-by: Andreas Wagner <mail@andreaswagner.org>
* Update docs/topics/development/setup_and_configuration.md
Co-authored-by: Andreas Wagner <mail@andreaswagner.org>
* Update docs/topics/development/setup_and_configuration.md
Co-authored-by: Andreas Wagner <mail@andreaswagner.org>
---------
Co-authored-by: Andreas Wagner <mail@andreaswagner.org>
2024-07-17 21:04:37 +02:00
Kevin Meinhardt
5c784bdb7a
Add pip-api to make hashin work out of the box ( #22479 )
...
* 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>
2024-07-17 14:41:20 +02:00
Kevin Meinhardt
42160ee861
Mozilla/addons/issues/14823-build-bake ( #22453 )
...
* 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
2024-07-11 15:05:52 +02:00
Kevin Meinhardt
002ce4253a
Include github event and triggering workflow for reusable workflow concurrency groups ( #22457 )
2024-07-09 19:10:43 +02:00
Kevin Meinhardt
8d4b227677
Fix github action workflow syntax issues and update docs ( #22455 )
...
* Unify concurrency and inputs for triggerable github action workflows
* Remove CI splits input from workflow dispatch trigger
* Update github action docs
2024-07-09 17:56:32 +02:00
Kevin Meinhardt
0d7ae9d568
Use reusable workflow for executing docker build ( #22446 )
...
* Use composite workflow for executing docker build
* TMP: unify inputs for _build
2024-07-09 11:03:44 +02:00
Kevin Meinhardt
834c3ec451
Bump pkcs7_digest algorithm to sha256 ( #22408 )
...
* Bump pkcs7_digest to sha256
* Bump minimum version to 58, removing redundant min versions
* TMP: remove print
* Update src/olympia/constants/base.py
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* Update src/olympia/constants/base.py
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* TMP: remove unecessary app versions
* TMP: better assertion
* TMP: remove unecessary tests
* TMP: use msg format for string extraction
* TMP: update comment
* TMP: Rvert markdown conversion
* TMP: get or create voer versions
* TMP: use error logger for error logging
* TMP: reformatting
* Update docs/topics/development/testing.rst
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
* Update src/olympia/lib/crypto/signing.py
* Update src/olympia/constants/base.py
* Update src/olympia/files/utils.py
* Update docs/topics/development/testing.rst
Co-authored-by: William Durand <will+git@drnd.me>
* TMP: Log debug
---------
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
Co-authored-by: William Durand <will+git@drnd.me>
2024-06-25 16:31:46 +02:00
William Durand
730205e529
Add new illegal_subcategory field in abuse reports ( #22395 )
2024-06-24 11:37:01 +02:00
William Durand
bbb95c3ba3
Add new illegal_category field in abuse reports ( #22388 )
2024-06-24 10:33:57 +02:00
Kevin Meinhardt
59156f8674
Stability fixes for docker compose lifecycle ( #22378 )
...
* Stability fixes for docker compose lifecycle
* Update docs/topics/development/setup_and_configuration.md
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
* TMP: response to comments
* Update docs/topics/development/setup_and_configuration.md
Co-authored-by: William Durand <will+git@drnd.me>
---------
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
Co-authored-by: William Durand <will+git@drnd.me>
2024-06-21 14:22:42 +02:00
Kevin Meinhardt
f6ac0a5c91
Remove deprecated documents, including references. ( #22383 )
2024-06-19 18:17:16 +02:00
Mathieu Pillard
e8b08443a7
Expose reviewers validation result API through JWT auth and document it ( #22328 )
...
* Expose reviewers validation result API through JWT auth and document it
2024-06-07 14:39:33 +02:00
Mathieu Pillard
3dae2f3364
Add high-level overview to search docs ( #22251 )
...
* Add high-level overview to search docs
* Link to test scenarios
* Rephrase scoring a little bit to make it more obvious scoring factors multiply
2024-05-17 14:43:46 +02:00
Mathieu Pillard
905fdca218
Minor tweaks to search docs ( #22116 )
2024-04-03 15:57:51 +02:00
Kevin Meinhardt
4f8f719bfb
Update dependencies documentation ( #21511 )
...
* chore(): install hashin on dev to pip other deps.
* Update dependencies documentation
* Update docs/topics/development/dependencies.md
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
---------
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-03-12 08:50:52 +01:00
Kevin Meinhardt
823e825a30
Efficiently cache docker build ( #21914 )
...
* 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
2024-03-01 11:47:11 +01:00
Kevin Meinhardt
04cf44bbb2
Merge requirements files and document dependency management ( #21838 )
2024-02-21 13:20:01 +01:00
Kevin Meinhardt
14aded3570
Add email verification feature ( #21672 )
...
* feat(): disable devhub.verify_email without waffle switch
* chore(devhub): migration - add suppress-email waffle switch + docs
2024-01-09 13:46:22 +01:00
Mathieu Pillard
3b44a68cab
Add a separate "Something else" reason for new feedback form abuse reports ( #21663 )
...
* Add a separate "Something else" reason for new feedback form abuse reports
* Fix docs
2024-01-05 17:19:26 +01:00
Mathieu Pillard
b6a67ae4db
Duplicate services/ URLs under /api/v5/services/ ( #21656 )
...
* 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
2024-01-04 11:55:18 +01:00
Kevin Meinhardt
1eb23be68f
chore(): add .md support in docs ( #21522 )
...
* chore(): add .md support in docs
* tmp(): manually adding PyYAML
* tmp: another one
* tmp: more deps
* tmp: install double transitive dep
2023-12-06 17:56:40 +01:00
Andrew Williamson
26aad235d8
store/return lang param for all abuse report types ( #21531 )
2023-12-04 10:19:47 +00:00
Mathieu Pillard
1e1b08fb51
Add tests for passing an id as integer in the abuse report API ( #21428 )
...
* Add tests for passing an id as integer in the abuse report API
* Also document that we allow integers
2023-11-13 21:23:15 +01:00
Mathieu Pillard
f6169df4cb
Allow Abuse Reports to be filed against Collections ( #21417 )
...
* Allow Abuse Reports to be filed against Collections
2023-11-13 10:55:00 +01:00
Mathieu Pillard
3fb5e67ef7
Add feedback_spam as one of the possible reasons for user reports ( #21414 )
...
(Technically allows it for ratings too, but unused/undocumented at
the moment as the plan is to use the old flagging system for those)
2023-11-09 12:01:33 +01:00
Andrew Williamson
8a07cad47b
replace force disable/enable buttons with actions ( #21382 )
...
* 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
2023-11-07 17:30:58 +00:00
Mathieu Pillard
f9e99229c8
Allow reports against users with a reason ( #21391 )
2023-11-06 12:31:43 +01:00
Mathieu Pillard
1657c2d938
Allow Abuse reports to be sent against Rating ( #21364 )
...
* Allow Abuse reports to be sent against Rating
Includes refactors to share some logic between different kinds of abuse reports
2023-11-02 13:59:33 +01:00
Mathieu Pillard
e5de4ecc7c
Merge per-application categories, add command to merge and clean up obsolete ones ( #21212 )
...
Expose categories flat in API v5, add compatibility shim for previous versions.
2023-10-26 14:43:31 +02:00
Andrew Williamson
d93167c2fd
add location to abuse api ( #21331 )
2023-10-24 13:57:45 +01:00
Andrew Williamson
a07c5865a9
update abuse api to support reporter name&email and report to cinder ( #21287 )
...
* update abuse api to support reporter name&email and report to cinder
* add waffle switch
* fix migration + rename to CinderUnauthenticatedReporter
2023-10-06 15:23:25 +01:00
dependabot[bot]
d304e21659
Bump sphinx-rtd-theme from 1.2.0 to 1.3.0 in /requirements ( #21117 )
...
* Bump sphinx-rtd-theme from 1.2.0 to 1.3.0 in /requirements
Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme ) from 1.2.0 to 1.3.0.
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst )
- [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/1.2.0...1.3.0 )
---
updated-dependencies:
- dependency-name: sphinx-rtd-theme
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Include sphinxcontrib-jquery to fix local install search
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2023-09-28 00:43:10 +02:00
Philip
d07d04cb6c
Fix typos in docs ( #21219 )
2023-09-25 15:18:30 +01:00
Mathieu Pillard
b8e34f78ec
Always enable sphinx_rtd_theme ( #21173 )
2023-09-11 12:26:08 +02:00
Mathieu Pillard
0cf2a729ed
Fix API documentation for file status ( #20871 )
2023-06-22 17:37:58 +02:00
Andrew Williamson
367a0849a6
return is_all_versions property in Block serializer ( #20858 )
2023-06-21 15:52:03 +01:00
Andrew Williamson
998a2b7cdc
create BlockVersion instances for versions in Block.min - max ( #20837 )
...
* create BlockVersion instances for versions in Block.min - max
* review fixes
2023-06-16 15:22:17 +01:00