Skip to content

N°9861 - Keep current choice button is too permissive - #989

Open
Lenaick wants to merge 2 commits into
developfrom
feature/9861-keep-current-choice-button-is-too-permissive
Open

N°9861 - Keep current choice button is too permissive#989
Lenaick wants to merge 2 commits into
developfrom
feature/9861-keep-current-choice-button-is-too-permissive

Conversation

@Lenaick

@Lenaick Lenaick commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

N°9861 - Keep current choice button is too permissive

Copilot AI balanced review requested due to automatic review settings August 4, 2026 08:32
@CombodoApplicationsAccount CombodoApplicationsAccount added the internal Work made by Combodo label Aug 4, 2026
@Lenaick Lenaick closed this Aug 4, 2026
@greptile-apps

greptile-apps Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds extension-choice validation before the setup wizard enters data audit and redirects invalid selections to the latest module-choice step.

  • Extracts the extension forward-navigation check into a reusable helper.
  • Adds controller support for resolving the latest state of a step class.
  • Synchronizes the in-memory wizard-step stack when the intermediate wizard is skipped.

Confidence Score: 4/5

The PR does not appear safe to merge until landing-step validation reads the correct per-step extension selection map.

The existing reported issue remains: the landing step passes a per-step outer array into a function that performs top-level choice-ID lookups, allowing valid installed extension choices to be classified as unchecked and redirecting the user away from data audit.

Files Needing Attention: setup/wizardsteps/WizStepLandingBeforeAudit.php

Important Files Changed

Filename Overview
setup/wizardsteps/WizStepLandingBeforeAudit.php Adds pre-audit extension validation and redirects rejected selections to the module-choice step.
setup/wizardsteps/WizStepModulesChoice.php Refactors existing extension forward-navigation conditions into a reusable helper.
setup/wizardcontroller.class.inc.php Exposes stack popping and adds lookup of the latest recorded state for a wizard-step class.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Landing before audit] --> B[Load selected components]
    B --> C[Compute extension choice flags]
    C --> D{Choices allow forward navigation?}
    D -->|Yes| E[Data audit]
    D -->|No| F[Latest modules-choice step]
Loading

Reviews (3): Last reviewed commit: "N°9861 - Changes from review" | Re-trigger Greptile

Comment thread setup/wizardsteps/WizStepLandingBeforeAudit.php Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Prevents “Keep current choices” from bypassing incompatible extension selections during upgrades.

Changes:

  • Reuses extension eligibility checks through a dedicated helper.
  • Redirects incompatible selections to the final module-choice step.
  • Allows that redirect through the wizard step contract.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
setup/wizardsteps/WizStepModulesChoice.php Extracts reusable forward-navigation validation.
setup/wizardsteps/WizStepLandingBeforeAudit.php Validates retained extensions and redirects incompatible choices.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Lenaick Lenaick reopened this Aug 4, 2026

@bdalsass bdalsass left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good but maybe requires review of a knowledgeable contributor on the subject

Comment thread setup/wizardsteps/WizStepLandingBeforeAudit.php Outdated
Comment thread setup/wizardsteps/WizStepLandingBeforeAudit.php Outdated
@Lenaick
Lenaick force-pushed the feature/9861-keep-current-choice-button-is-too-permissive branch from b8aea6a to cfcad3b Compare August 5, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Work made by Combodo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants