Skip to content

fixed File type custom option value not showing properly on wish list page #24319 #24320

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

Merged
merged 1 commit into from
Sep 12, 2019

Conversation

rani-priya
Copy link
Contributor

fixed File type custom option value not showing properly on wish list page #24319

Description (*)

Fixed Issues (if relevant)

  1. File type custom option value not showing properly on wish list page #24319: fixed File type custom option value not showing properly on wish list page

Manual testing scenarios (*)

  1. create a simple product with file type custom option
  2. open product at frontend and then select a file
  3. add it to wish list
    wishlist-issue

Questions or comments

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 are green)

@m2-assistant
Copy link

m2-assistant bot commented Aug 27, 2019

Hi @rani-webkul. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@VladimirZaets
Copy link
Contributor

@magento give me 2.3-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @VladimirZaets. Thank you for your request. I'm working on Magento 2.3-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @VladimirZaets, here is your Magento instance.
Admin access: https://i-24320-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

@magento-engcom-team
Copy link
Contributor

Hi @VladimirZaets, thank you for the review.
ENGCOM-5715 has been created to process this Pull Request
✳️ @VladimirZaets, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Alfa
Copy link
Contributor

Hi @rani-webkul

During testing we faced the issue.

Problem: "404 not found" error message occurs in details information when we click on file link

Steps to reproduce:

  1. Create a simple product with file type custom option;
  2. Open product at frontend and then select a file;
  3. Add it to wish list;
  4. Go to Wish list page;
  5. In details information click on file link;

Actual Result:
after

@rani-webkul Could you take a look, please?

Thanks!

@rani-priya
Copy link
Contributor Author

@engcom-Alfa I have made required changes. Please do have a look.

@ghost
Copy link

ghost commented Aug 31, 2019

@rani-webkul unfortunately, only members of the maintainers team are allowed to remove progress related labels to the pull request

@rani-priya
Copy link
Contributor Author

@VladimirZaets I have made required changes, Please review.

@rani-priya
Copy link
Contributor Author

@VladimirZaets Please review

1 similar comment
@rani-priya
Copy link
Contributor Author

@VladimirZaets Please review

['value' => $info['quote_path'], 'type' => 'filename'],
DirectoryList::ROOT,
['value' => $this->_rootDir->getRelativePath($info['quote_path']), 'type' => 'filename'],
$this->rootDirBasePath,
Copy link
Contributor

@ihor-sviziev ihor-sviziev Sep 11, 2019

Choose a reason for hiding this comment

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

Hi @rani-webkul,
Wouldn't it be enough to change only DirectoryList::ROOT to DirectoryList::MEDIA?

Looks like that was the main issue why it returned no route page and we don't need to change value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done..

Copy link
Contributor

Choose a reason for hiding this comment

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

Still it works after this change? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes.. it's working.. I have verified it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks.. 👍

Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

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

See my comment above

@ghost ghost assigned ihor-sviziev Sep 11, 2019
Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

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

Hi,

Could you revert all not related changes, for instance adding
protected $rootDirBasePath;, additional constructor arguments? We don't really need them anymore.
Just to keep only changes

$option['value'] = $this->escapeHtml($option['value'], ["a"]);

and

DirectoryList::MEDIA,	

Also would be great to squash all your changes into single commit, only if you know how to do that.

… page magento#24319

fixed wishlist custom option download issue

made required changes

removed rootDirBasePath from constructor argument

removed unnecessary arguments
@rani-priya
Copy link
Contributor Author

@ihor-sviziev Done in a single commit.

@ihor-sviziev ihor-sviziev added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Sep 11, 2019
@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-5715 has been created to process this Pull Request

@rani-priya
Copy link
Contributor Author

@ihor-sviziev could you please also review #24390 ?

@ihor-sviziev
Copy link
Contributor

ihor-sviziev commented Sep 11, 2019 via email

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@m2-assistant
Copy link

m2-assistant bot commented Sep 12, 2019

Hi @rani-webkul, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.4 milestone Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants