-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Switching between Media Gallery bookmarks does not change the selected folder #29411
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
Switching between Media Gallery bookmarks does not change the selected folder #29411
Conversation
…23-switching-between-views-does-not-change-the-selected-folder
…t change the selected folder. [Media Gallery] - modified function to select folder when switching view
…t change the selected folder. [Media Gallery] - modified functions
Hi @joweecaquicla. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@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.
Thanks for the PR @joweecaquicla ! Please see my comments
Can you please cover this case with an MFTF test
Also please check the static tests https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/29411/a3de7a89d23fb2784c34d24facce7d29/Statics/allure-report-b2b/index.html#categories/0a4a9c930701952d758f01ac4e2bb450/6a07c842b5a5c7f8/
app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/directory/directoryTree.js
Show resolved
Hide resolved
@@ -281,8 +285,8 @@ define([ | |||
* @param {String} currentFilterPath | |||
*/ | |||
isFiltersApplied: function (currentFilterPath) { | |||
return !_.isUndefined(currentFilterPath) && currentFilterPath !== '' && | |||
currentFilterPath !== 'wysiwyg' && currentFilterPath !== 'catalog/category'; | |||
return !_.isUndefined(currentFilterPath) && currentFilterPath !== '' |
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 think catalog/category
comparison should also be removed (cc @Nazar65 )
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 comparisons needed to cover behavior with pres elected folders, for example when bookmark applied and we open media gallery from category, category folder should be presented only if the bookmarks not available
…23-switching-between-views-does-not-change-the-selected-folder
…23-switching-between-views-does-not-change-the-selected-folder
…t change the selected folder. [Media Gallery] - implement request change and mftf test
@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.
Thanks for updates @joweecaquicla ! The implementation looks good! Can you please check the failed tests
…t change the selected folder. [Media Gallery] - fix failed static test
@magento run all tests |
@magento run Database Compare, Functional Tests CE, Functional Tests EE |
@magento run all tests |
…-not-change-the-selected-folder
@magento run all tests |
@magento run Static Tests |
@magento run Static Tests |
@magento run Static Tests |
…-not-change-the-selected-folder
@magento run all tests |
Hi @sivaschenko, thank you for the review. |
✔️ QA Passed The folder is selected and deselected correctly while switching Views Manual testing scenario - https://studio.cucumber.io/projects/131313/test-plan/folders/1337102/scenarios/5060037 |
…ed folder. [Media Gallery] #29411
Hi @joweecaquicla, thank you for your contribution! |
Description (*)
This PR will implement the fix to change the selected folder when switching views in Media Gallery.
Related Pull Requests
N/A
Fixed Issues (if relevant)
Manual testing scenarios (*)
Apart from the mentioned steps please check directory navigation/operations in general
now you have a New View with the selected folder
folder is selected
i.e.: If New View is selected, folder should be selected,
Catalog/category folder is selected if the Default view is selected
Questions or comments
Contribution checklist (*)