extensions-website/abuse
Anna Sirota caae613747 Make it possible to fully delete unlisted/unrated extensions and versions (#81)
* removes all soft-deletion;
* shows a "Delete extension" button on the draft page in case it can be deleted;
* shows a "Delete version" button on the version page in case it can be deleted;
* a version can be deleted if
  * its file isn't approved, and it doesn't have any ratings;
* an extension can be deleted if
  * it's not listed, and doesn't have any ratings or abuse reports;
  * all it's versions can also be deleted;
* changes default `File.status` from `APPROVED` to `AWAITING_REVIEW`
  With version's file status being `APPROVED` by default, a version can never be deleted, even when the extension is still a draft.
  This change doesn't affect the approval process because
   * when an extension is approved its latest version becomes approved automatically (no change here);
   * when a new version is uploaded to an approved extension, it's approved automatically (this is new).

This allows authors to delete their drafts, freeing the extension slug and making it possible to re-upload the same file.
This also makes it possible to easily fix mistakes during the drafting of a new extension (e.g. delete a version and re-upload it without bumping a version for each typo/mistake in packaging and so on).
(see #78 and #63)

Reviewed-on: #81
2024-04-19 11:00:13 +02:00
..
migrations Make it possible to fully delete unlisted/unrated extensions and versions (#81) 2024-04-19 11:00:13 +02:00
templates/abuse Abuse Report Detail: Style and layout adjustments 2024-03-05 18:33:04 +01:00
tests Fix 403 error on clicking "report abuse" twice (#46) 2024-04-04 18:44:45 +02:00
__init__.py Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
admin.py Abuse reports: clean up admin, allow viewing on site (to staff or reporter) 2022-10-31 15:22:16 +01:00
apps.py Notification emails (#80) 2024-04-18 16:11:18 +02:00
forms.py Fix reporting add-ons when Blender version is specified 2024-02-29 19:43:27 +01:00
models.py Make it possible to fully delete unlisted/unrated extensions and versions (#81) 2024-04-19 11:00:13 +02:00
signals.py Notification emails (#80) 2024-04-18 16:11:18 +02:00
urls.py Abuse Reports List: Add initial template 2024-03-05 18:31:22 +01:00
views.py Abuse: rename ABUSE_TYPE_REVIEW to ABUSE_TYPE_RATING to avoid confusion 2024-04-18 15:55:52 +02:00