-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Backport] Fix for removing the dirs while creating a TAR archive #18283
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] Fix for removing the dirs while creating a TAR archive #18283
Conversation
|
Hi @haroldclaus. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
The bug caused issues during the export of analytics data from advanced reporting. The scandir has parameter were the sort can be placed, but using UNSORTED gives you unwanted lists of files/dirs. Therefor deleting the first 2 via array_shift, is not a proper way of dealing with this Signed-off-by: Harold Claus <[email protected]>
52edb59 to
45f22ac
Compare
|
Hi @haroldclaus! Would you mind reformatting this to use the correct template? Also, we are trying to have everything merged into 2.3 before having it submitted to 2.2 |
|
Thanks for the reformatting @haroldclaus! |
|
Travis CI build failing... It went flawlessly yesterday. Also : "We are trying to have everything merged into 2.3 before having it submitted to 2.2" |
|
Hi @haroldclaus Could you please create another pull request to 2.3-develop branch? |
|
@okorshenko Done ;) |
|
Hi @haroldclaus, |
|
Hi @ihor-sviziev, thank you for the review. |
|
Hi @haroldclaus. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Original Pull Request
#18322
Description
The bug caused issues during the export of analytics data from advanced
reporting. The SCANDIR has a parameter where the sort can be determined, but
using UNSORTED gives you unwanted lists of files/dirs. Therefor deleting
the first 2 via array_shift, is not a proper way of dealing with this. With this PR, it doesn't matter how you sort the results of the SCANDIR function, you'll always remove in a proper way the "." and "..".
Fixed Issues (if relevant)
No issues were found about this issue
Manual testing scenarios
Contribution checklist