extensions-website/extensions/migrations
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
..
__init__.py Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
0001_initial.py Flattening out django migrations 2024-01-29 16:41:08 +01:00
0002_initial.py Flattening out django migrations 2024-01-29 16:41:08 +01:00
0003_initial.py Flattening out django migrations 2024-01-29 16:41:08 +01:00
0004_version_schema_version.py Get schema_version from file 2024-02-02 11:10:45 +01:00
0005_rename_and_update_extension_homepage_url_website.py Rename homepage_url -> website and update description 2024-02-02 16:23:32 +01:00
0006_remove_extension_doc_url.py Remove documentation_url 2024-02-02 16:27:28 +01:00
0007_remove_extension_support.py Remove SUPPORT level for add-ons 2024-02-02 16:30:53 +01:00
0008_rename_extension_tracker_url_extension_support_and_alter.py Rename Tracker URL -> Support and update its decription 2024-02-02 16:34:43 +01:00
0009_alter_extension_tagline.py Add missing . for the tagline field description 2024-02-02 16:35:34 +01:00
0010_extension_is_listed.py Fix listing of extensions with only invalid versions 2024-02-10 19:37:48 +01:00
0011_versionpermission_version_permissions.py Manifest: New field "permission" 2024-02-18 15:04:23 +01:00
0012_alter_version_permissions.py Initial review process 2024-02-18 19:05:12 +01:00
0013_extension_sponsor.py Sponsor: New URL option for a project to get supported by the community 2024-02-20 14:06:26 +01:00
0014_alter_extension_tagline.py Make tagline shorter: 64 2024-02-20 20:10:17 +01:00
0015_alter_version_blender_version_max_and_more.py Simplify submission form 2024-02-20 20:28:28 +01:00
0016_remove_extension_tagline_version_tagline.py Move Tagline from Extension to Version model 2024-02-21 19:25:12 +01:00
0017_remove_version_license_version_licenses.py Make licenses to support multiple licenses 2024-02-21 21:17:45 +01:00
0018_remove_extension_tags_version_tags.py Bring tags from Extension to Version 2024-02-22 00:12:33 +01:00
0019_remove_extension_sponsor.py Remove sponsor from the model 2024-02-22 14:34:26 +01:00
0020_apply_about_page_and_permissions_fixtures.py Fix migrations 2024-02-22 21:19:38 +01:00
0021_apply_fixtures_fix.py Fixup for version permission fixtures 2024-02-22 20:24:50 +01:00
0022_alter_extension_type.py Make migrations 2024-02-22 21:25:15 +01:00
0023_apply_new_licenses.py Add new compatible licenses 2024-02-26 18:03:31 +01:00
0024_tagsaddons_tagsthemes_remove_version_tags_and_more.py Make migrations more robust, just to be more production-ready 2024-02-29 16:28:05 +01:00
0025_alter_tag_type.py Show tags in the admin interface 2024-02-29 18:02:02 +01:00
0026_remove_extension_date_deleted_and_more.py Make it possible to fully delete unlisted/unrated extensions and versions (#81) 2024-04-19 11:00:13 +02:00