Create bulk moderation actions #3840
Labels
💻 aspect: code
Concerns the software code in the repository
🌟 goal: addition
Addition of new feature
🟨 priority: medium
Not blocking but should be addressed soon
🧱 stack: api
Related to the Django API
Milestone
Description
Create the custom Django admin actions for bulk moderation decisions. All bulk actions should go through an intermediate confirmation page which:
Indicates the number of records that will be affected by the action
Collects the required
explanation
text for the ModerationDecision (all other columns, such as moderator_id and created_on, are filled in automatically)bulk deindex sensitive
deindexed_sensitive
and adds all records from the queryset. It then creates and saves DeletedMedia records for each of these, deleting the record from the API and deindexing it in Elasticsearch. The confirmation page for this action should include a highly visible warning that once records are deindexed, they cannot be restored immediately.bulk deindex copyright
deindexed_copyright
.bulk mark sensitive
marked_sensitive
. It then creates and saves SensitiveMedia records for each of the added records.bulk reverse mark sensitive
reversed_mark_sensitive
, and adds the related media. Then it first calls _update_es on the SensitiveMedia records to update the Elasticsearch index with the “sensitive” field for each media record, and finally deletes the actual SensitiveMedia records.bulk reverse deindex
reversed_deindex
and adds the related records. Then it deletes the DeletedMedia records.More details can be found in the IP here.
Actions will be added to the appropriate views in subsequent issues.
Blocks #3841, #3842, and #3843
The text was updated successfully, but these errors were encountered: