- Issue created by @mondrake
- Status changed to Needs review
12 months ago 10:28am 23 December 2023 - 🇮🇹Italy mondrake 🇮🇹
Impacts ✨ [PP-1] Introduce a Connection::executeDdlStatement method Active .
For review. This is adding the new event and changing the Statement objects to dispatch it in case of execution failure on the db. I'm also dprecating
StatementPrefetchIterator::throwPDOException()
which appears to be just dead code right now. - Status changed to Needs work
12 months ago 1:22am 27 December 2023 - 🇺🇸United States smustgrave
Just in case what do you think about moving the deprecation to a separate ticket? So nothing should be in the way of the new event.
Event makes sense only moved to NW for the change record update and thoughts on question above.
- Status changed to Needs review
12 months ago 11:42am 27 December 2023 - 🇮🇹Italy mondrake 🇮🇹
Updated the CR and created a new one only for the deprecation. To me, the deprecation belongs here since we are changing the code here, we would not have found it it the code wasn't changed, and we want to ensure the event carries an exception from the underlying connection and not a mock of it.
- Status changed to RTBC
12 months ago 3:30pm 28 December 2023 - 🇺🇸United States smustgrave
Thanks for adding that 2nd CR both read fine to me.
Missed event seems good.
Test coverage is proved by test-only feature
1) Drupal\Tests\Core\Database\DatabaseEventsTest::testEventEnablingAndDisabling Error: Class "Drupal\Core\Database\Event\StatementEvent" not found /builds/issue/drupal-3410476/core/tests/Drupal/Tests/Core/Database/DatabaseEventsTest.php:43 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/TextUI/Command.php:144 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/TextUI/Command.php:97 -- There was 1 risky test: 1) Drupal\Tests\Core\Database\DatabaseEventsTest::testEventEnablingAndDisabling This test did not perform any assertions /builds/issue/drupal-3410476/core/tests/Drupal/Tests/Listeners/DrupalListener.php:60 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/Framework/TestResult.php:452 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/Framework/TestResult.php:980 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/TextUI/Command.php:144 /builds/issue/drupal-3410476/vendor/phpunit/phpunit/src/TextUI/Command.php:97 ERRORS! Tests: 4, Assertions: 6, Errors: 1, Risky: 1.
The failing postsql failure is random javascript one.
- 🇮🇹Italy mondrake 🇮🇹
The failing postsql failure is random javascript one.
I'm not sure it's random, there is a query execution count that maybe needs updating, but I can't see how this MR impacts that. Maybe @catch can have an opinion.
- Status changed to Needs review
12 months ago 5:00pm 28 December 2023 - 🇺🇸United States smustgrave
swear reran it and it passed but failing again, so moving back to NR.
- 🇮🇹Italy mondrake 🇮🇹
After rebasing, the PostgreSql test failure seems to be gone. Cannot put back to RTBC given I added couple more optimizations.
- heddn Nicaragua
The rebase fixing things is explained by 📌 Fix random performance test failures Needs review landing yesterday.
- Status changed to RTBC
12 months ago 7:01pm 28 December 2023 -
longwave →
committed 870e5c1c on 11.x
Issue #3410476 by mondrake, smustgrave: Add event for statement...
-
longwave →
committed 870e5c1c on 11.x
- Status changed to Fixed
11 months ago 11:19am 6 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.