-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Validation: support placeholders for anything #3910
Validation: support placeholders for anything #3910
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a couple of tests.
@element-code I'm afraid I don't understand either the problem or the solution. Could you either provide some tests or elaborate more on what the issue is and how your PR fixes it? |
@MGatner the issue pops up when applying rules. A setRule('foo', 'required|filter[{placeholder}]') B setRule('foo', ['required', 'filter[{placeholder}]']) C setRules([
'foo' => 'required|filter[{placeholder}]'
])
setRules([
'foo' => ['required', 'filter[{placeholder}]']
]) E setRules([
'foo' => [
'rules' => 'required|filter[{placeholder}]'
]
]) F setRules([
'foo' => [
'rules' => ['required', 'filter[{placeholder}]']
]
]) |
Thank you, a very good explanation and examples. It strikes me that your examples are pretty much just the test cases we need. Would you be willing to add those to the Validation Tests so we can get this PR reviewed and merged? |
Jup, i still didnt write any tests and therefore have no experience with tests. Planning this for next week. |
Co-authored-by: Mostafa Khudair <[email protected]>
Publisher Class
Co-authored-by: MGatner <[email protected]>
Co-authored-by: MGatner <[email protected]>
Co-authored-by: MGatner <[email protected]>
rename `application` to `app`
@MGatner @paulbalandan any news on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any style issues will be caught when we apply 4.2 to develop.
Please update user_guide_src/source/libraries/validation.rst and then I think this is good!
@MGatner done |
Still not seeing it! Did you mix up branches perhaps? |
@MGatner uhm, could you explain what you are expecting? |
I'm on mobile so I'm having a hard time seeing the whole thing but that file has some references to the old method signature that needs updating. For example:
Just scan through the file and make sure anything you changed is updated and any new features are explained properly. |
@MGatner can you check on this one? |
It seems the base branch of this PR must be changed to |
@element-code It seem this PR need to be rebased. Could you? |
@kenjis @paulbalandan Do either of you want to champion this one enough to rebase it and fix any conflicts or should we close it? |
This fixes #3774
Checklist: