Ensure existing or new assets are served according to the selected option

Created on 12 March 2025, about 2 months ago

Problem Statement

  • When checkbox forDownload and sync assets is unchecked for any Acquia DAM Media type, the media items (belongs to this media type) stores asset details in field acquia_dam_asset_id during creation / updation.
  • While viewing such media, an API call is made using to display the assets dynamically.
  • Later, when Download and sync assets checkbox is checked, and the media type is saved, the assets does not appear when viewing because:
    • The asset file/files has not been downloaded locally.
    • The field acquia_dam_managed_image / acquia_dam_managed_file remains empty.

Proposed Approach:

  • Download the image and store it locally and save the media entity if below conditions are met.
    • The media source should be an instance of Asset.
    • The associated media type should have Download and sync assets as true.
    • The acquia_dam_managed_image(for image) or acquia_dam_managed_file(for non image media type) is empty.
    • That acquia_dam_asset_id is not empty.
    • Retrieve the assets by making an API call and Download the asset and store it locally.
    • Set the value of acquia_dam_managed_image(for image) oracquia_dam_managed_file (for non image media type) and Save the media entity.
  • UI interface of batch import for editors
Feature request
Status

Active

Version

1.1

Component

Code

Created by

🇮🇳India rajeshreeputra Pune

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

Merge Requests

Comments & Activities

  • Issue created by @rajeshreeputra
  • Pipeline finished with Success
    about 2 months ago
    Total: 2175s
    #446219
  • First commit to issue fork.
  • Pipeline finished with Canceled
    about 2 months ago
    Total: 1366s
    #447243
  • Pipeline finished with Canceled
    about 2 months ago
    Total: 1692s
    #447255
  • Pipeline finished with Failed
    about 2 months ago
    Total: 2163s
    #447278
  • Pipeline finished with Canceled
    about 2 months ago
    Total: 146s
    #447360
  • Pipeline finished with Failed
    about 2 months ago
    Total: 2171s
    #447367
  • Pipeline finished with Success
    about 2 months ago
    Total: 2137s
    #447457
  • First commit to issue fork.
  • Pipeline finished with Success
    about 1 month ago
    Total: 2431s
    #450236
  • 🇮🇳India vipin.mittal18 Greater Noida

    vipin.mittal18 changed the visibility of the branch 1.1.x to hidden.

  • 🇮🇳India vipin.mittal18 Greater Noida

    vipin.mittal18 changed the visibility of the branch 1.0.x to hidden.

  • Pipeline finished with Canceled
    about 1 month ago
    Total: 795s
    #451123
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 989s
    #451127
  • Pipeline finished with Failed
    about 1 month ago
    Total: 2370s
    #451139
  • Pipeline finished with Success
    about 1 month ago
    Total: 2268s
    #451181
  • Pipeline finished with Failed
    about 1 month ago
    Total: 2205s
    #451232
  • Pipeline finished with Failed
    about 1 month ago
    Total: 2557s
    #451914
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 592s
    #452877
  • Pipeline finished with Success
    about 1 month ago
    Total: 2246s
    #452883
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 1314s
    #453006
  • Pipeline finished with Failed
    about 1 month ago
    Total: 6797s
    #453020
  • Pipeline finished with Failed
    about 1 month ago
    Total: 2124s
    #453269
  • Pipeline finished with Success
    about 1 month ago
    Total: 2169s
    #453303
  • First commit to issue fork.
  • 🇮🇳India vishalkhode

    vishalkhode made their first commit to this issue’s fork.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 2480s
    #453941
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 3699s
    #454033
  • Pipeline finished with Success
    about 1 month ago
    Total: 2125s
    #454052
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 1598s
    #454159
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 1607s
    #454182
  • Pipeline finished with Failed
    about 1 month ago
    Total: 2359s
    #454188
  • Pipeline finished with Failed
    about 1 month ago
    Total: 184s
    #454269
  • Pipeline finished with Failed
    about 1 month ago
    Total: 166s
    #454272
  • Pipeline finished with Failed
    about 1 month ago
    Total: 192s
    #454336
  • Pipeline finished with Failed
    about 1 month ago
    Total: 2756s
    #454342
  • Pipeline finished with Failed
    about 1 month ago
    Total: 2150s
    #454381
  • Pipeline finished with Skipped
    about 1 month ago
    #454581
  • 🇺🇸United States japerry KVUO
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024