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

Don't cache element validation state #97

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

yhabteab
Copy link
Member

@yhabteab yhabteab commented Nov 30, 2022

This change may break some div decorators and validate methods for the following modules as they use the hasBeenValidated(), hasBeenValidateAndIsNotValid() methods or have their own validation logic.

src/FormElement/BaseFormElement.php Outdated Show resolved Hide resolved
src/FormElement/BaseFormElement.php Outdated Show resolved Hide resolved
@nilmerg
Copy link
Member

nilmerg commented Dec 6, 2022

And please open PRs for reporting and jira regarding this change.

@yhabteab yhabteab force-pushed the do-not-cache-element-validation-state branch from 9f2b9a6 to ab433a9 Compare December 9, 2022 10:20
@nilmerg nilmerg merged commit 0b58c6c into master Dec 12, 2022
@nilmerg nilmerg deleted the do-not-cache-element-validation-state branch December 12, 2022 15:55
@nilmerg nilmerg added this to the v0.7.0 milestone Dec 13, 2022
nilmerg added a commit to Icinga/ipl-validator that referenced this pull request Dec 15, 2022
Since Icinga/ipl-html#97 form elements don't cache
the validation results anymore. This isn't a problem for most validators.
Though, custom callbacks written before this change were written with the
cache in mind. This change allows to control this when creating the validator.
It caches by default for historical reasons. (To not break compatibility)
nilmerg added a commit to Icinga/ipl-validator that referenced this pull request Dec 15, 2022
Since Icinga/ipl-html#97 form elements don't cache
the validation results anymore. This isn't a problem for most validators.
Though, custom callbacks written before this change were written with the
cache in mind. This change allows to control this when creating the validator.
It caches by default for historical reasons. (To not break compatibility)
nilmerg added a commit to Icinga/ipl-validator that referenced this pull request Jan 16, 2023
Since Icinga/ipl-html#97 form elements don't cache
the validation results anymore. This isn't a problem for most validators.
Though, custom callbacks written before this change were written with the
cache in mind. This change allows to control this when creating the validator.
It caches by default for historical reasons. (To not break compatibility)
nilmerg added a commit to Icinga/ipl-validator that referenced this pull request Jan 16, 2023
Since Icinga/ipl-html#97 form elements don't cache
the validation results anymore. This isn't a problem for most validators.
Though, custom callbacks written before this change were written with the
cache in mind. This change allows to control this when creating the validator.
It caches by default for historical reasons. (To not break compatibility)
nilmerg added a commit to Icinga/ipl-validator that referenced this pull request Jan 16, 2023
Since Icinga/ipl-html#97 form elements don't cache
the validation results anymore. This isn't a problem for most validators.
Though, custom callbacks written before this change were written with the
cache in mind. This change allows to control this when creating the validator.
It caches by default for historical reasons. (To not break compatibility)
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.

2 participants