-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Deleted lib/internal/Magento/Framework/Filesystem/ExtendedDriverInterface.php. getMetadata() method moved to DataInterface #32531
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
base: 2.5-develop
Are you sure you want to change the base?
Conversation
Hi @vlmed. 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 |
6725acb
to
c01d25d
Compare
@magento run Unit Tests |
@magento run all tests |
@magento run Integration Tests |
1 similar comment
@magento run Integration Tests |
@magento run Integration Tests, Functional Tests EE, Functional Tests CE, Functional Tests B2B |
@magento give me test instance |
Hi @vlmed. Thank you for your request. I'm working on Magento instance for you. |
Hi @vlmed, here is your Magento Instance: https://dbc60479cb03e2647548d7b778ceb157.instances.magento-community.engineering |
@magento run Functional Tests EE, Functional Tests CE, Functional Tests B2B |
@magento run Functional Tests EE, Functional Tests CE, Functional Tests B2B |
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.
Hi @vlmed, could you please review the functional failed builds, looks like they are related to your changes.
We're getting this on customer account create, when using some remote file storage
Thank you.
Hi @gabrieldagama, could you please help us with the logs here, so we could understand what is going wrong? Thank you. |
@eduard13 couldn't find a clear exception being thrown here, probably the best way to find out what is going on is to try to reproduce the MFTF manually and identify the difference. Probably we can use the `give me test instance for such test. |
@magento run all tests |
@magento run Integration Tests |
…face.php. getMetadata() method moved to DataInterface
6c994b7
to
6045497
Compare
@magento run Integration Tests, Unit Tests |
@magento run all tests |
abe9728
to
fb5bf40
Compare
@magento run all tests |
fb5bf40
to
4efcb13
Compare
@magento run all tests |
@magento run all tests |
Description (*)
What done:
lib/internal/Magento/Framework/Filesystem/ExtendedDriverInterface.php
- deletedgetMetadata()
method was moved tolib/internal/Magento/Framework/Filesystem/DriverInterface.php
getMetadata()
was implemented in thelib/internal/Magento/Framework/Filesystem/Driver/File.php
. To avoid code duplication I uselib/internal/Magento/Framework/Filesystem/Driver/File/Mime.php
to get file mime type. I can't instantiate this class using ObjectManager because whenlib/internal/Magento/Framework/Filesystem/Driver/File.php
instantiating first time the ObjectManager isn't instantiated yet (lib/internal/Magento/Framework/Console/Cli.php::assertCompilerPreparation()
. So, I decided to implements static methodgetMimeInstance()
in thelib/internal/Magento/Framework/Filesystem/Driver/File/Mime.php
and use it in thelib/internal/Magento/Framework/Filesystem/Driver/File.php
to get an instance instead of create object directly using constructionnew Mime()
.getMetadata()
was implemented in thelib/internal/Magento/Framework/Filesystem/Driver/StatefulFile.php
. This class is deprecated so I used method implementation from thelib/internal/Magento/Framework/Filesystem/Driver/File.php
.getMetadata()
method in thelib/internal/Magento/Framework/Filesystem/Test/Unit/Driver/FileTest.php
getMimeInstance()
method in thelib/internal/Magento/Framework/Filesystem/Test/Unit/Driver/File/MimeTest.php
Fixed Issues (if relevant)
Contribution checklist (*)