Anna Sirota
b0bb4905b2
Now it should be be possible to: * upload the same image as a preview or featured image on different extensions; * upload the same image as an icon on different extensions; * select the same video/image multiple times while adding previews on Draft or Edit page: first one will be saved, the rest of the duplicates will be ignored. If all extensions referencing the file in any way are deleted, the file remains in the database: no thumbnail generating or scanning will happen if/when the file gets re-uploaded as a preview or featured image. In all cases of re-upload `File.user` will not change: this shouldn't be a problem because currently there's no code relying on image ownership. Version files will remain the only exception from this changed behaviour: it will only be possible to re-upload a version file once the version itself is deleted (which also deletes its file). As a consequence of this change `File.extension_id` is dropped, because it is no longer possible to choose which extension should be saved there. Should take care of #157 Reviewed-on: #161 Reviewed-by: Oleg-Komarov <oleg-komarov@noreply.localhost> |
||
---|---|---|
.. | ||
__init__.py | ||
0001_initial.py | ||
0002_initial.py | ||
0003_initial.py | ||
0004_version_schema_version.py | ||
0005_rename_and_update_extension_homepage_url_website.py | ||
0006_remove_extension_doc_url.py | ||
0007_remove_extension_support.py | ||
0008_rename_extension_tracker_url_extension_support_and_alter.py | ||
0009_alter_extension_tagline.py | ||
0010_extension_is_listed.py | ||
0011_versionpermission_version_permissions.py | ||
0012_alter_version_permissions.py | ||
0013_extension_sponsor.py | ||
0014_alter_extension_tagline.py | ||
0015_alter_version_blender_version_max_and_more.py | ||
0016_remove_extension_tagline_version_tagline.py | ||
0017_remove_version_license_version_licenses.py | ||
0018_remove_extension_tags_version_tags.py | ||
0019_remove_extension_sponsor.py | ||
0020_apply_about_page_and_permissions_fixtures.py | ||
0021_apply_fixtures_fix.py | ||
0022_alter_extension_type.py | ||
0023_apply_new_licenses.py | ||
0024_tagsaddons_tagsthemes_remove_version_tags_and_more.py | ||
0025_alter_tag_type.py | ||
0026_remove_extension_date_deleted_and_more.py | ||
0027_unique_preview_files.py | ||
0028_alter_license_slug_alter_versionpermission_slug.py | ||
0028_terms_flatpages_rename.py | ||
0029_extension_featured_image_extension_icon.py | ||
0029_remove_extensionreviewerflags_extension_and_more.py | ||
0030_platform_version_platforms.py | ||
0031_extension_latest_version.py | ||
0032_extension_extensions__is_list_765936_idx_and_more.py | ||
0033_extensions_fts_20240603_1918.py | ||
0034_alter_extension_featured_image_alter_extension_icon_and_more.py |