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

#1494: Save image content hash to the media asset when saving image from the Adobe Stock #1508

Merged

Conversation

joweecaquicla
Copy link

Description (*)

This PR will implement the saving of image content hash to the media asset.

Fixed Issues (if relevant)

  1. Fixes Save image content hash to the media asset when saving image from the Adobe Stock #1494: Save image content hash to the media asset when saving image from the Adobe Stock
  2. ...

Manual testing scenarios (*)

  1. Login to Admin panel
  2. Open the media gallery. I.e. from the Catalog -> Category -> Content fieldset -> Select image from gallery
  3. Click "Search Adobe Stock" button
  4. Click on any image to open the image preview panel
  5. Click "Save Preview" button
  6. Confirm the image name in the popup

Expected result (*)

The images information should be saved to the media_gallery_asset table. The hash filed should be populated with the sha1 hash of the image content

…image from the Adobe Stock - implement saving of image content hash to media_gallery_asset table
@joweecaquicla
Copy link
Author

@magento run all tests

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request @joweecaquicla ! Looks good! Can you please fix the failed unit test

…image from the Adobe Stock - fixed failed unit test
@joweecaquicla
Copy link
Author

@magento run all tests

Copy link
Contributor

@coderimus coderimus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @joweecaquicla ! Thank you for the PR provided 👍 Please, check my change requests below.

AdobeStockImage/Model/SaveMediaGalleryAsset.php Outdated Show resolved Hide resolved
AdobeStockImage/Model/SaveMediaGalleryAsset.php Outdated Show resolved Hide resolved
AdobeStockImage/Model/SaveMediaGalleryAsset.php Outdated Show resolved Hide resolved
@joweecaquicla joweecaquicla changed the title #1494: Save image content hash to the media asset when saving image from the Adobe Stock [WIP] #1494: Save image content hash to the media asset when saving image from the Adobe Stock Jun 30, 2020
joweecaquicla added 4 commits July 7, 2020 23:18
…image from the Adobe Stock - modifications for SaveMediaGalleryAsset
@joweecaquicla joweecaquicla changed the title [WIP] #1494: Save image content hash to the media asset when saving image from the Adobe Stock #1494: Save image content hash to the media asset when saving image from the Adobe Stock Jul 8, 2020
@joweecaquicla
Copy link
Author

@magento run all tests

…image from the Adobe Stock - fix unit test and static test
@joweecaquicla
Copy link
Author

@magento run all tests

joweecaquicla added 2 commits July 9, 2020 01:11
@joweecaquicla
Copy link
Author

@magento run all tests

@sivaschenko sivaschenko merged commit f8f7257 into magento:2.0-develop Jul 9, 2020
@ghost
Copy link

ghost commented Jul 9, 2020

Hi @joweecaquicla, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save image content hash to the media asset when saving image from the Adobe Stock
3 participants