Problem/Motivation

To work with the module, it requires having a DAM account. This makes sense for folks doing active development, but makes it difficult if someone is helping review an issue or providing some basic feedback.

Proposed resolution

We have the acquia_dam_test module which provides mocked API responses. This has enabled outside contributors to review.

There are a lot of manual setup steps:

# requires `$settings['extension_discovery_scan_tests'] = TRUE;` in settings
drush en acquia_dam_test
drush config:set acquia_dam.settings domain laser.widencollective.com
drush state:set acquia_dam_token ABC123
drush eval "\Drupal::service('acquia_dam.authentication_service')->setUserData(1, ['acquia_dam_token' => 'ACB123']);"

Then importing media via Media Library.
The acquia_dam_test module should provide a Drush command to set this up and import the known fixtured media

  • Set the DAM domain, mocked access code
  • Set access info for all users (easier than prompt)
  • Import the known mocked asset data

Issue fork acquia_dam-3557119

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajeshreeputra created an issue. See original summary.

rajeshreeputra’s picture

Status: Active » Needs review

Requesting review.

rohan-sinha’s picture

Status: Needs review » Reviewed & tested by the community

lgtm.

  • rajeshreeputra committed dadeddf0 on 1.1.x
    Resolve #3557119 "Fix: Improve DX for other developers to quickly review...
rajeshreeputra’s picture

Status: Reviewed & tested by the community » Fixed

MR merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.