View Issue Details

IDProjectCategoryView StatusLast Update
0005717Composrinstallerpublic2024-07-22 20:32
ReporterPatrick SchmalstigAssigned ToPatrick Schmalstig 
SeverityFeature-request 
Status closedResolutionwon't fix 
Product Version 
Fixed in Version 
Summary0005717: Adjust upgrader and install.php to solely use minikernel.php and relevant templates
DescriptionMake upgrading between versions easier and more streamlined.

a) install.php, upgrader.php, and data/upgrader2.php, should generally never use source files outside of itself, minikernel.php, crypt_master.php, and any tpl files starting with INSTALLER_. Make this a coding standard in addition to incorporating it.

*Exception: upgrader.php can load in any additional source files it needs after step 4 when all updated files have been transferred.
*Exception: install.php can load in any additional source files it needs after having transferred / extracted all the files it needs.

b) upgrader.php, upon transferring new and updated files, should immediately extract the following files if present instead of deferring to data/upgrader2.php:
 - sources/minikernel.php
 - sources/crypt_master.php (this already happens)
 - upgrader.php
 - data/upgrader2.php (this already happens)
 - any templates starting with INSTALLER_ or whatever is used for the upgrader (but only if we also had to extract upgrader.php; these updated templates are otherwise not needed right away)

c) If the upgrader had to extract an updated upgrader.php, then it should forcefully terminate before starting up data/upgrader2.php / the secondary stage of transferring files, and require the end user to reload upgrader.php to run the updated upgrader. Perhaps just display a more options button.
TagsRoadmap: v11
Time estimation (hours)
Sponsorship open

Activities

Patrick Schmalstig

2024-04-22 21:25

administrator   ~0008669

Should possibly port to v10 as well to make v10->v11 upgrades smoother.

Patrick Schmalstig

2024-06-07 03:22

administrator   ~0008821

Won't fix. It's way too complicated for not enough benefit to go this route. Plus I'm managing to get the upgrader working without needing to do this.

Chris Graham

2024-07-22 20:32

administrator   ~0008868

Yeah, it's not realistic and not needed. There's a lot that installation code in particular might want to do, and would be restrictive if we limit it.

Architecturally minikernel is very messy. I would love to clean that up and not even need it, i.e. move in the opposite direction.

Issue History

Date Modified Username Field Change
2024-04-22 21:24 Patrick Schmalstig New Issue
2024-04-22 21:24 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-04-22 21:25 Patrick Schmalstig Note Added: 0008669
2024-04-22 21:26 Patrick Schmalstig Description Updated View Revisions
2024-04-22 21:27 Patrick Schmalstig Description Updated View Revisions
2024-04-22 21:29 Patrick Schmalstig Description Updated View Revisions
2024-06-07 03:22 Patrick Schmalstig Assigned To => Patrick Schmalstig
2024-06-07 03:22 Patrick Schmalstig Status non-assigned => closed
2024-06-07 03:22 Patrick Schmalstig Resolution open => won't fix
2024-06-07 03:22 Patrick Schmalstig Note Added: 0008821
2024-07-22 20:32 Chris Graham Note Added: 0008868