magento-engcom / import-export-improvements

Open Software License 3.0
31 stars 29 forks source link

Allow tablerates csv to be read from non default tmp directory #107

Closed adam-paterson closed 6 years ago

adam-paterson commented 6 years ago

Description

Allow TableRates csv to be read from none default tmp directory.

Fixed Issues (if relevant)

  1. magento/magento2#10058: Tablerate->getCsvFile() fails with non-default PHP upload_tmp_dir
  2. MAGETWO-70451
  3. 84

Manual testing scenarios

  1. Make a new directory for uploads, eg mkdir -p /var/lib/php/uploads && chmod 1777 /var/lib/php/uploads
  2. Set PHP upload_tmp_dir to this directory. eg, add upload_tmp_dir = /var/lib/php/uploads to /etc/php.ini
  3. Login to Magento Admin
  4. Go to Stores > Configuration > Sales > Shipping Methods
  5. Select Table Rates, and enable
  6. Click "Import"
  7. Choose a file, click save.

Contribution checklist

magento-cicd2 commented 6 years ago

CLA assistant check
All committers have signed the CLA.

dmanners commented 6 years ago

Seems there is a performance problem at the moment.

Simple product page Fully Loaded Time +6.6% - degradation!

I will take a look at this for you.

dmanners commented 6 years ago

Hi @adam-paterson I am going to close this at the moment as I am not sure why lib/internal/var/generation/Magento/Backend/App/Request/PathInfoProcessor/Proxy.php is also being included in this change. Looking at the original change set this proxy class has no changes.

Feel free to update and reopen this PR if you have the time to look into this change.

Thank you