[META][3.x] Use Custom media_duplicate Entity Type instead of records

Created on 23 May 2023, about 1 year ago
Updated 24 May 2023, about 1 year ago

Problem/Motivation

Currently media_duplicates is based on a custom schema, not using custom entity types.
But step by step we're reinventing what Drupal Core Custom Content Entity Types already offers:

  • Schema and data storage for the checksum results
  • Referencing Media Entities
  • Views Integration
  • Bulk Editing
  • Edit / Delete entity functionality
  • ...

So instead of investing the time to recreate such great Drupal functionality in custom code, we should better utilize the Content Entity Type logic, like other widely used modules already do (Redirect, Custom Tokens, Paragraphs, COOKiES, ...)

Steps to reproduce

Proposed resolution

  1. Introduce a media_duplicate entity type
  2. Migrate existing values or regenerate all checksums via update hook
  3. Remove the old schema
  4. Use a customizable view to display the results page
  5. ...

Remaining tasks

User interface changes

API changes

Data model changes

🌱 Plan
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Grevil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024