- Issue created by @prudloff
- π³πΏNew Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies β .
- Merge request !11306Resolve #3497647 "Stringdatabasestoragedeletestrings does not" β (Closed) created by prudloff
- πΊπΈUnited States smustgrave
Can the issue summary be flushed out some please
Proposed solution is a little vague, don't need code examples but how is this being solved.
Also recommend leaving all summary headers, if they are blank or NA.
- Status changed to Needs work
3 months ago 7:58am 3 April 2025 - πΊπΈUnited States smustgrave
Feedback of switching to a kernel test appears to be addressed
- Status changed to RTBC
12 days ago 1:47pm 15 June 2025 - πΊπΈUnited States xjm
I queued the test-only changes job (which someone should have done and documented before this was RTBC).
- πΊπΈUnited States xjm
The test-only job failed as expected:
https://git.drupalcode.org/issue/drupal-3497647/-/jobs/5279091
Drupal\Core\Database\InvalidQueryException: Calling Drupal\Core\Database\Query\Condition::condition() without an array compatible operator is not supported. See https://www.drupal.org/node/3350985 /builds/issue/drupal-3497647/core/lib/Drupal/Core/Database/Query/Condition.php:115 /builds/issue/drupal-3497647/core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php:27 /builds/issue/drupal-3497647/core/modules/locale/src/StringDatabaseStorage.php:530 /builds/issue/drupal-3497647/core/modules/locale/src/StringDatabaseStorage.php:209 /builds/issue/drupal-3497647/core/modules/locale/tests/src/Kernel/LocaleStringTest.php:277 ERRORS!
- πΊπΈUnited States xjm
I reviewed the relevant APIs, and I agree that this is a good fix. Saving credits.
- πΊπΈUnited States xjm
Sorry, just caught a couple assertion messages creeping back in. @prudloff, are you okay with the inline comments I proposed instead, in place of your assertion messages? If you accept the suggestions, the issue can be moved straight back to RTBC (no need for an extra review cycle for it).
- π«π·France prudloff Lille
Sorry I didn't know that assertion messages should not be used. (Maybe a phpcs rule delicould catch that?)
I am OK with your changes. - πΊπΈUnited States xjm
@prudloff, it's one of those "cultural knowledge" things where it's been enforced as a best practice in the core queue and been the subject of repeated massive codebase cleanups, but the policy draft to formalize it has stalled out for years. :) Tried to get the latest version of it moving again today in π± [META] [policy] Remove PHPUnit assertion messages when possible, and standardize remaining messages Active . Unfortunately there are a subset of cases where messages are needed (the policy draft in the linked issue outlines them), so enforcing it with a rule isn't as simple as some.
In any case, thanks for the bug fix! I went back and forth on the priority, but I think this is actually major, given that the method as it stands is basically straight-up broken.
Committed to 11.x, 11.2.x, and 10.5.x as a patch-safe major bug fix. Thanks!