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

840 Коммитов

Автор SHA1 Сообщение Дата
William Durand 385fef4f94
Add created field in ScannerResultSerializer (#14877) 2020-07-07 18:38:14 +02:00
William Durand 3bca5ac25f
Update scanners API docs (#14776) 2020-06-30 10:57:12 +02:00
Andrew Williamson acaff670b2 extra blurb about deleting informatoin 2020-06-23 10:44:53 +01:00
Andrew Williamson b92e5e16aa update accounts delete API docs too 2020-06-23 09:50:09 +01:00
Bob Silverberg 3781ee0233
Remove `version` from retrieve and list draft_comments API responses (#14361) 2020-05-29 07:41:16 -04:00
Mathieu Pillard 4619939d64
Merge pull request #14373 from diox/send-fxa-id-and-not-email-to-basket-user-sync
Send fxa_id, not email, in user basket sync
2020-05-25 13:45:44 +02:00
Mathieu Pillard 14881955c0 Send fxa_id, not email, in user basket sync
Salesforce already have FxA data so it's best not to send the email
as it would be duplicate info anyway. FxA is the source of truth for
emails.
2020-05-25 13:04:35 +02:00
Lisa Chan 9153487c23
RE: Update install doc regarding elasticsearch timed out error (#14357) 2020-05-21 15:44:05 -04:00
Bob Silverberg f441e0fc5a
Move the `entries` from the `file` object into the version object for Browse and Compare APIs (#14218) 2020-05-19 10:48:13 -04:00
Bob Silverberg 5f06ebe6b6
Update Browse and Compare API endpoints to allow for `file_only` (#14163) 2020-05-06 08:25:13 -04:00
Bob Silverberg fed8ca24a3
Remove unnecessary file properties from reviewers API responses (#14105) 2020-04-30 14:34:02 -04:00
Andrew Williamson 005da78a07
Merge pull request #14083 from eviljeff/14018-blocklist-docs
document AMOs blocklist implementation
2020-04-29 16:34:12 +01:00
Bob Silverberg bfd3b046af
Remove properties from entries, and do not require entries to calculate file-level properties (#14043) 2020-04-28 11:42:27 -04:00
William Durand e077b8bea7
Add filters to the scanners api endpoint (#14078) 2020-04-28 16:28:13 +02:00
Andrew Williamson c7a05188e2 spelling! 2020-04-28 14:29:21 +01:00
Andrew Williamson 5a3ceb74d4 document AMOs blocklist implementation 2020-04-28 14:17:52 +01:00
Bob Silverberg 44928e107c
Add sha256, mimetype and size to File information returned by reviewers APIs (#14031) 2020-04-23 10:09:36 -04:00
Shashwat S 51f193da06 Update install docs for Windows
In case a developer is using Docker Desktop for Windows then
the containers don't prepare /etc/hosts file. Additionally,
elasticsearch faces OOM errors so added a Gotcha for this.
2020-04-12 19:26:40 +05:30
Andrew Williamson 1152b0784d
Expose add-on name in blocklist/block api (#13786)
* Expose add-on name in blocklist/block api

* add a generic test in api/tests/test_fields.py
2020-03-20 11:17:24 +00:00
Christopher Grebs 41f17af6ad
Expose file.id in compare endpoint. (#13740)
* Expose file.id in compare endpoint.

Fixes #13650

* Actually, expose the file id, not the version id.

* Rename to base_file_id, fix a few other doc typos

* Small refactor, use a nested serializer to render an actual object for base_file

* Fix naming
2020-03-17 19:58:23 +01:00
Andrew Williamson d54dc781dc
add blocklist/block api (#13737)
* add blocklist/block api

* refactor test_serializer.py
2020-03-17 09:23:21 +00:00
Christopher Grebs e3e846a086
Add information about whether a file is minified to the review… (#13661)
* Add information about whether a file is minified to the reviewers API.

Fixes #13589

* Add documentation

* experiment, don't delete all validation objects

* Fix how we're fetching the FileValidation, use parent.current_file.pk

* Increase num queries check for now

* Avoid that extra query
2020-03-16 14:50:40 +01:00
Mathieu Pillard 7f85510195
Remove unnecessary version properties from APIs used by code-manager (#13658)
* Remove unnecessary version properties from APIs used by code-manager

* Fix queries optimizations and expectations
2020-03-06 20:23:49 +01:00
Mathieu Pillard 9cc031333c Switch from IRC to Matrix 2020-02-21 11:02:29 +01:00
Mathieu Pillard 66a19078e5 Add addon_install_source_url parameter to abuse report API 2020-02-12 11:34:38 +01:00
William Durand b28864c20b
Add admin buttons to allow/deny resubmission in the reviewer tools (#13425)
* Add methods to the Addon model to deal with DeniedGuid

* Update reviewers.js with new button IDs

* Add new reviewer API endpoints

* Add new buttons to allow/deny resubmission

The `Addon.is_guid_denied()` method is now a prop.

* linting fixes

* move new buttons to the right

* resubmission buttons are red now
2020-02-07 12:53:31 +01:00
William Durand ef03f216c8
Expose `label` in scanner results API endpoint (#13343) 2020-01-29 11:38:01 +01:00
William Durand 95d694b45f
Add a new API endpoint for ScannerResult(s) (#13335) 2020-01-24 15:14:43 +01:00
Christopher Grebs 6bd7ad9d50
Remove UI test code (#13245)
Remove UI test code
2020-01-16 06:06:54 +01:00
Christopher Grebs d98a9397d0
Only calculate sha256 hash of currently selected file. (#13237)
* Only calculate sha256 hash of currently selected file.

This will calculate the hash only for the currently selected file which
will reduce the delay of the initial request significantly because we
won't have to calculate sha256 hashes for hundreds of files.

The additional calculation time when selecting a file should be fairly
low because we already have the content in memory and the code-manager
does prefetch some usual usage patterns which will ensure most of the
data is already rendered.

Fixes #12920

* Update docs

* Fix flake8

* Fix typo
2020-01-14 17:16:09 +01:00
dbxnr fd9bc77c2f Remove references to selenium 2020-01-13 23:24:33 +00:00
mirefly f838f6f704 Fix pytest.org link in docs 2020-01-05 23:06:21 -07:00
Andrew Williamson 70a2c8e98a
rm featured in the v4 api/shim in v3 api (#12949) 2019-11-25 16:06:36 +00:00
Christopher Grebs e2e5423286
Improve documentation regarding filename and it's absolute val… (#12929)
* Improve documentation regarding filename and it's absolute value.

Fixes #12608

* Use 'full' instead of 'absolute'
2019-11-21 13:03:19 +01:00
Mathieu Pillard 9ddf2c0e14
Refactor unlisted submission to go through auto-approval workflow (#12658)
Refactor unlisted submission to go through auto-approval workflow

Because unlisted versions can be submitted when the add-on is
disabled, this forces us to consider them as candidates for
auto_approve, but reject them later during processing.
2019-11-13 11:59:07 +01:00
junngo 2968b71a1f drop is-source-public field except for v3 api 2019-11-12 00:23:51 +09:00
Mathieu Pillard a877485c27 Add 'AMO' as a valid report entry point in abuse reports 2019-10-29 12:49:30 +01:00
Andrew Williamson f6dafeb47a
move /authenticate api endpoint to new versionless api; update clients (#12570) 2019-10-11 17:20:43 +01:00
yatinmaan b3dbab3523 Update docs 2019-10-06 00:16:54 +05:30
Andrew Williamson c4f0e8964e wrap secondaryhero urls in outgoing if wrap_outgoing_links specified 2019-09-26 11:15:31 +01:00
Andrew Williamson 9c40be32af
remove requirement that primary hero featured image should be set (#12414) 2019-09-24 16:55:20 +01:00
Christopher Grebs 0bd4815d37
Upgrade Celery to 4.3 (#12073)
Upgrade Celery to 4.3.0

This PR upgrades to Celery 4.3, introduces a small hack because of a regression in celery.

This PR does not introduce any helpers to make use of celery workers inside the tests, we delayed that to a later point to unblock the upgrade.

This PR does fix some inconsistencies with elasticsearch mocks along the way as they were making some tests fail (see comment logs), the mocks are now applied and rolled back much less than before which makes them easier to reason about and to debug.

Notes:

 * acks_late now doesn't acknowledge in case of failures or timeouts (which is the case for index_addons). We could use task_acks_on_failure_or_timeout but I figured the new behavior should be fine.
 * any CELERY_ALWAYS_EAGER setting in local_settings.py must be replaced by CELERY_TASK_ALWAYS_EAGER

commit log:

* Implement proper wait_for_tasks helper, make TestTaskQueued work with celery worker
* Revert changes removing threading code from es reindex tests
* Fix es reindex test, correct always eager usage.
* Small cleanups, fix docs, don't reload session worker.
* Ensure docker-compose celery result doesn't use the same database as any potential tests
* Monkeypatch for celery regression
* Actually use our own app where all tasks are already bound to. This also enables logging
* Experiment: Group celery worker tests together with elasticsearch and dont run them multitasked
* Remove envlist as it doesn't add anything to our specific setup
* Fix es-and-celery marker selection
* Remove completely redundant tests
* Fix hanging tasks, let's see what travis thinks... I'll follow up with cleanups and much more docs once tests are actually succeeding
* Define celery.ping in amo.celery, use redis result backend
* Cleanup celery worker implementation a bit.

Mimic our usage of elasticsearch specific tests, this avoids various
necessary workarounds and environment cleanups because django handles
things like settings properly in the first place.

* Untangle es mocks a bit, raise error in case of not properly stopped patches.
* Re-implement state test by using celery manager to wait for results
* Explicitly re-reinitialize the workers event loop and dont reuse anything existing
* Remove celery worker thread specific code.
* Reset default celery result backend setting
2019-09-18 17:36:01 +02:00
Andrew Williamson 3f41adb7a2
expose site_status in UserProfileSerializer and /site/ (#12356) 2019-09-16 14:26:20 +01:00
Christopher Grebs af1f6b439b Re-use AddonBrowseVersionSerializer for DraftComment API.
Fixes #12275
2019-09-06 21:20:04 +02:00
Stuart Colville d219e84688
Move templates to .github dir (#12291)
* Move templates to .github dir

* Fix path
2019-09-06 15:01:11 +01:00
Christopher Grebs 09750c8517
Correct canned_response description, document response values. (#12278)
* Correct canned_response description, document response values.

Also document possible null values.

Fixes #12263
Fixes #12087

* Use a definition list instead of duplicated data.

* Add more information about nullable values.
2019-09-05 15:12:45 +02:00
Andrew Williamson 912dc79a9a
updated primary hero shelf api to return raw description with <blockquote> (#12254) 2019-09-02 16:28:18 +01:00
Christopher Grebs 4001f6716a
Fix typo in api docs for linking a canned-response to a draft comment.
Fixes #12237
2019-09-02 10:56:29 +02:00
Andrew Williamson 1341d39f8c
correct secondary hero api response in docs (#12233) 2019-08-30 17:37:35 +01:00
Mathieu Pillard 208f7e17f8
Merge pull request #12222 from diox/fix-abuse-report-api-app-profile
Fix abuse report API docs & app_profile value for install source
2019-08-30 14:00:58 +02:00