This is not the expected format for $checklist->markUpdatesSuccessful($update_ids, TRUE);. It should be:
$update_ids = [
'varbase_core' => [
'varbase_core_optional_update_8601',
'varbase_core_optional_update_8602',
'varbase_core_optional_update_8603',
'varbase_core_optional_update_8604',
'varbase_core_optional_update_8605',
'varbase_core_optional_update_8606',
'varbase_core_optional_update_8607',
'varbase_core_update_8608',
'varbase_core_update_8610',
'varbase_core_optional_update_8701',
'varbase_core_optional_update_8702',
'varbase_core_update_8703',
'varbase_core_update_8704',
'varbase_core_optional_update_8705',
'varbase_core_optional_update_8706',
],
'varbase_admin' => [
'varbase_admin_update_8602',
]
];
Note that the other code in this method will need adjusted too.
Comments
Comment #2
alexpottI've looked over where this code is called and this is not caused by anything in the Update Helper module. It's caused by
varbase_update_helper_install().This function is passing in the following array.
This is not the expected format for
$checklist->markUpdatesSuccessful($update_ids, TRUE);. It should be:Note that the other code in this method will need adjusted too.
FWIW I'm not sure why any of this code is needed in varbase. I think
update_helper_checklist_install()should be handling this already.Comment #3
rajab natshahThank you, Alex for moving the issue to Varbase Core.
It will be tested and fixed.
Comment #4
rajab natshahComment #5
rajab natshahAlex, Some sites may not have the module installed by default.
On install it should show
100%This is to fix the status to 100% on install and on an installation for optional components or in a Sub Profiles
The Update Helper module had performance issues
When the site admin decided to disable the module then enable it again.
The site will end up with some weird status like
106%,112%or109%.And some time we get
60%or40%if the active site had changes at the time of enabling of a new module, which could do a small change in active config.Before it was
$checklist->getPercentComplete() != 100which is wrong and we had it fixed with$checklist->getPercentComplete() < 100in #3118031: Fix performance for anonymous users on page load for [Update Helper Checklist] module with XHProf statisticsNoticed your new commit on the issue to fix this.
Comment #6
rajab natshahComment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #11
rajab natshahComment #12
rajab natshahComment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshah