-
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
Improve Directory tree performance of New Media Gallery #35404
Improve Directory tree performance of New Media Gallery #35404
Conversation
Hi @nazarklovanych. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, 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, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
68f5dff
to
a43b3b9
Compare
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
a43b3b9
to
b419cdc
Compare
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
b419cdc
to
b2700f1
Compare
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
b2700f1
to
8b9d7c4
Compare
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
8b9d7c4
to
32359e8
Compare
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Integration Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
32359e8
to
25a7cdc
Compare
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
25a7cdc
to
7b86ac0
Compare
@magento run all tests |
@perfpcs |
@kimurabanyan OK I understand you. Thanks for clarifying. I guess Magento has no one on their team that can fix this properly because most everyone I know all reverted back to old media gallery because the new one is non-functional. Sad! |
@perfpcs, when using the old media gallery I also experience problems in Magento 2.4.4. Images are not visible and the directory tree only shows Storage Root directory with 2 empty subdirectories with no name. When I try to upload an image I get the message: We can't upload the file to the current folder right now. Please try another folder. And when I try to add a directory I get the message: We cannot create the folder under the selected directory. So the old media gallery is also useless right now. |
@interwijs I have not yet reverted to old media gallery in 2.4.4 but I will try it and see if it also is broke. Seems hard to believe if this is so that there is not more uproar from the community with no workable media gallery. And after 1.5 years of them knowing the issues, still no viable fix. Yet they are worried about merging code that does not even fix the problem. All this is hard to understand. |
UGH...it looks like this is the culprit - this folder needs to be blocked off from being searched as there's no need to access it - its completely automated by the product creation / import processes. |
This PR fixed the issues for us. Thanks, @nazarklovanych! |
Still broken for me on 2.4.5-p1 |
@perfpcs, yes, it is broken in 2.4.5-p1. However, did you try to apply the changes from this PR manually? Did you check if the changes from this PR solve the issue for you? |
@sprankhub , yes I tried and am using this PR but it only partially works. Editing directory.xml results in no changes to the tree whatsoever so we can never get ONLY the WYSIWYG directory. Also we are missing many of the things that make this useful like the search box, sorting drop downs, etc. Do you have all these things showing? |
Please mind that this PR is about the performance / memory issue with large media directories. If you have different issues, you might want to look into other / open new issues.
This is not part of this PR.
I do see all this: |
Hello @nazarklovanych, First of all, thank you for your contribution and collaboration! We are in the process of reviewing this PR, but it seems there are some conflicts. So we request you to please resolve the conflicts so that we move further with this PR. Meanwhile, we are moving this PR Thanks |
Hello @nazarklovanych, Have you got a chance to resolve the conflicts of this PR? Thanks |
Hi @nazarklovanych, Thank you for your contribution! As per the comment here #35404 (comment) we are unable to move further on this PR due to conflicts. Can you please look into it? Till then we are closing this PR. Please feel free to reopen or let us know when you are ready to work on it again, and we will be happy to re-open it. Thank you! |
REOPENED OLD PR -> #30629
Description (*)
Scan only directories for directory tree component
The result of using glob instead of iterator with more than 500000 files in media folder
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)