discourse/app
Alan Guo Xiang Tan dc55b645b2
DEV: Allow site administrators to mark S3 uploads with a missing status (#27222)
This commit introduces the following changes which allows a site
administrator to mark `Upload` records with the `s3_file_missing`
verification status which will result in the `Upload` record being ignored when
`Discourse.store.list_missing_uploads` is ran on a site where S3 uploads
are enabled and `SiteSetting.enable_s3_inventory` is set to `true`.

1. Introduce `s3_file_missing` to `Upload.verification_statuses`
2. Introduce `Upload.mark_invalid_s3_uploads_as_missing` which updates
   `Upload#verification_status` of all `Upload` records from `invalid_etag` to `s3_file_missing`.
3. Introduce `rake uploads:mark_invalid_s3_uploads_as_missing` Rake task
   which allows a site administrator to change `Upload` records with
`invalid_etag` verification status to the `s3_file_missing`
verificaton_status.
4. Update `S3Inventory` to ignore `Upload` records with the
   `s3_file_missing` verification status.
2024-05-30 08:37:38 +08:00
..
assets UX: minor categories reorder fixes (#27249) 2024-05-29 18:58:25 -04:00
controllers FEATURE: admin can disable flags (#27171) 2024-05-29 14:39:58 +10:00
helpers DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
jobs DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
mailers FIX: correctly compute the window for email summaries 2024-05-27 22:33:51 +02:00
models DEV: Allow site administrators to mark S3 uploads with a missing status (#27222) 2024-05-30 08:37:38 +08:00
serializers FEATURE: admin can disable flags (#27171) 2024-05-29 14:39:58 +10:00
services DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
views FIX: send activity summaries based on "last seen" (#27035) 2024-05-22 10:23:03 +02:00