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

1325 Коммитов

Автор SHA1 Сообщение Дата
Andrew Williamson 11cf428802
add canned reasons to blocksubmission admin (#20978)
* add canned reasons to blocksubmission admin

* build on ReviewActionReason for canned response instead

* Fix reviewers tests that didn't create a complete ReviewActionReason

* in migration default canned_block_reason field to '' for existing records
2023-07-13 13:55:46 +01:00
Mathieu Pillard 117dd81743
Split New Theme submission from the rest (#20968)
* Split New Theme Submission from the rest

For simplicity new version creation are not modified in this commit,
because we're already able to serve different content for them, or
gate them however we'd like, as we already have the add-on available.

* Display error message when trying to use theme submission flow to upload a non-theme

Note: this is not intended as a security measure, it's only to be
nice to users who accidentally ended up in the wrong flow.
2023-07-11 14:05:12 +02:00
Andrew Williamson 80bdb33b8f
allow reason & url to be changed/cleared on blocklistsubmission (#20941) 2023-07-07 18:13:24 +01:00
Andrew Williamson cb1aef685e
correctly show minimum adu returned for max results length adu list (#20967) 2023-07-07 17:48:53 +01:00
Andrew Williamson bec51655da
fix blocklistsubmission all|none links (#20929) 2023-07-04 16:22:47 +01:00
Andrew Williamson 7bd1883f6f
add select all|none links for [un]block version checkboxes (#20912) 2023-06-30 16:09:36 +01:00
Andrew Williamson 8fce06e757
define if a blocklistsubmission updaates metadata (#20907) 2023-06-30 14:56:03 +01:00
Andrew Williamson 5d8ed69812
update hero admin page styles (#20900) 2023-06-29 15:26:21 +01:00
Andrew Williamson 2f895832ea
change version checkboxes to make it clearer between blocking and already blocked (#20887)
* change version checkboxes to make it clearer between blocking and already blocked

* wrap blocked and not blocked icon & version string in a span, with title
2023-06-28 15:45:39 +01:00
Andrew Williamson 706798d37e
per version blocks (#20829)
* track Blocked versions per version

* update api docs

* test fixes

* scanners test fixes

* drop now obsolete create_blockversions command

* address review comments; fix failing tests

* restore warning messages about a version being in a submission or block

* add extra tests + optimizations

* Fix failing blocklist/test_serializers.py test
2023-06-26 11:00:10 +01:00
Mathieu Pillard b204dde19e
Don't require a comment for clear pending rejection/clear needs human review (#20881)
+ drive by cleanup: JS code for set needs human review is no longer needed
since it's a regular action and not a button calling the API now.
2023-06-26 11:59:55 +02:00
Mathieu Pillard 445458fe84
Fix error message not appearing on reviewer actions with invalid form (#20880)
The actions are no longer wrapped in a <li> following Django 4.2 upgrade.
2023-06-26 11:59:43 +02:00
Rob Wu b5d05761a4
Add word-break:break-word to uses of white-space:pre-wrap (#20854)
`white-space: pre-wrap` prevents lines from being broken unless an
explicit line break is in there.

Since the content of these fields are external (user-generated), there
is no guarantee of the line length to be within reasonable bounds.

Rather than stretching the layout, add `word-break: break-word` to allow
the line to be wrapped regardless.
2023-06-20 16:25:37 +01:00
Mathieu Pillard 879ce0d576
Don't show code manager links to non-reviewers (#20812)
* Don't show code manager links to non-reviewers
2023-06-12 11:09:28 +02:00
Mathieu Pillard b9bf4dcba8
Add an hidden input to indicate android compatibility when it's forced at upload (#20803) 2023-06-07 17:38:47 +02:00
Mathieu Pillard 633bee1085
Lock compatibility information if it came from `gecko_android` (#20784)
* Lock compatibility information if it came from `gecko_android`

Manifest should be the source of truth for compatibility data for Android when
`gecko_android` if set.
2023-06-06 17:02:54 +02:00
Mathieu Pillard 7d3eb6d935
Make sure at least one compatibility checkbox is checked at upload time if they are visible (#20793) 2023-06-06 15:09:27 +02:00
Mathieu Pillard cbf383d57a Remove broken call to function that no longer exists 2023-06-02 16:40:34 +02:00
Mathieu Pillard 21961ee767
Remove obsolete compatibility changing code (#20777)
* Remove obsolete compatibility changing code

The only add-ons left with strict compatibility should be langpacks,
and we don't want to continue allowing to dynamically alter their
compatibility via devhub.

* Test fixes

* More extra css/js that can be removed

* Remove unused import
2023-06-01 16:30:22 +02:00
Mathieu Pillard a5a50b2c85
Only show compatibility information at submission time for extensions (after upload) (#20758) 2023-05-26 19:54:58 +02:00
Andrew Williamson 29340a8591
Add a view to redirect a given version to the correct page on /review (#20754)
* Add a view to redirect a given version to the correct page on /review

* drop intermediate lists in review_version_redirect; add 404 tests
2023-05-26 18:48:36 +01:00
Andrew Williamson ed83585609
show version adu in review page (#20726)
* load version adus in review page xhr

* Add top 10 ADU versions box

* moved ADU block to RH sidebar; made style consistent; reviewers js now runs on documen load
2023-05-23 11:29:33 +01:00
Andrew Williamson 691d91e2e3
minor css regressions from django4.2 upgrade (#20644) 2023-05-15 11:43:14 +01:00
Andrew Williamson 50867428c6
fix css in django admin (django4.2 changes) (#20657) 2023-05-09 13:28:37 +01:00
Andrew Williamson e8d549c6c2
Enable django4.2 deployment (#20612)
* allow django41 installation via make; add CI matrix

* ManifestStaticFilesStorage with sourceMappingURL

* test against django4.2rc1

* import django.core.files.File directly

* handle django4.2 being precise with timeuntil

* bump django4.2 to release

* fix reviewer tools css/js

* don't downgrade django3.2

* prettier fix

* handle timesince being more picky (again)

* default to django42
2023-04-26 09:44:31 +01:00
Mathieu Pillard b5fb2034c7
Show which versions have a due date in reviewer tools (#20522)
* Show which versions have a due date in reviewer tools

Bonus:
- Change "risk" colors to go from yellow to red
- Move and rename "MAD" flag to avoid confusion with needs human review
- Allow changing due date again once the first change goes through
2023-03-28 18:04:51 +02:00
Bob Silverberg 1dd7598476
Remove canned responses logic from reviewers form (#20357) 2023-02-16 07:57:26 -05:00
Bob Silverberg 1cce5a3b5d
Configure addons-server to start sending data to GA4 (#20346) 2023-02-15 10:59:32 -05:00
Mathieu Pillard dcfe5e87e0
Show & Allow removing Unlisted Auto-Approval Extra Delay in review tools (#20297)
* Show & Allow removing Unlisted Auto-Approval Extra Delay in review tools

Also refactor how flags are displayed, adding a couple new ones and hiding the ones that are not relevant to the version shown in the review page because of the channel.
2023-02-09 15:01:01 +01:00
Andrew Williamson d960b4e3a7
manually set due_date and needs_human_review (#20252) 2023-01-31 17:01:40 +00:00
Mathieu Pillard 6e4947e581
Add flag to delay auto-approval for unlisted, set it at version creation (#20267)
* Add flag to delay auto-approval for unlisted, set it at version creation
2023-01-31 11:16:45 +01:00
Andreas Wagner 6de094fa8c
Don't open new tab for false positive scanner result report (#20261)
Fix https://github.com/mozilla/addons-server/issues/20260
2023-01-30 13:57:40 +01:00
Mathieu Pillard 8c3ee80b55
Add links and more useful information to inline files in addon admin (#20244)
* Add links and more useful information to inline files in addon admin
2023-01-25 17:34:46 +01:00
Andreas Wagner 23dafafbad
Remove unnecessary line break for review queue flag (#20214)
Fix https://github.com/mozilla/addons-server/issues/20213
2023-01-23 16:33:31 +01:00
Mathieu Pillard 59beb0efc2
Add IP search for addons & ratings admin (#20101)
* Add IP search for addons & ratings admin
2023-01-11 12:06:25 +01:00
Mathieu Pillard de9bad03f0
Refactor IP address search to make it available to other admin tools (#20141) 2023-01-05 15:37:30 +01:00
Bob Silverberg d198cffc21
Add a message to the comments box when Approve or a Reject action is selected. (#20014)
Fixes https://github.com/mozilla/addons-server/issues/19981
2022-11-30 13:37:28 -05:00
Mathieu Pillard 94a1caf110
Add warning at submission for listed MV3 uploads (#19893)
* Add warning at submission for listed MV3 uploads
2022-11-15 18:31:21 +01:00
Andrew Williamson 8faa52b279
replace `|` in reviewer actions lists with space padding (#19894)
* replace `|` in reviewer actions lists with space padding

* change wrapped spaces to space separator; with ~= js selector
2022-11-15 17:03:17 +00:00
Mathieu Pillard b70a0cf18e
Surface some information about scanner results in reviewer tools (#19857) 2022-11-10 14:08:50 +01:00
Bob Silverberg 5817df7c0e
Insert a canned response when a reason is chosen (#19848)
Fixes https://github.com/mozilla/addons-server/issues/19847
2022-11-08 08:56:54 -05:00
Bob Silverberg b890ede1e0
Change review reasons UI to use checkboxes (#19844) 2022-11-01 10:11:47 -04:00
Andreas Wagner 836e268423
Smaller reviewer tools improvements (#19796) 2022-10-18 16:03:20 +02:00
Mathieu Pillard e9843c2709
Support ranges and networks in IP admin search (#19674)
* Support ranges and networks in IP admin search
2022-09-12 11:11:44 +02:00
Mathieu Pillard 5d047cbb1b
Trim whitespace in admin search when query contains a comma (#19668)
* Trim whitespace in admin search when query contains a comma

Makes is less likely to return '0 results' just because you accidentally
added a space or a trailing comma in IP search.
2022-09-08 11:46:37 +02:00
Mathieu Pillard 62aa2c48c9
Use IPLog only for IP searches in the admin (#19626)
* Use IPLog only for IP searches in the admin

Using IPLog only makes the query a lot more efficient, previously the
multiple joins + OR were forcing MySQL to do a full table scan.

In addition:
- Leverage ip_address_binary (and most importantly, for faster searches (and in
  the future, ranges)
- Use GROUP_CONCAT() to find and display all other IPs for each user in results
- Refactor existing frontend code to dynamically add/remove IPs from results
  to use the new layout
2022-08-30 18:16:41 +02:00
Mathieu Pillard 3b0be87ba2
Simplify `pretty_filename` implementation ; use it when we display filenames (#19208)
* Simplify pretty_filename implementation ; use it when we display filenames

Make File.pretty_filename a property, and make it the main way to display
filenames in URLs & UI, to prepare for the replacement of the filename
field later.

* Should be a property now
2022-05-05 12:25:40 +02: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
Mathieu Pillard bdbcbcdd63
Fix lang switcher breakage and finish removing old impala/amo2009 js (#18818) 2022-02-15 15:33:50 +01:00
Mathieu Pillard 97f9d82cbc
Remove unused/obsolete JavaScript (#18755)
* Remove unused/obsolete JavaScript

Could do more, but that's a good chunk already...

* Remove files no longer referenced

* Remove obsolete calls to removed functions
2022-02-09 13:54:49 +01:00