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

[Backport] Remove unused namespace from Ui Export model #13 #15839

Closed
wants to merge 1 commit into from
Closed

[Backport] Remove unused namespace from Ui Export model #13 #15839

wants to merge 1 commit into from

Conversation

chirag-wagento
Copy link
Contributor

Original Pull Request

#14834

Description

The Export model have some unused namespaces: Magento\Framework\Filesystem\Directory\WriteInterface.
Just removing it and update description

Manual testing scenarios

  1. For example, go to orders list;
  2. Export list of order by XML or CSV;
  3. All should export as expected.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team magento-engcom-team added Partner: Wagento Pull Request is created by partner Wagento partners-contribution Pull Request is created by Magento Partner Component: Ui labels Jun 5, 2018
@mzeis mzeis self-assigned this Jun 5, 2018
@chirag-wagento
Copy link
Contributor Author

@mzeis Could you please check what cause failed travis?

Thanks,

@mzeis
Copy link
Contributor

mzeis commented Jun 11, 2018

@chirag-wagento It looks like this only was a temporary problem with the internet connection. I restarted the build and now it passes.

Copy link
Contributor

@mzeis mzeis left a comment

Choose a reason for hiding this comment

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

The current implementation (using WriteInterface) is correct. As you see in https://github.com/chirag-wagento/magento2/blob/a61a3763fe7093e413c7fee54a3eb20bd20003c9/lib/internal/Magento/Framework/Filesystem.php#L78, Magento returns a WriterInterface. What's actually passed might by a DirectoryList class which implements WriterInterface but it's best practice to use interfaces whenever possible.

@mzeis
Copy link
Contributor

mzeis commented Jun 11, 2018

@chirag-wagento Please have a look if you agree with my code review (I tend to reject this PR). Thanks!

@chirag-wagento
Copy link
Contributor Author

@mzeis
I was do auto generate this backport PR.So i don't know what is issue in code.

@mzeis
Copy link
Contributor

mzeis commented Jun 11, 2018

@chirag-wagento Ok thanks! I will get feedback from the core team and inform you about what they say :)

@chirag-wagento
Copy link
Contributor Author

@mzeis

Any update in this PR ?

Thanks

@mzeis
Copy link
Contributor

mzeis commented Jun 13, 2018

@chirag-wagento Not yet, I am waiting for feedback.

@mzeis
Copy link
Contributor

mzeis commented Jun 13, 2018

Hi @chirag-wagento! Unfortunately, I cannot accept your PR. #14834 was mistakenly accepted for 2.3-develop and later on reverted as part of #15692 for the reason stated above. This means that the change also will not be in 2.3.

Still, thank you for the time you have taken to create this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Ui Partner: Wagento Pull Request is created by partner Wagento partners-contribution Pull Request is created by Magento Partner Progress: reject
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants