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

1079 Коммитов

Автор SHA1 Сообщение Дата
Mathieu Pillard c3511037e8 Fix abuse API docs missing backticks 2019-02-20 15:28:48 +01:00
Mathieu Pillard a768edd15b Augment the Abuse Report API with new fields
Those new fields are meant to be used for add-on reporting from
within Firefox itself.
2019-02-19 15:04:47 +01:00
Christopher Grebs 1352908bcf
Expose version list for diffing, rework reviewers api to be more concise (#10684)
* Expose version list for diffing, rework reviewers api to be more concise

We're now mounting any listing/browsing/future diffing APIs under the
already existing addon/<addon_id>/ endpoint which makes the whole
reviewer APIs behave more consistently.

Also implements the listing of versions that can be used for browsing
and diffing.

Fixes #10432

* Simplify view, don't rely on @action decorator but just make it the detail view

* Smaller cleanups, fix permissions

* More smaller cleanups, split list/retreive better

* Fix link in docs

* Improve tests, remove 'should_show_channel' and 'url'

* Smaller performance optimization

* Fix flake8

* Improve docs
2019-02-15 15:53:09 +01:00
Mathieu Pillard 1d559fcd32
Fix codestyle and docs jobs (#10683)
* Fix docs for python 3

* Make travis behave like it's inside our container, fix tox/makefile accordingly

* Fix docs build by choosing another label than _search (which is already used)

* Fix codestyle linter issues

* Remove extra force_bytes import

* Add ignore for int|null in docs as it's used in a couple places and it's valid

* Fix more docs build failures in reviewers.rst

Also build docs with -W by default to make future docs breakage
easier to spot locally.

* Leave -f Makefile-docker for UI Tests as they are not running from the standard container
2019-02-13 16:21:05 +01:00
Christopher Grebs 45fe5fdffb
Small cleanups 2019-02-08 13:03:11 +01:00
Christopher Grebs d129e2351e
Expose add-on and selected file data.
Fixes #10633
2019-02-08 08:48:32 +01:00
Andrew Williamson c083779f27
correct the api changelog ordering to oldest first (#10486) 2019-01-23 16:00:02 +08:00
Christopher Grebs d305b1b63f
Update reviewers/browse api docs, add missing fields. 2019-01-17 10:55:04 +01:00
Christopher Grebs 300eb84353
Remove GitHub API and unused files.utils helpers (#10412)
Fixes #10411 

This removes unused files.utils helpers `zip_folder_content` and `repack` along the way.

Once this has been merged, ops can remove `GITHUB_API_USER` and `GITHUB_API_TOKEN` from the environment. I actually wonder where they have been generated, e.g to get them revoked?
2019-01-16 12:01:26 +01:00
Christopher Grebs 0b3c03f424
Implement /reviewers/browse/ API. (#10359)
Fixes #10322 

Contains a few very small changes along the way to simplify #9498
2019-01-14 14:57:13 +01:00
Mathieu Pillard 8da7a8d097 Clarify documentation for the discovery API 2019-01-09 15:05:16 +01:00
Andrew Williamson 96d87a9391
drop username editing (#10329) 2019-01-09 19:18:03 +08:00
Mathieu Pillard fbc32f893e Merge remote-tracking branch 'upstream/master' into taar-disco-recommendations-with-override 2019-01-08 17:08:49 +01:00
Andrew Williamson 77110c8e54
Force display_name to have at least one printable charactor (#10324) 2019-01-08 16:40:27 +08:00
Mathieu Pillard 1d805e1846 Add curation override mechanism to discovery endpoint
Also refactors the way we call taar/taar lite since it depends on
a new taar API that needs to be called using POST + a specially
crafted parameter to handle the overrides.
2019-01-04 15:33:13 +01:00
Mathieu Pillard ec7ab24cf2
Merge pull request #10291 from diox/include-more-fields-in-api-search
Add release notes and license info (except full text) to search API
2019-01-03 15:27:23 +01:00
Andrew Williamson 3258a760dc
display_name limited to between 2 and 50 characters (#10270) 2019-01-02 23:14:27 +00:00
Mathieu Pillard 718504bde8 Add release notes and license info (except full text) to search API 2019-01-02 16:56:40 +01:00
Andrew Williamson dd733fe76c
stop using username as a fallback when display name isn't set (#10262) 2019-01-02 10:15:48 +00:00
Mathieu Pillard 4be0ca4973 Decode guid using base64 if prefixed by rta: in search API
This supports the "Return to AMO" feature from bug 1468680.
2018-12-17 14:23:29 +01:00
Mathieu Pillard c7186d0d53 Add search by color in the search API (for static themes only) 2018-12-14 14:53:57 +01:00
ajupazhamayil 72c930b262 issue:7340-remove all the code related to multi-process status except message ids in django.po files (In locale folder) 2018-12-11 18:15:45 +05:30
Christopher Grebs 4a207aeed2
Split selenium based docker-config into tests/ui/docker-compose.selenium.yml (#10143)
Unfortunately, we'll have to duplicate the environment config but I added
a comment so that should be fine. It's very rarely being used anyway.

Fixes #9288
2018-12-03 17:40:00 +01:00
Mathieu Pillard 785df694bb
Merge pull request #10089 from diox/search-ngrams
Implement trigrams search on addon names to help partial matches
2018-11-29 13:31:45 +01:00
Andrew Williamson ed024da8df
publize 128px icon as a standard icon size; only generate 32, 64, 128 (#10092) 2018-11-28 13:08:05 +00:00
Mathieu Pillard 4449bdf978 Implement trigrams search on addon names to help partial matches
Also tweak popularity boost, making it a query-time boost instead,
changing the formula slighly but keeping it relatively similar for
now.
2018-11-27 15:09:05 +01:00
Andrew Williamson 729ce42950
allow ratings api to be filtered by rating score (#9999) 2018-11-20 11:48:42 +00:00
Mathieu Pillard f893e053c0 Add add-on guid to discovery editorial API 2018-11-16 19:27:10 +01:00
Mathieu Pillard 3a51d5cc99 Give some leeway in search fuzzy name matching by using minimum_should_match 2018-11-16 16:18:26 +01:00
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