-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
magento/magento2#39481: Completely removing a gallery-image from be k… #39680
base: 2.4-develop
Are you sure you want to change the base?
Conversation
…e roles/types set (base/small/thumbnail) and after re-adding "old" roles/types appear - fixed issue with "old" roles/types after re-adding images
Hi @pavel77718. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
…e roles/types set (base/small/thumbnail) and after re-adding "old" roles/types appear - changed copyright
@magento run all tests |
@magento run Functional Tests EE |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE |
@magento run all tests |
@magento run all tests |
@magento run Database Compare, Functional Tests B2B, Functional EE |
@magento run Functional Tests EE |
@magento run all tests |
@magento run Functional Tests B2B, WebAPI Tests |
@magento run all tests |
@magento run Functional Tests CE |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @pavel77718,
Thanks for the contribution!
The code changes seems good to us, but please check my review comments below and add some automated test to verify the PR changes.
Thanks
@@ -1,6 +1,6 @@ | |||
/** | |||
* Copyright © Magento, Inc. All rights reserved. | |||
* See COPYING.txt for license details. | |||
* Copyright 2015 Adobe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be 2013, as the file has been created in this year only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it.
@@ -355,6 +355,11 @@ define([ | |||
imageData.isRemoved = true; | |||
$imageContainer.addClass('removed').hide().find('.is-removed').val(1); | |||
|
|||
$.each(this.options.types, $.proxy(function (index, type) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggesting to add an comment for this newly added code block, so that in future developer can relate with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment for the new code block.
…t page in the admin panel - added comment for new code block and changed copyright
@magento run all tests |
Hi @pavel77718, Thanks for the collaboration & contribution! ✔️ QA PassedPreconditions:
Steps to reproduce
Before: ✖️ After: ✔️ Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
@magento run Functional Tests B2B |
Two of the tests in Functional B2B failures are not consistent. Neither failing because of the PR changes nor part of PR. They seem to be flaky. One of the consistent test is a known issue and has a JIRA for the same. Hence moving this PR to Merge in Progress. ![]() ![]() Known Issue: |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Expected result
After adding a new image, the roles will be set by default.
Questions or comments
Contribution checklist (*)