- Issue created by @john.oltman
- Merge request !116#3505336: Validation results should implement CacheableDependencyInterface β (Merged) created by john.oltman
-
john.oltman β
authored 98ea8c5b on 3.3.x
#3505336: Validation results should implement...
-
john.oltman β
authored 98ea8c5b on 3.3.x
- π¬π§United Kingdom jonathanshaw Stroud, UK
john.oltman β credited jonathanshaw β .
- π¬π§United Kingdom jonathanshaw Stroud, UK
Shouldn't src/RegistrationValidationResult.php be implementing RefineableCacheableDependencyInterface not CacheableDependencyInterface?
Your change to the behavior of RegistrationValidationEventSubscriber::getCacheableMetadata looks like it break the behavior of registration_admin_overrides\EventSubscriber\RegistrationValidationEventSubscriber
I'm also not sure what that change does to the way the validator and constraint validators handle cacheability, but I imagine we have test coverage there.
- πΊπΈUnited States john.oltman
Shouldn't src/RegistrationValidationResult.php be implementing RefineableCacheableDependencyInterface not CacheableDependencyInterface?
I've seen it done both ways, and it works as-is because I am using the trait, but AccessResult in core does what you suggest, and that is my model, so I will fix.
Your change to the behavior of RegistrationValidationEventSubscriber::getCacheableMetadata looks like it break the behavior of registration_admin_overrides\EventSubscriber\RegistrationValidationEventSubscriber
Indeed, good catch. I will fix and add a test for this code path.
-
john.oltman β
authored b75fb8f2 on 3.3.x
#3505336: Updates from code review
-
john.oltman β
authored b75fb8f2 on 3.3.x
Automatically closed - issue fixed for 2 weeks with no activity.