Closed (fixed)
Project:
Automatic Updates
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2023 at 16:12 UTC
Updated:
21 Dec 2023 at 19:34 UTC
Jump to comment: Most recent
Comments
Comment #2
tedbowFigured out why this is happening
\Drupal\automatic_updates\Form\UpdateReady::submitFormwill setup the batch to run post applyThe
\Drupal\automatic_updates\Validation\StatusChecker::clearStoredResultsget triggereds on post applybut
\Drupal\automatic_updates\Controller\UpdateController::onFinishruns the checkers before redirecting to update.php. So the status checks are run after the code is updated but before the DB updates are run. This meansPendingUpdatesValidatoris going to flag an error that will stored in cache just before the DB updates are run.So we need to someone clear the results after update.php is run
Comment #4
tedbowPushed up an idea. will see if any other tests break but it will needs tests of its own
Comment #5
tedbowLooks like we had explicit test coverage that PendingUpdatesValidator had an error and status checks were not run if you had to go to update.php
So looks like I just had to update the existing test expectations.
Comment #6
phenaproximaI don't think I have anything to complain about here. It's a nice fix.
Comment #8
tedbow@phenaproxima thanks for the review