Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Merge requests
!988
Resolve
#3406008
"Status update php"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3406008
"Status update php"
issue/automatic_updates-3406008:3406008-status-update-php
into
3.0.x
Overview
0
Commits
2
Pipelines
3
Changes
2
Merged
Ted Bowman
requested to merge
issue/automatic_updates-3406008:3406008-status-update-php
into
3.0.x
1 year ago
Overview
0
Commits
2
Pipelines
3
Changes
2
Expand
Closes
#3406008
0
0
Merge request reports
Viewing commit
2a7a1ac9
Prev
Next
Show latest version
2 files
+
11
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
2a7a1ac9
move status check running to after database updates.
· 2a7a1ac9
Ted Bowman
authored
1 year ago
src/Controller/UpdateController.php
+
4
−
1
Options
@@ -64,12 +64,15 @@ final class UpdateController extends ControllerBase {
* A redirect to the appropriate destination.
*/
public
function
onFinish
(
Request
$request
):
RedirectResponse
{
$this
->
statusChecker
->
run
();
if
(
$this
->
pendingUpdatesValidator
->
updatesExist
())
{
// If there are pending database updates then the status checks will be
// run after the database updates are completed.
// @see \Drupal\automatic_updates\BatchProcessor::dbUpdateBatchFinished
$message
=
$this
->
t
(
'Apply database updates to complete the update process.'
);
$url
=
Url
::
fromRoute
(
'system.db_update'
);
}
else
{
$this
->
statusChecker
->
run
();
$message
=
$this
->
t
(
'Update complete!'
);
$url
=
Url
::
fromRoute
(
'update.status'
);
// Now that the update is done, we can put the site back online if it was
Loading