"Check for update" is only available for DAM - Image media types

Created on 26 February 2024, over 1 year ago

Problem/Motivation

In the DAM media content overview view, only DAM - Image media types have "Check for update" as an option under Operations links.

In the DAM, all the asset types can use versioning. Is there a reason this operation is restricted to images? Or can it be allowed for other asset types?

See repos/acquia_dam/acquia_dam.module

  if ($asset->getDerivativeId() === 'image') {
    $updateUrl = Url::fromRoute('acquia_dam.version_update', ['media' => $entity->id()]);
    $operations['version_update'] = [
      'title' => t('Check for update'),
      'weight' => -1,
      'url' => $updateUrl,
    ];
  }

Steps to reproduce

Add assets of each DAM media type
Go to the DAM media content overview /admin/content/dam-media
Only DAM - Image types have an option for Check for update.

Proposed resolution

Either allow other types to Check for update or add documentation/comment to explain why.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States capysara

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024