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

#21734 Error in JS validation rule #21776

Merged
merged 2 commits into from Mar 29, 2019

Conversation

kisroman
Copy link
Contributor

Description (*)

Bug in "validate-per-page-value-list" validation.

Fixed Issues (if relevant)

  1. Error in JS validation rule #21734

Manual testing scenarios (*)

  1. ...
  2. ...

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
Copy link
Contributor

Hi @kisroman. 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-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

Copy link
Contributor

@dmytro-ch dmytro-ch left a comment

Choose a reason for hiding this comment

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

Hi @kisroman,
thank you for your contribution!

The only thing I have a concern about is that we also need to make sure there is no empty value.
However, according to current solution the empty value is condidered as valid.
Could you please fix it?

Thank you!

@kisroman
Copy link
Contributor Author

Hi @dmytro-ch. I am not sured that this validation should return false if value is empty. For empty value we have other validation as "required".
Also I found Github issue which confirms it #16544.
Thanks :)

@ghost
Copy link

ghost commented Mar 18, 2019

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

@kisroman kisroman requested a review from dmytro-ch March 18, 2019 09:29
@dmytro-ch
Copy link
Contributor

@kisroman, thank you for the update.
It does make sense. 👍
In this case, we still need to make sure the grid_per_page_values and list_per_page_values system configs does not contain empty values.
So let's add the proper validation rules into app/code/Magento/Catalog/etc/adminhtml/system.xml.

Thank you!

@kisroman
Copy link
Contributor Author

@dmytro-ch, agree. Added.

@magento-engcom-team
Copy link
Contributor

Hi @dmytro-ch, thank you for the review.
ENGCOM-4546 has been created to process this Pull Request

@soleksii
Copy link

✔️ QA Passed

Result:

after

@ghost
Copy link

ghost commented Mar 29, 2019

Hi @kisroman, 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.

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.

None yet

5 participants