magento / adobe-stock-integration

Magento Adobe Stock integration Community Project.
Open Software License 3.0
60 stars 92 forks source link

Used In info is not displayed if an image is added to a content from Old Media Gallery. (Untill content syncronization) #1808

Closed chalov-anton closed 4 years ago

chalov-anton commented 4 years ago

Preconditions (*)

  1. Install Magento with Adobe Stock Integration
  2. Configured integration in Stores -> Configuration -> Advanced-> System -> Adobe Stock Integration fieldset
  3. Old Media Gallery enabled in Stores -> Configuration -> Advanced-> System -> Media Gallery -> Enable Old Media Gallery - Yes old_med_gal_yes

Steps to reproduce (*)

  1. Go to Catalog - Categories.
  2. Expand Content and click Select From Media Gallery Verify that Old Media Gallery is opened
  3. Click Search Adobe Stock, select any image and Save Preview. Confirm the Previously saved image appeared in the Old Media Gallery and is selected
  4. Click Add Selected button
  5. The image has been added to the Category. Save category
  6. Go to Stores -> Configuration -> Advanced-> System -> Media Gallery, set Enable Old Media Gallery - No old_med_gal_no
  7. Save configuration and clean Magento cache bin/magento cache:clean
  8. Go to Content - Media Gallery, select the previously used image
  9. Click "three dots" and select View Details
  10. Observe the Used In info

Expected result (*)

The image is Used In Categories(1) should be displayed used_in_cat

Actual result (*)

nousedin

Note

The Used in info will appear after running bin/magento media-content-sync

m2-assistant[bot] commented 4 years ago

Hi @chalov-anton. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


sivaschenko commented 4 years ago

Cannot reproduce locally with launched: bin/magento queue:consumers:start media.gallery.synchronization bin/magento queue:consumers:start media.content.synchronization

sivaschenko commented 4 years ago

Looks like we need to configure cloud to run consumers https://devdocs.magento.com/guides/v2.4/config-guide/mq/manage-message-queues.html https://devdocs.magento.com/cloud/env/variables-deploy.html#cron_consumers_runner

sivaschenko commented 4 years ago

Cloud instance was configured to run consumers as part of cron:run.

Locally several executions of bin/magento cron:run are required after enabling media gallery to update the content links. (can be checked in queue_message and queue_message_status tables - 4 is success status).

@chalov-anton can you please retest the issue on cloud and local environments using the instructions above

engcom-Bravo commented 4 years ago

@sivaschenko Rechecked on the Claud instance with the updated configuration. The Used In appeared in details page after some time.

sivaschenko commented 4 years ago

Great, thank you!