Problem/Motivation

I tested the beta1 version to update from 10.0.5 to 10.0.11.

this worked well. It detected that the User module had a DB update and routed me to update.php after the update was completed.

but after I ran the DB UPdates I went to the status report. It still show an error in the Readiness Check saying an DB update needed to be run with a link update.php. but clicking the link confirm there was no updates. Running the readiness check manually fixed it

Steps to reproduce

Proposed resolution

Figure out why this is happening

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tedbow created an issue. See original summary.

tedbow’s picture

Figured out why this is happening

\Drupal\automatic_updates\Form\UpdateReady::submitForm will setup the batch to run post apply
The \Drupal\automatic_updates\Validation\StatusChecker::clearStoredResults get triggereds on post apply
but \Drupal\automatic_updates\Controller\UpdateController::onFinish runs 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 means PendingUpdatesValidator is 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

tedbow’s picture

Status: Active » Needs work
Issue tags: +Needs tests

Pushed up an idea. will see if any other tests break but it will needs tests of its own

tedbow’s picture

Assigned: Unassigned » phenaproxima
Status: Needs work » Needs review
Issue tags: -Needs tests

Looks 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.

phenaproxima’s picture

Assigned: phenaproxima » Unassigned
Status: Needs review » Reviewed & tested by the community

I don't think I have anything to complain about here. It's a nice fix.

  • tedbow committed 1edb15aa on 3.0.x
    Issue #3406008: Status report still lists DB updates error after running...
tedbow’s picture

Status: Reviewed & tested by the community » Fixed

@phenaproxima thanks for the review

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.