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

1200 Коммитов

Автор SHA1 Сообщение Дата
Mathieu Pillard f3523b772f Decrease prefix for fuzzy name matching in search, but force all terms to be found 2018-11-16 13:14:21 +01:00
Mathieu Pillard f2f98c7096
Merge pull request #9985 from diox/rescore-to-add-slop-to-match-phrase
Move match_phrase queries against description & summary to a rescore, add slop
2018-11-15 16:03:56 +01:00
Andrew Williamson 2fd365ec53
expose rating flags in detail response when`?include_flags_for=<user>` (#9988) 2018-11-15 13:05:13 +00:00
Mathieu Pillard 9fdae7c68b Move match_phrase queries against description & summary to a rescore, add slop
Adding a slop makes the matching against description & summary more useful,
allowing us to skip words instead of doing a strict match in order. But since
it's potentially costly, we move this to a rescore query and instead do a
regular match for the main query phase.
2018-11-14 11:45:41 +01:00
Andrew Williamson c55c4ec00a
clarify in docs that a rating reply object doesn't have rating, reply or version (#9978) 2018-11-13 13:05:53 +00:00
Andrew Williamson 560c09c996
Add 'is_custom' flag to License object in version detail (#9942) 2018-11-09 17:43:01 +00:00
Mathieu Pillard bd9a154120 Make exact matches against add-on names in search language-aware
This makes us try to do an exact match against both the raw name in the
current language, and the raw name in the default locale for each add-on
(only boosting once, thanks to a dis_max query).

The same kind of logic is also added to description and summary matches.

Extra debugging features (search query naming, API returning
matched_queries information, commented out script to update expected
scores in test_search_ranking.py) are included but shouldn't affect
production (or dev/stage) environments.
2018-11-05 20:17:29 +01:00
William Durand 9f5f2f5d76
Return the version id in the current_version for add-ons returned from the discovery API (#9858)
Fixes #9855
2018-10-31 20:34:30 +01:00
William Durand 5fcdbd7218
Update addons doc to mark the `contributions` field as "string" only (#9846) 2018-10-30 17:22:43 +01:00
William Durand 49add8a7a0
Make the category's description nullable in the doc (#9819)
Fixes #9818
2018-10-26 10:32:06 +02:00
Mathieu Pillard c8f6438b11 Quick update of the elasticsearch docs following recent changes 2018-10-25 14:52:31 +02:00
Christopher Grebs 3f3c788af7 Make clear what the add-on id is in signing api docs. (#9759) 2018-10-22 16:32:07 +01:00
William Durand 40e04de1e3
Expose FxA URL (for editing a user email) in account response (#9758) 2018-10-19 20:34:34 +02:00
Andrew Williamson cca4d40053
support author ids in addon api filter too (#9712) 2018-10-17 10:31:42 +01:00
Andrew Williamson 960ed937aa
delete all the thunderbird things (#9683) 2018-10-15 17:07:08 +01:00
Mathieu Pillard 500bd093a6 Add `show_permissions_for` support, with documentation 2018-10-12 12:46:56 +02:00
Mathieu Pillard 98602ec875 Add can_reply field to ratings list responses when an addon is passed 2018-10-12 12:46:38 +02:00
Mathieu Pillard 7e0ccffc55
Add Elasticsearch score value to the search API results (#9660)
Add Elasticsearch score value to the search API results

Also remove the unused ESAddonSerializerWithUnlistedData.
2018-10-12 12:11:29 +02:00
Christopher Grebs 18c1cc9438
Simplify read-only mode, don't set header. (#9658)
* Simplify read-only mode, don't set header.

We discussed this in IRC and concluded that we don't need the explicit
header and an explicit "Retry-After" header as well.

* Adds support for `PATCH` methods

* Fix docs, fix other review comments
2018-10-12 06:58:01 +02:00
Christopher Grebs 3f8705212d
Expose 'created' field for add-ons. (#9626)
Fixes #9564
2018-10-09 17:49:03 +02:00
Mathieu Pillard 94c89e68ba Remove locale_disambiguation field from Addon model 2018-10-08 14:02:05 +02:00
Christopher Grebs 48f929549b
Merge pull request #9561 from mozilla/9560-change-v3-archiving
Copy v3 docs into v3_legacy folder for better archiving.
2018-10-01 13:54:21 +02:00
Mathieu Pillard e6dcc901fd Add exclude_ratings parameter to the ratings API 2018-10-01 11:46:51 +02:00
Mathieu Pillard 70a1407574
Merge pull request #9545 from diox/show-deleted-ratings-as-such
Add `is_deleted` property to ratings API
2018-10-01 11:44:50 +02:00
Christopher Grebs 0071bccf60
Copy v3 docs into v3_legacy folder for better archiving.
This allows us to make changes much easier.

* Change all :ref: links in v3-docs to include a "v3" prefix
* Add v3 docs to index under new "Archived Contents" label
* Fix all :ref: links I could find

Fixes #9560
2018-10-01 09:59:04 +02:00
JustAnotherArchivist 486e2e8565
Fix types in the ratings API documentation
The version and user fields on the /ratings/rating/ endpoint are version/user IDs, i.e. ints not strings. (Cf. filter_queryset in src/olympia/ratings/views.py)
2018-09-29 17:47:32 +02:00
Mathieu Pillard da3b1d9352 Add `is_deleted` property to ratings API 2018-09-27 17:08:44 +02:00
Mathieu Pillard 4ceea8b454
Expose `current_version.is_strict_compatibility_enabled` in discovery API (#9524)
Expose `current_version.is_strict_compatibility_enabled` in discovery API
2018-09-26 11:52:36 +02:00
Andrew Williamson e3f0f35f81
v4 enable l10n_flat_input_output drf gate + add v4dev (#9502) 2018-09-25 15:33:52 +01:00
Mathieu Pillard f2712c3288 Update ratings API docs 2018-09-06 20:10:27 +02:00
Mathieu Pillard 71f5c5d4f9 Add the add-on's name and icon_url to ratings API responses 2018-09-06 18:46:10 +02:00
Mathieu Pillard f52b46e2aa
Make current_version obey app & appversion param for langpacks, in add-on detail API (#9321)
Make current_version obey app & appversion param for langpacks, in add-on detail API
2018-09-04 15:08:29 +02:00
Christopher Grebs 07258d89d8
normal -> normally, it's not being used as an adverb 2018-08-31 13:52:22 +02:00
Christopher Grebs 3d3e40263f
Add documentation about read-only mode in API.
Fixes #9316
2018-08-31 11:50:30 +02:00
Christopher Grebs 6f3f687790
Unify database configuration, enable 'read committed' transaction level
Fixes #7158
2018-08-21 07:21:01 +02:00
Mathieu Pillard c75f9b855a
Add is_developer_reply property to ratings API responses (#9099)
Add is_developer_reply property to ratings API responses
2018-08-08 14:06:33 +02:00
Mathieu Pillard eba5e64422 Remove more obsolete collection features: stats, downloads, watchers & votes. 2018-07-30 13:39:38 +02:00
Andrew Williamson 060127a78b
expose addon previews in discovery api endpoint (#8879) 2018-07-16 10:16:43 +01:00
Jorge Villalobos 83e2a6f24d
A few nit corrections
As a general note, the doc could use more explanation on what a boost is and how the ranking is calculated. It's also not clear what ``should`` refers to.
2018-07-12 14:54:50 -06:00
Andrew Williamson 447f632bbe
dicts should always be returned for TranslatedFields; add gate for old behavior (#8795) 2018-07-10 18:44:56 +01:00
Christopher Grebs 168c7b40aa
Fix JWT docs, use actually linked JWT token everywhere in the docs.
I forgot to do that in the last update in 7982008052

Fixes #3498
2018-07-10 14:12:31 +02:00
Mathieu Pillard 9638cce995 Add changelog entry for the addition of the type in autocomplete results 2018-07-10 13:27:13 +02:00
Mathieu Pillard b9be1e2bab Add `type` to autocomplete API results
This is also applied to the v3 API - we are considering such a trivial
field addition backwards-compatible and as such safe enough to include
in v3 API (which addons-frontend is still using).
2018-07-09 23:50:26 +02:00
Mathieu Pillard c63e07d788
Merge pull request #8776 from diox/discovery-editorialized-recommendations-api
Add API to fetch editorial content for disco pane recommendations
2018-07-06 16:07:53 +02:00
Christopher Grebs 224859a641
Document how our search works. (#8713)
Fixes #8090

This is simply stating the facts about how search currently works. This doesn't mention any improvement ideas in the docs directly.

In addition to that, personal improvement ideas:

* Remove `listed_authors.name` from the scoring, make search against authors only possible via separate field queries, e.g `Search addons author:Chris` or so. This may simplify scoring against the add-on name a lot
* https://github.com/mozilla/addons-server/issues/6815 (Remove prefix boosting to simplify scoring)
* Maybe just use https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html instead of all our custom rules here and there?
* Remove negative boosts https://github.com/mozilla/addons-server/issues/6838
2018-07-06 14:18:55 +02:00
Mathieu Pillard 4eeb7d0c5c Add API to fetch editorial content for disco pane recommendations 2018-07-06 14:02:47 +02:00
Mathieu Pillard 236baaefad Fix typo in API docs: files[].size instead of files[].id 2018-06-29 17:13:10 +02:00
Mathieu Pillard 31be530b52
Remove ability to edit any collection through the frontend with Collections:Edit permission (#8651)
Remove ability to edit any collection through the frontend with Collections:Edit permission

Admin:Curation gives you the ability to edit collections owned by mozilla through
the frontend. Anything else (i.e., modifying other collections) must be done
through the admin tools.
2018-06-27 15:25:40 +02:00
Christopher Grebs 7982008052 Fix jwt.io link and mention the secret in JWT docs. (#8625)
Fixes #3493
2018-06-22 17:35:55 +01:00
Mathieu Pillard 84f614afb2 Allow filtering of language tools API by author username 2018-06-20 13:52:48 +02:00
Christopher Grebs a2ddf0d5f4
Avoid logging through mozlog in tests experiment (#8528)
Closes #8451 (Doesn't necessary fix it, we don't want a unified logging-level but this PR makes logging much clearer.)

* Don't use verbose mode for tox
* Refactor logging settings
* Fix services logging, correct dev and stage settings, update docs
* Update logging
* Be vigilent about disabling all logging
* Remove MOZLOG_NAME from stage settings
2018-06-18 06:10:26 -07:00
Christopher Grebs 46087ea63e
Completely remove traces of caching.backends settings.
Most of this work landed already in
6a8fc341da and
91605a4c1f so this is just a follow-up to
remove all other traces.

The removed comment is no longer true, Django received all the necessary
fixes for LocMemCache. On the other hand, LoMemCache is no longer used
for a regular local setup because we are using memcached and try to be
as close to production as possible so this won't change anytime
soon.
2018-06-16 22:56:10 -07:00
Christopher Grebs 4fbbd4b4b2
Fix ordering by collection name in AddonCollectionViewSet. (#8472)
* order_by_translation can now be applied a specific `model` to join on,
e.g in case of a m2n-table where the method couldn't determine the
correct joins correctly.

Fixes #8354
2018-06-08 16:29:43 +02:00
Andrew Williamson 11be612fce
drop title from Rating (migration in following deploy) (#8439) 2018-06-06 09:48:26 +01:00
Andrew Williamson ee613ca761
make sure remote notifications override db stored ones and don't duplicate them (#8423) 2018-06-05 14:24:28 +01:00
Andrew Williamson 651bbda657
API docs update for #8332 (#8348) 2018-05-25 14:02:14 +02:00
Andrew Williamson 7504b7dcdf
/api/v4/reviews/ to /api/v4/ratings/ (#8303) 2018-05-24 14:42:35 +02:00
Andrew Williamson 5828357fd2
have taar lite recommendations use curated fallback if <4 are valid (#8316) 2018-05-22 15:11:42 +01:00
Andrew Williamson 9ffe9f6ad5
document the many types of theme we have (#8321) 2018-05-22 10:17:19 +01:00
Andrew Williamson 968c7636bf
update api docs to refer to /v4/; add explanation of stable /v3/ (#8275) 2018-05-17 12:48:05 +01:00
Andrew Williamson 4e7632fa31
correct accounts API endpoint picture_url documentation (#8247) 2018-05-14 11:15:37 +01:00
Andrew Williamson cae6c3ad2f
drop mozilla-logger and all logging1.0 support (#8242)
* drop mozilla-logger and all logging1.0 support

* drop (hopefully) unused SYSLOG_CSP setting

* drop 'error' formatter; refactor 'debug' formatter format a little
2018-05-11 18:37:42 +01:00
Andrew Williamson 41d8749043
essentially revert #7728 - allow collection lookup by slug only (#8138) 2018-04-30 14:47:08 +01:00
Andrew Williamson 675d8aaf4f
add addon recommendation endpoint (#8126) 2018-04-26 15:53:13 +02:00
Andreas Wagner 828dda1937
Remove all beta versions code (#8100)
Remove all beta versions code
2018-04-24 21:17:03 +02:00
Christopher Grebs 5a26782e19
Remove statistics archiving.
I couldn't find *any* usage data for the statistics archive APIs both in
DataDog and NewRelic so I declare them as safe to remove for now.

From what I can tell we don't limit stats lookups in the dashboard as #1416
never got implemented.

This eases our load on EFS and saves money, especially if that data never really got
used.

Let's think about more future-proof stats solutions instead of keeping
all these hacks.

Fixes #1415
2018-04-20 14:49:30 +02:00
Mathieu Pillard 687117f2a9
Merge pull request #7885 from diox/document-current-version-omitted-fields
Clarify which fields are omitted from which API endpoint in docs
2018-03-22 18:33:49 +01:00
Mathieu Pillard 088756675a Clarify which fields are omitted from which API endpoint in docs 2018-03-22 12:14:21 +01:00
Sanyam Khurana e54a1691c5 Fixes #5379: Remove footer field from theme submission form (#7718)
* Fix #5379: Remove footer field from theme submission form

* Address review comments

* Address review comments
2018-03-21 15:01:39 +01:00
Mathieu Pillard 1b4b7ca4b8 Refactor reviewer flags API into a single endpoint 2018-03-12 20:18:23 +01:00
Andrew Williamson d05aebafda
allow collections to be accessed by id as well as slug in the API (#7728) 2018-03-08 22:04:16 +08:00
Mathieu Pillard aefa2d9a68
Merge pull request #7722 from diox/language-tools-appversion-filtering
Implement appversion compatibility filtering in language tools API
2018-03-06 16:39:22 +01:00
Mathieu Pillard 2e106c7557 Mention in language tools API docs that `type` is mandatory if `appversion` is present 2018-03-06 16:15:56 +01:00
Kumar McMillan d10ada5c51 Clarify that `channel` is a form parameter in the signing API (#7704) 2018-03-06 23:11:23 +08:00
Mathieu Pillard c125bf9354 Implement appversion compatibility filtering in language tools API
- Allow filtering by type to only show language packs
- Expose a new current_compatible_version if appversion is passed.
- This property will fetch the latest publicly available version
  compatible with the appversion passed.
- Replace caching with a filesystem-based implementation to work
  around cache eviction issues.
2018-03-05 15:44:46 +01:00
Benjamin Forehand Jr 66eaaa7b0d
Add Integration test documentation (#7695)
* Initial docs for new ui tests.
2018-03-02 10:13:00 -08:00
Mathieu Pillard 99dec0626d Only wrap outgoing links in the API if `wrap_outgoing_links` param is present 2018-02-21 15:58:42 +01:00
Mathieu Pillard 8789f550e5
Merge pull request #7562 from diox/deadline-for-info-requests
Add a (soft) deadline for requests for information
2018-02-19 12:35:02 +01:00
Andrew Williamson 2411973e5d
expose ratings_url in addon API; rename Addon.reviews_url internally. (#7587) 2018-02-16 23:06:18 +08:00
Christopher Grebs 56aba337cf
Update messaging 2018-02-15 17:24:34 +01:00
Christopher Grebs 84e6d6491a
API: Add new 'icons' property to add-on detail.
This exposes add-on icons in sizes 32 and 64 pixels, for compatibility
with the legacy search api.

Fixes #7514
2018-02-15 11:40:15 +01:00
Mathieu Pillard a8236ee58c Update docs copyright to 2018 2018-02-14 22:15:50 +01:00
Andrew Williamson 8be6a7b606
add `with_addons` param to Collection detail/view API (#7546) 2018-02-14 22:22:35 +08:00
Mathieu Pillard 2a377a01cb Add a (soft) deadline for requests for information 2018-02-14 12:52:20 +01:00
Andreas Wagner 55d85cd184
Disable beta version submissions and hide beta versions from listing (#7436)
Disable beta version submissions and hide beta versions from listing
2018-02-13 20:53:03 +01:00
Andrew Williamson 153f883182
slightly reword explanation about src param to files[].rul in version detail api docs (#7531) 2018-02-09 22:52:36 +08:00
Christopher Grebs 818ea06ace
Merge branch 'master' of github.com:mozilla/addons-server into 493-move-olympia-test 2018-02-08 16:43:14 +01:00
Andrew Williamson 7cd7e920ab
Support China Edition disco content (#7493) 2018-02-06 23:12:03 +08:00
Christopher Grebs ec4e23832a
Refactor our tests and code to make better use of settings.TMP_PATH (#7473)
* Revert "Revert "Refactor our tests and code to make better use of settings.TMP_PATH""

This reverts commit 3f7fe78093.

* Try manually checking out the repository
* Run exec as root
2018-02-05 12:46:12 +01:00
Andrew Williamson ac04078895
remove errant `string` in Add-on compat override doc (#7487) 2018-02-05 16:43:01 +08:00
Christopher Grebs c3c31665e2
Revert "Revert "Refactor our tests and code to make better use of settings.TMP_PATH""
This reverts commit 3f7fe78093.
2018-02-02 12:47:50 +01:00
Christopher Grebs c6485f36b4
Merge pull request #7439 from mozilla/3493-improve-jwt-docs
Improve JWT token docs a bit.
2018-01-30 18:27:50 +01:00
Mathieu Pillard e36b4d9252
Add option to disable auto-approvals on an add-on (#7407)
Add option to disable auto-approvals on an add-on
2018-01-30 18:16:25 +01:00
Christopher Grebs 6fdfacd20b
Improve JWT token docs a bit.
Fixes #3493
2018-01-30 15:28:19 +01:00
Christopher Grebs 3f7fe78093
Revert "Refactor our tests and code to make better use of settings.TMP_PATH"
This reverts commit 778a94871a.
2018-01-30 14:22:23 +01:00
Andrew Williamson d2d547948e
Speed up LanguageTools API by cutting out current_version from response (#7403) 2018-01-30 01:04:19 +08:00
Christopher Grebs 17bb6968e5
First part moving to olympia.test 2018-01-26 07:11:48 +01:00
Mathieu Pillard 10e6961047 Change internal auth API token name to be able to clear it completely
Sending multiple Set-Cookie headers with the same name is not allowed
by the spec, even if they have a distinct domain attribute, so we could
not clear the cookie on logout reliably, depending on how the user
logged in. Only solution is to change the name, so that it will be
correct from now on.
2018-01-25 19:48:55 +01:00
Mathieu Pillard 2025e66198 Move Reviews:Edit to Reviews:Admin 2018-01-22 13:19:38 +01:00
Mathieu Pillard 8931c9fd23 Implement extra inline actions on the review page for reviewers and admins
- Subscribing to notifications
- Force disabling/enabling of an add-on (admins)
- Clear needs admin code/content review flag (admins)
2018-01-19 16:25:25 +01:00
Andrew Williamson fe5bdeec73
CompatOverride API (#7339) 2018-01-19 14:34:09 +08:00
Andrew Williamson e555f1540e
Pass along any extra parameters provided to disco API to taar API (#7309) 2018-01-17 01:20:28 +08:00
Mathieu Pillard 50f252b83a Revert "Add `has_addon` parameter to collection list API"
This reverts commit 186110c1b8,
it turns out we don't really need this API, the UX around this
functionality for the frontend has changed.
2018-01-11 15:25:36 +01:00
Mathieu Pillard 186110c1b8 Add `has_addon` parameter to collection list API
This allows clients to do a single API call to return collections for
a user and find out if a given add-on is in them. The frontend will
use that to populate the collections dropdown on the add-on detail
pages when the user is logged in.
2018-01-08 12:16:48 +01:00
Christopher Grebs 1e5de68dac
Merge pull request #7203 from mozilla/simplify-files-tmp-setup
Simplify temporary files setup during tests
2018-01-05 17:29:16 +01:00
Christopher Grebs 778a94871a
Refactor our tests and code to make better use of settings.TMP_PATH
* Also let the dot in py.test die so that upstream is happy again :)
 * Update tox to 2.9.1
 * Make sure that our urlconf is reset *after* we set MEDIA_ROOT
 * Adapt file extraction handling to new TMP_PATH prefixes
 * Less dump_apps hacks since the apps.json file isn't present at the
   beginning of any test now thanks to temporary paths for every separate
   test
 * Rewrite read-only-mode tests to cope with pytest settings fixture
 * Remove atexit hack from settings_test

This will probably make things a lot easier for ui-tests as well.

Fixes #7205
Fixes #7206
2018-01-05 16:41:35 +01:00
Andrew Williamson 7c96e87081
document api addon search by multiple guid (#7213) 2018-01-05 12:02:21 +00:00
Mac Chaffee d75c7b2407
Add new gotcha with elasticsearch and vm.max_map_count 2017-12-11 00:27:09 -05:00
Matthew Riley MacPherson (tofumatt) ee84c9f7a5
docs: Fix homepage prop in account API docs (close #7076) 2017-11-30 10:16:16 +00:00
Christopher Grebs 2d14667e44
Fix pagination docs. I accidentally added this to the wrong branch. 2017-11-23 09:15:27 +01:00
Christopher Grebs b675677a7a
Expose page_count in pagination api. (#6982)
* Expose page_count in pagination api.

Fixes #6919

* Add docs
2017-11-22 15:03:09 +01:00
Andrew Williamson 28c8d9fd7c
pass on locale and platform to TAAR (#6916) 2017-11-14 19:02:58 +00:00
Mathieu Pillard 80f22b28f7 Document is_mozilla_signed_extension in the API 2017-11-13 19:47:53 +01:00
Andrew Williamson 58dcdbddd6
filter out deleted and non-public add-ons by default from collection addon list api (#6855)
+ add filters to include them.
2017-11-07 16:04:30 +00:00
Andrew Williamson fdcf919500
expose preview image dimensions in API (#6803) 2017-11-02 12:26:17 +00:00
Mathieu Pillard 4ccf128a00 Add extra `is_disabled_by_mozilla` property in addon detail API errors 2017-10-26 12:32:29 +02:00
Mathieu Pillard 4b99bbfb8e Add extra `is_disabled_by_developer` property in addon detail API errors 2017-10-25 17:40:35 +02:00
Mathieu Pillard 71bd2a663e Don't return completely empty content on success in review flag API 2017-10-19 11:20:08 +02:00
Andrew Williamson 29fe2a1c9f remove the unused /internal/ api (#6666) 2017-10-12 18:20:16 +01:00
Mathieu Pillard 188c0544af Add sort=random parameter to the add-ons search API (#6649)
Add sort=random parameter to the add-ons search API
2017-10-12 12:19:13 +02:00
Mathieu Pillard 606ca60536 Add a maximum query length limit to the search API 2017-10-10 18:04:15 +02:00
Andrew Williamson 564bd49357 return guid in language-tools API serializer (#6589) 2017-10-05 14:51:05 +01:00
Andrew Williamson f3a2a49a39 Remove unused login api endpoints (#6550) 2017-10-03 13:59:47 +01:00
Apoorva Pandey 1a1fc033d9 Fix link to docker commands in doc (#6563) 2017-10-03 09:40:19 +01:00
Mathieu Pillard ce673f748c Add add-on slug to language tools API responses 2017-09-29 12:55:57 +02:00
Andrew Williamson 0084b31bf2 Add replacement add-ons endpoint for taar to use. (#6517) 2017-09-28 12:08:57 +01:00
Mathieu Pillard 79c1f7ca12 Expose persona popularity as average_daily_users, ignore weekly_downloads for them 2017-09-20 17:14:25 +02:00
Andrew Williamson e542aec81b Expose permissions on the account serializer and reorg the code a little (#6450) 2017-09-19 16:31:52 +01:00
Andrew Williamson ffb095f6b7 add 'featured' filter to addon search api (#6339) 2017-09-19 10:22:41 +01:00
Mathieu Pillard 350ef7a727 Add 'exclude_addons' param to search API (#6414)
* Change slugs to keywords type in ES to prevent them from being analyzed

They'll often match the name anyway, and analyzing it prevents us from
doing exact matches on it.

* Add 'exclude_addons' param to search API

* Rename *FilterParam to *QueryParam to follow base class name change

* Avoid naming variable "rval"
2017-09-18 12:08:23 +02:00
Andrew Williamson 8db29f12f8 expose Addon.contributions as contributions_url in Addon API (#6436) 2017-09-18 10:53:34 +01:00
Andrew Williamson 628e0afd96 add has_anonymous_username and has_anonymous_display_name to user account api (#6426) 2017-09-15 16:37:01 +01:00
Andrew Williamson 97749e6cc3 add is_recommendation to serializer output (#6410) 2017-09-14 18:17:47 +01:00
Andrew Williamson 32a4de654d expose developer comments in Addon API (#6388) 2017-09-12 09:57:42 +01:00
Andrew Williamson 555a37baba Document disco recommendation api endpoint (#6386) 2017-09-12 09:30:36 +01:00
Mathieu Pillard 86c30efcea Add username to user information in API responses 2017-09-11 13:11:03 +02:00
tofumatt ☕️ 0e2d1cb009 Clarify requirements for add-on version list
I'm bad at Sphinx docs so apologies if this is the wrong format, but I was reading
the API docs and found this section a bit hard to parse. There are a lot of commas,
"and"s, and "or"s. I feel like this makes it a bit easier to grok.
2017-09-10 18:03:42 +01:00
Andrew Williamson faab8d6a55 Add review count for reviews with text (#6335) 2017-09-07 18:19:59 +08:00
Mathieu Pillard 07bc7cfb79 Fix small grammar nit in addons search docs 2017-09-05 17:24:46 +02:00
Mathieu Pillard 91ba81fe51 Allow add-on search API to search by multiple authors (separated by comma) 2017-08-31 15:28:54 +02:00
Mathieu Pillard eafd2f13f5 Include release notes in add-on detail API, exclude it and license from search 2017-08-29 13:46:14 +02:00
Andrew Williamson 3fd56bfedb Add is_public property to determine profile visibility. 404 on False. (#6219) 2017-08-24 16:31:40 +08:00
Kumar McMillan 7acd5db266 Document version.compatibility API response better 2017-08-14 12:52:46 -05:00
Kevin Brosnan e570f271fa Fix URL anchor for web-ext sign 2017-08-12 08:52:10 -07:00
Andrew Williamson 04e09fe6f4 Add Abuse reporting (#5975) 2017-07-25 15:29:44 +01:00
Andrew Williamson c2ed5d3ef9 Add a description to static category to be returned via the API (#5980) 2017-07-24 17:11:15 +01:00
Mathieu Pillard d098ce1788 Expose strict compatibility in the add-on detail/search API (#5963) 2017-07-21 13:15:16 +02:00
Mathieu Pillard fcf94198dc Add search autocomplete API
It's based on the regular search API, but fetches less data and
pagination is not supported, the number of results will always be
10 max.
2017-07-18 18:31:39 +02:00
Mathieu Pillard 875c13b3c4 Merge pull request #5939 from diox/add-language-tools-api
Add language tools API
2017-07-18 18:27:07 +02:00
Andrew Williamson 9c83d5ae95 add is_featured to Addon api response (#5940) 2017-07-18 17:20:05 +01:00
Mathieu Pillard 2cf22e7705 Remove extra docs from add-on object now that language-tools doc has them 2017-07-18 18:12:28 +02:00
Mathieu Pillard da7c987d48 post review documentation tweaks 2017-07-18 17:55:03 +02:00
Mathieu Pillard 28187a50c3 Add language tools API
This returns all valid, public dictionaries and language packs on
AMO in a single endpoint. Clients should then sort through the
results to display them as they see fit.
2017-07-18 14:52:17 +02:00
Andrew Williamson 868fd39a30 fix up formatting Auth internal docs page (#5927) 2017-07-17 15:07:44 +01:00
Andrew Williamson 3725414dcd Add Addon.requires_payment to model, api, devhub, and reviewer tools (#5893) 2017-07-17 14:27:29 +01:00
Andrew Williamson d681115192 find replacement addons admin interface (#5886) 2017-07-13 13:02:26 +01:00
Mathieu Pillard a9aa802333 Expose is_restart_required property on files in the search/detail API (#5858)
* Expose is_restart_required property on files in the search/detail API

* Fix mapping tests

* Replace no_restart field (and HTML/CSS for consistency) by is_restart_required

* Move migration now that 953 is taken

* Remove old model field entirely.
2017-07-11 13:44:37 +02:00
Mathieu Pillard 6607ee6ae1 Allow filtering of API search results by exact author username (#5857)
Allow filtering of API search results by exact author username
2017-07-10 13:29:05 +02:00
Andrew Williamson 10b44a670a Return extra profile information on login (#5818) 2017-07-05 13:36:17 +01:00
Andrew Williamson 75c8e3bdc7 Add authors.picture_url to Addon detail serializer (#5755) 2017-06-27 10:55:06 -07:00
Kumar McMillan 80a33c1579 Document how the addon param can be a slug too (#5750) 2017-06-22 17:51:05 -05:00
Kumar McMillan 27b2283e87 Update docs on available signing libraries (#5732) 2017-06-21 22:15:14 -05:00
Mathieu Pillard 6e6668692c Add a link to version upload in add-on API docs 2017-06-20 14:38:24 +02:00
Andrew Williamson 7a02e93ad7 review api doc update with new param names 2017-06-20 09:53:03 +01:00
Andrew Williamson 5b94db4d7c Change review list api to include empty reviews by default; (#5685) 2017-06-19 19:32:40 +01:00
Andrew Williamson 4379b76e6b Add an endpoint to clear the profile photo (#5645) 2017-06-19 19:32:03 +01:00
Andrew Williamson e971a1c054 Make Makefile cleaner by splitting tasks between host and container (#5634) 2017-06-15 09:41:40 +01:00
Andrew Williamson 87efb2789b Add default sorting to Collection API and specifiable sorting to CollectionAddon API (#5630) 2017-06-14 12:41:47 +01:00
Andrew Williamson 2e1e8858da Move collections API details to a separate page. (+ missing Accounts created property) (#5599) 2017-06-07 19:04:23 +01:00
Andrew Williamson 087233f6c3 Collections api addons edit (#5563) 2017-06-06 16:14:30 +01:00
Andrew Williamson 7fbb29d757 Add collections api edit/create/delete (#5501) 2017-06-01 13:08:02 +01:00
Andrew Williamson 84cc7aafb1 move accounts/profile endpoint where it's supposed to be, and with correct auth. (#5477) 2017-05-23 17:11:25 +01:00
Andrew Williamson 9585394c10 Add account (soft) delete to API (#5457) 2017-05-22 19:08:03 +01:00
Andrew Williamson 7d43e947a8 Add user notification API (#5435) 2017-05-22 15:37:16 +01:00
Andrew Williamson 1a2547db51 Add UserProfile edit API (#5392) 2017-05-16 13:21:53 +01:00
Mathieu Pillard 7c364dbe9f Merge pull request #5416 from diox/expose-bayesian-average-api
Expose bayesian rating average for add-ons in the API
2017-05-16 13:04:35 +02:00
Mathieu Pillard a14e999b9b Expose bayesian rating average for add-ons in the API 2017-05-16 12:31:35 +02:00
Andrew Williamson 66fd77c09a Implement read-only collections API (#5358) 2017-05-12 16:31:34 +01:00
Andrew Williamson a36c416fcc Expand accounts api to expose publicly viewable information for other users (#5318) 2017-05-05 17:19:40 +01:00
Andrew Williamson b838f3efb7 Lose l10n on UserProfile.bio and drop .lang, .region (#5279) 2017-05-02 17:21:02 +01:00
Andrew Williamson b098079c45 Hide empty reviews, apart from admins and your own (#5227) 2017-04-25 15:44:23 +01:00
Mathieu Pillard f679731e06 Merge pull request #5141 from diox/search-by-tag-name-in-api
Allow filtering by exact tag name in the search API
2017-04-11 11:53:56 +02:00
Mathieu Pillard dadfa28cb9 Allow filtering by exact tag name in the search API 2017-04-10 17:53:29 +02:00
Mathieu Pillard 0db5b066d1 Merge pull request #5140 from diox/expose-webextensions-api
Expose whether or not a file is a webextension in the API
2017-04-10 16:46:50 +02:00
Mathieu Pillard 9ccf487260 Expose whether or not a file is a webextension in the API 2017-04-10 13:24:43 +02:00
Mathieu Pillard e5d300256d Merge pull request #5129 from diox/api-auth-error-responses
Provide error codes for failed some API auth responses
2017-04-10 11:47:30 +02:00
Mathieu Pillard 74347d98a6 Provide error codes for failed API auth responses 2017-04-07 13:10:20 +02:00
Mathieu Pillard b572dd431f Merge pull request #5120 from diox/logging-2.0
Log to console using mozlog json format in dev/stage/prod
2017-04-06 19:26:42 +02:00
Mathieu Pillard a06590e4ba Log to console using mozlog json format in dev/stage/prod 2017-04-06 13:10:38 +02:00
Mathieu Pillard 0c7a2a5f3d Add optional filtering on `version` in reviews list API 2017-03-31 11:41:58 +02:00
Kumar McMillan db7e18f9d6 Removed "session cookie" reference from API docs since that's misleading 2017-03-24 10:34:28 +00:00
Mathieu Pillard 6d85577f07 Use a real token in the API docs example 2017-03-22 11:04:05 +00:00
Mathieu Pillard 4493197bbe Remove JWT for internal API auth, use token depending on user.pk and user.auth_id
This mimics how django creates session tokens, except a different salt is used.
When a user auth_id is changed, its sessions and tokens are no longer considered
valid.

Note: JWT created by external clients using their API keys are still valid, but
that's a different auth mechanism only used by a handful of APIs, like add-on
signing.
2017-03-16 17:32:23 +01:00
Mathieu Pillard 19177a796e Move commonware utils we use to our own repos
- Middlewares are integrated to existing ones or moved to amo.middlewares
- Logging is moved to core.logger
- All logging calls are modified to use core.logger
- In addition, get/set_user(), get/set_remote_addr() are moved to core
  to circumvent import issues.
2017-03-08 12:01:03 +01:00
Mathieu Pillard f0e3b40ade Merge pull request #4842 from diox/api-better-page-size-docs
Clarify documentation about pagination in the API
2017-03-06 12:39:51 +01:00
Mathieu Pillard c4542c5cbe Clarify documentation about pagination in the API 2017-03-06 12:39:38 +01:00
Mathieu Pillard ccd830913a Expose page_size in paginated API response
Fix #4837
2017-03-03 18:44:45 +01:00
Mathieu Pillard 216253f31a Parse review API 'show_grouped_ratings' param with a DRF BooleanField
Fixes issues we've been having with show_grouped_ratings='0' being
accepted as a truthy value, and makes things more coherent.
2017-02-21 19:16:27 +01:00
Mathieu Pillard 797a9b1883 Fix the URL for reviews list in API documentation 2017-02-16 21:36:55 +01:00
Mathieu Pillard 9031a6bb7d Refactor reviews API to change the URL to /api/v3/reviews/review/...
As a result of this, the addon (or user when listing) must now be
passed in GET/POST data. This allows the client to filter on both
parameters at the same time.
2017-02-16 11:22:28 +01:00