mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
125 stars 41 forks source link

Add rating & collection support in the abuse report model admin #9338

Closed ioanarusiczki closed 9 months ago

ioanarusiczki commented 10 months ago

When an abuse report is made against a rating a rating ID is required (sending it using the api)

Expected result: the rating id should also be displayed in the admin model

┆Issue is synchronized with this Jira Task

diox commented 10 months ago

Edited the issue to reflect the fact that we'll need to do this for collections as well once https://github.com/mozilla/addons/issues/9331 is implemented.

The filters (AbuseReportTypeFilter) also need to be updated to add collections & ratings

Note: as usual with our admins, make sure any FKs are added in raw_id_fields if they are in fields or similar properties, to avoid loading the full list of every collection/rating from the database in a giant <select> on the detail pages. Also check the number of queries on the listing page.

ioanarusiczki commented 9 months ago

@diox

When going to filter By type each category would display a search bar.

Searching multiple collections/ratings worked collections 5497705, 5497651,5497624,5497615,5497979 ratings 567466,564832,567261, 565040,5497615

A search with a single ID for collections won't return results. For ratings (or addons) I got the result (except when I searched with the last id from the list above)

eviljeff commented 9 months ago

@diox

When going to filter By type each category would display a search bar.

Searching multiple collections/ratings worked collections 5497705, 5497651,5497624,5497615,5497979 ratings 567466,564832,567261, 565040,5497615

A search with a single ID for collections won't return results. For ratings (or addons) I got the result (except when I searched with the last id from the list above)

what I added to search against (and I should have mentioned!):

KevinMind commented 4 months ago

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDSRV-554