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

943 Коммитов

Автор SHA1 Сообщение Дата
Andrew Williamson a0476b78ec
Implement addon PUT as full-update or create (#19342)
* Implement addon PUT as full-update or create

* refactor serializers and views to use common code

* update self.action when we create from a PUT

* Enforce a GUID in the manifest for PUT
2022-06-13 16:11:33 +01:00
Mathieu Pillard b15859e633
Remove sync_objects_to_basket and associated code (#19309)
It was never enabled in production and we have no plans to ever
resume that work.
2022-06-07 12:59:04 +02:00
Andrew Williamson cc2fadf6b3
Allow default_locale to be set/changed via the API (#19290)
* Allow default_locale to be set/changed via the API

* rewrite some of the test comments to make it clearer what's going on
2022-05-27 13:05:40 +01:00
Andrew Williamson 160036a762
Update authors.rst 2022-05-11 16:52:24 +01:00
Andrew Williamson e4fe20f0ff
addons api (pending) authors create and confirm endpoint (#19191)
* addons api (pending) authors create and confirm endpoint

* update docs; add to tests
2022-05-05 11:25:01 +01:00
Andrew Williamson 1e76ef3adc
add api delete endpoint for addon authors (#19180)
* add api delete endpoint for addon authors

* Update addons.rst
2022-04-29 11:14:00 +01:00
Andrew Williamson be32296cea
drop warning about deleting not working now #8816 is closed (#19169) 2022-04-28 14:31:38 +01:00
Andrew Williamson 822ed2332e
add api endpoint to list, get, and update add-on authors (#19161)
* add api endpoint to list, get, and update add-on authors

* drop mixed up (and redundant) comments
2022-04-28 09:27:09 +01:00
Andrew Williamson 4dd4558194
added addon delete function to addons api (#19147)
* added addon delete function to addons api

* replace jwt with TimestampSigner

* Update docs/topics/api/addons.rst

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2022-04-22 12:34:04 +01:00
Andrew Williamson ab6bf8a4f3
stop compat from being updatable for dictionaries; allow other patches (#19135) 2022-04-20 12:21:34 +01:00
Andrew Williamson 8510f26350
support clearing icon and source as formdata format. (#19112) 2022-04-14 12:02:42 +01:00
Andrew Williamson d3c357b256
enable previews to be created, edited, deleted via addons api (#19091)
* refactor Addon to drop redundant _all_previews cached property

* move resize_preview from dev/utils to addons/utils

* generalize IconField to ImageField

* enable previews to be created, edited, deleted via addons api

* reintroduce some complexity with current_previews because transforms.

* index preview position in ES

* test fixes
2022-04-11 17:54:42 +01:00
Mathieu Pillard 6b5e175a49
Introduce minimal config to make versioncheck works locally (#19045)
This is nicer than having to remember to look up the docs to
do it manually, make it work with docker etc. It works out of
the box.
2022-03-31 13:19:57 +02:00
Andrew Williamson d8949ad9d5
support setting/updating addon icon via the addons api (#19004)
* support setting/updating addon icon via the addons api

* docs typos; make resize_icon an async task.
2022-03-31 12:08:10 +01:00
Andrew Williamson 3c7df0335d
Update auth_internal.rst 2022-03-18 13:15:35 +00:00
Andrew Williamson 9a8c493008
allow contributions_url to be set/changed via addons api (#18970)
* allow contributions_url to be set/changed via addons api

* Update src/olympia/addons/tests/test_views.py

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2022-03-16 09:58:34 +00:00
Andrew Williamson 31196d43ce
Update auth_internal.rst 2022-03-03 13:54:22 +00:00
Andrew Williamson f202823a69
drop all support for internal WebTokenAuthentication (#18902)
* drop all support for internal WebTokenAuthentication

* don't need to set AUTHENTICATION_BACKENDS because using default
2022-02-28 12:18:37 +00:00
Andrew Williamson 4699865cc5
correct link to addon-create 2022-02-09 15:49:02 +00:00
Andrew Williamson ec5290f48f
improve addon api doc to detail limitations around `source`, and listed metadata (#18800) 2022-02-09 13:12:26 +00:00
Andrew Williamson 4406108e9d
Update addons.rst 2022-02-08 09:40:49 +00:00
Andrew Williamson 9e7aaaad14
enable addon submission api on prod; remove warnings in api docs (#18758) 2022-02-08 08:57:58 +00:00
Andrew Williamson 203d752daa
rm auth token in api response & document api auth changes (#18757)
* rm 'token' from json data

* document session id api auth for internal clients
2022-02-04 11:43:41 +00:00
Andrew Williamson b827c6c9db
refactor addon related serializers & fields; add source field (#18729)
* refactor addon related serializers & fields; add source field

* stop clearing needs_admin_code_review if `source` is cleared
2022-02-03 11:33:00 +00:00
Bob Silverberg adf2d77a95
Remove all references to `reviewer_name` (#18690) 2022-01-27 10:12:30 -05:00
Andrew Williamson 8ee8db45a3
return 'ERROR_AUTHENTICATION_EXPIRED', when there's a session auth mismatch (#18670) 2022-01-24 10:48:10 +00:00
Andrew Williamson e5d6b31675
fxa notification webhook (#18649)
* refactor fxa utility functions

* Add fxa event webhook

* store fxa_verifying_keys on class; handle broken jwt; refactoring
2022-01-21 18:08:56 +00:00
Andrew Williamson 87a097ca39
implement license slugs (#18437)
* drop icons and creative_commons properties from the model

* define all the builtin licenses in constants

* make setting license in VersionSerializer use slug rather than id
2021-12-06 15:12:29 +00:00
Andrew Williamson 82fdd30d99
add /addon/tags/ endpoint to list available tags (#18445)
* add /addon/tags/ endpoint to list available tags

* review fixes
2021-12-03 17:22:46 +00:00
Andrew Williamson 115c002892
set tags property via addon api (#18428)
* set tags property via addon api

* Add tests for LazyChoiceField
2021-12-02 14:11:10 +00:00
Andrew Williamson dd6363030e
allow custom licenses to be created and updated per version (#18368)
* allow custom licenses to be created and updated per version

* Add valiation check for both fields being provided
2021-11-23 17:50:06 +00:00
Andrew Williamson a6fb5ce8e2
add docs for addon api create/update functionality (#18311)
* add docs for addon api create/update functionality

* move out compatibility examples to their own section
2021-11-17 12:54:38 +00:00
Andrew Williamson d6ace6df1b
Update overview.rst 2021-10-07 18:02:28 +01:00
Andrew Williamson ff321918b2
implement new uploads to the addon api, for listed too. (#17914)
* implement new uploads to the addon api, for listed too.

* remove note about only internal authentication for addons api
2021-10-04 15:09:42 +01:00
Andrew Williamson dad271c1e2
drop is_webextension from api (#17947)
* drop is_webextension from api

* Update docs/topics/api/overview.rst

Co-authored-by: William Durand <will+git@drnd.me>

Co-authored-by: William Durand <will+git@drnd.me>
2021-09-22 14:50:28 +01:00
William Durand fae527af13
Update Recommendations API docs (#17942)
* Update Recommendations API docs

* Update addons.rst

* Update addons.rst
2021-09-22 12:59:00 +02:00
Andrew Williamson 0129e1ec49
expose a single file in the version api serializer (#17913)
* expose a single file in the version api serializer

* review nits
2021-09-16 18:12:56 +01:00
dependabot[bot] 85aa7e3a53
Bump sphinx from 3.5.4 to 4.0.1 in /requirements (#17115)
* Bump sphinx from 3.5.4 to 4.0.1 in /requirements

Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 3.5.4 to 4.0.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v3.5.4...v4.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

* upgrade docutils to 0.17.1 at the same time

* Update index.rst

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
2021-09-15 14:04:33 +02:00
Andrew Williamson f6d3b0c5e5
rm all legacy blocklist update integration (#17889) 2021-09-13 16:10:20 +01:00
Andrew Williamson d1fba99ab5
rm import (legacy) blocklist feature (#17841) 2021-09-10 14:44:22 +01:00
Andrew Williamson 3349b53d94
Update shelves.rst 2021-08-12 10:13:34 +01:00
Andrew Williamson f58ecaebf0
switch memcache backend to pymemcache (#17691) 2021-08-11 11:46:08 +01:00
Andrew Williamson c91deaaf70
drop is_restart_required from File (and api/v5) (#17675) 2021-08-10 12:27:56 +01:00
Andrew Williamson ebff8e2f87
implement ratings and users threshold search filters (#17602)
* implement ratings and users threshold search filters

* rewrite AddonThresholdQueryParam to use __gt style comparisons

* fix api docs threshold search field list indentation

* index ratings.average in addon ES search index
2021-08-05 17:16:52 +01:00
Andrew Williamson ae884a6a6a
drop criteria from shelves api (#17600) 2021-08-02 12:50:44 +01:00
Mathieu Pillard 386291b1bf
Find abuse reports for a particular add-on using guid and not addon_id (#17614)
* Find abuse reports for a particular add-on using guid and not addon_id

When an abuse report is submitted from a guid (what Firefox does),
no longer try to associate if with a single add-on in the database,
because we can't know which one it is.

In reviewer tools, look up abuse reports for a given add-on by guid,
so that we can find all potential abuse reports even if a guid has
been re-used.

* Small doc clarification

* Black

* Fix unused imports

* Address review comments
2021-08-02 13:36:09 +02:00
Andrew Williamson ae40a40c4c
generate a fallback for footer.url if footer_pathname not set (#17550)
* generate a fallback for footer.url if footer_pathname not set

* return footer url&text when `wrap-outgoing-parameter` is active
2021-07-23 18:08:39 +01:00
Mathieu Pillard 0406184e2a
Drop license text from version list API endpoint (#17166)
* Drop license text from version list API endpoint

Don't even fetch the license text from the database when it's not needed:
defer it, and ensure the translations app doesn't try to fetch translations
for deferred fields.

* s/VersionSerializerForListing/VersionListSerializer/
2021-05-18 12:27:24 +02:00
Mathieu Pillard 837326e5e5
More tweaks to addon install source descriptions for abuse reports (#17125) 2021-05-17 21:44:42 +02:00
Anish Krishnaswamy c4201dc8f9
Update API docs for homepage shelves editorial content endpoint (#17056)
* Update API docs: Homepage Shelves Editorial Content

The API response in docs was incorrect for `/shelves/editorial` endpoint. The actual API response only has `title` and `footer_text` while the doc has a lot of other fields which are not part of the API response.
2021-05-11 15:45:27 +02:00