N°9205 - Show progress messages in setup sequencer#906
Conversation
|
| Filename | Overview |
|---|---|
| setup/sequencers/ApplicationInstallSequencer.php | Added SUCCESS_LABELS constant mapping each step to its completion message, and a ComputeNextStep helper that feeds the correct prev-step-success-message into GetNextStep; no logic errors detected. |
| setup/sequencers/DataAuditSequencer.php | Each GetNextStep call now passes an inline success message string as $sPrevStepSuccessMessage; the Copying... string passed as $sMessage in the copy case is unused in both web and CLI OK paths but causes no runtime issue. |
| setup/sequencers/StepSequencer.php | Added $sPrevStepSuccessMessage parameter to GetNextStep and includes it as prev-step-success-message in the returned array; backward-compatible since it defaults to an empty string. |
| setup/wizardsteps/WizStepInstall.php | New AddPrevStepSuccessMessage method appends a green .message-valid banner to #progress_content; call sites use static:: (late static binding) which correctly supports subclass overrides. |
| css/setup.scss | Added #progress_content block with min-height, overflow: auto, and a 1.5rem top-margin rule for the first .message that follows a non-.message element; CSS compiled into setup.css. |
Reviews (3): Last reviewed commit: "N°9205 - Show progress messages in setup..." | Re-trigger Greptile
92f442c to
905a950
Compare
905a950 to
0b15021
Compare
|
Do you have an example how it would look? |
Curious as well :) |
odain-cbd
left a comment
There was a problem hiding this comment.
great job. sequencer behaviour has been enhanced. please adapt their tests. i guess they will fail otherwise...
I've added some screenshots to the PR description, the messages still need to be approved by our PO |
|
Looks good. Is that "verification" step something new? |
@Hipska yes, this is a new step included in the process for uninstalling extensions. It checks whether there is any data that needs to be cleared before running the setup |
|
I have doubts about the "Data consistency check".. What about custom extensions that do a whole datamodel rework/migration in their 2.0 version? I currently solve consistency problems in |
|
This data consistency is a new step checking if a subclass has been removed. |
|
So it will give useless and frightening warnings to the users, even while there are perfect, clean migration steps under the hood? This will give also warnings for all extensions that somehow use |
data audit step occurs in the middle of iTop setup. after compilation and before real application upgrade (where BeforeDatabaseCreation/AfterDatabaseCreation will be executed among others). in case of data possible errors setup hangs and remains as before (unless you force it to go further). admin can switch to data cleanup page. this not a under the hood process... |
So the user will see the consistency check failing, but still able to click to continue setup (where it will run Or how should I see that, do you have a screenshot of such "setup hangs" scenario? And what is that "admin can switch to data cleanup page"? |
|
It's really good to know that you're able to do this "under the hood" but most of our community is only using XML to customize iTop. The uninstallation functionality has a real value for them. |
|
I don't feel like that's an answer to my questions. There is no way to do DB migrations with XML. |
Base information
Objective
Show progress messages in setup sequencer
Proposed solution
Display a message confirming that the previous step was successful each time we move on to the next step
Checklist before requesting a review