Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polpulate asset metadata on uploading the image to magento #1497

Closed
sivaschenko opened this issue Jun 18, 2020 · 1 comment · Fixed by #1596
Closed

Polpulate asset metadata on uploading the image to magento #1497

sivaschenko opened this issue Jun 18, 2020 · 1 comment · Fixed by #1596
Assignees
Labels
Backend Priority: P2 Should be fixed as early as possible Progress: done
Projects
Milestone

Comments

@sivaschenko
Copy link
Member

sivaschenko commented Jun 18, 2020

Story: #1183

Preconditions (*)

  1. Install Magento 2.4-develop with ASI 2.0-develop
  2. Enable Enhanced Media Gallery

Steps to reproduce (*)

  1. Login to Admin panel
  2. Open the media gallery. I.e. from the Catalog -> Category -> Content fieldset -> Select image from gallery
  3. Click "Upload image" button and upload an image containing the title, description and keywords in the metadata

Expected result (*)

The images information should be saved to the media_gallery_asset table. The description, title fields should be populated from the image metadata. the keywords should be saved for the image

Testing

Should be checked for the next scenarios:

  • Uploading the image to the enhanced media gallery
  • Uploading the image to the old media gallery
  • Uploading the image to the category
  • Uploading the image to the Page builder
  • Runing bin/magento media-gallery:sync for images added manually to pub/media directory

Technical Details

Use the \Magento\MediaGalleryMetadataApi\Api\ExtractMetadataInterface to retrieve the metadata
The changes should be applied to \Magento\MediaGallerySynchronization\Model\CreateAssetFromFile::execute method

@m2-assistant
Copy link

m2-assistant bot commented Jun 18, 2020

Hi @sivaschenko. 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


@m2-community-project m2-community-project bot added this to Ready for Grooming in Backlog Jun 18, 2020
@sivaschenko sivaschenko changed the title Add hash to asset on uploading the image to the old media gallery Add description to the asset on uploading the image to magento Jun 18, 2020
@sivaschenko sivaschenko changed the title Add description to the asset on uploading the image to magento Polpulate asset metadata on uploading the image to magento Jun 18, 2020
@sivaschenko sivaschenko added this to the 2.1.0 milestone Jun 18, 2020
@sivaschenko sivaschenko added Backend Priority: P2 Should be fixed as early as possible labels Jun 18, 2020
@lenaorobei lenaorobei moved this from Ready for Grooming to Ready for Development in Backlog Jul 6, 2020
@m2-community-project m2-community-project bot moved this from Ready for Development to Pull Request In Progress in Backlog Jul 10, 2020
@Nazar65 Nazar65 removed their assignment Jul 10, 2020
@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Ready for Grooming in Backlog Jul 10, 2020
@engcom-Golf engcom-Golf moved this from Ready for Grooming to Ready for Development in Backlog Jul 10, 2020
@m2-community-project m2-community-project bot moved this from Ready for Development to Ready for Grooming in Backlog Jul 10, 2020
@lenaorobei lenaorobei moved this from Ready for Grooming to Ready for Development in Backlog Jul 13, 2020
@Nazar65 Nazar65 self-assigned this Jul 14, 2020
@m2-community-project m2-community-project bot moved this from Ready for Development to Dev In Progress in Backlog Jul 14, 2020
@m2-community-project m2-community-project bot moved this from Dev In Progress to Pull Request In Progress in Backlog Jul 14, 2020
Backlog automation moved this from Pull Request In Progress to Done Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Priority: P2 Should be fixed as early as possible Progress: done
Projects
Backlog
  
Done
3 participants