Skip to content

INTERNAL Set redesign release version to 2.1.0 - #340

Merged
TLabutis merged 1 commit into
feature/react-admin-settingsfrom
INTERNAL/version-2.1.0
Jul 29, 2026
Merged

INTERNAL Set redesign release version to 2.1.0#340
TLabutis merged 1 commit into
feature/react-admin-settingsfrom
INTERNAL/version-2.1.0

Conversation

@TLabutis

Copy link
Copy Markdown
Contributor

Self-Checks

  • I have performed a self-review of my code.
  • I have updated/added necessary technical documentation in the README file.

JIRA task link

No ticket - internal release housekeeping under epic SL-350.

Summary

The redesign was carrying version 2.1.1, but nothing 2.1.x has ever been released (last tag is v2.0.3, 2026-06-25). The branch only had 2.1.1 because commit 64baef3 bumped 2.0.2 straight to 2.1.1. This sets the release to 2.1.0.

QA Checklist Labels

  • Bug fix?
  • New feature?
  • Improvement?
  • Technical debt?
  • Reusable?
  • Covered by tests?

QA Checklist

Related: #330 (React bundle built in CI), #339 (Composer advisory release-build fix). Both are prerequisites for shipping this version.

Additional Context

Four changes:

  • saferpayofficial.php - $this->version 2.1.1 -> 2.1.0
  • changelog.md - ## [2.1.1] -> ## [2.1.0]. This also closes the gap where the changelog had a 2.1.1 section but no 2.1.0 despite upgrade/install-2.1.0.php existing.
  • upgrade/install-2.1.1.php - deleted
  • upgrade/install-2.1.0.php - now removes both the AdminSaferPayOfficialPayment and AdminSaferPayOfficialFields tabs

Folding the upgrade script in is required, not tidying. PrestaShop only runs an upgrade file when file_version <= module_version (classes/module/Module.php:842). At version 2.1.0 the install-2.1.1.php script would be skipped entirely, so every merchant upgrading from 2.0.3 would keep a dead "Saferpay Fields" admin tab pointing at a controller this redesign deleted.

Verified on PrestaShop 9.1.4 / PHP 8.4. Seeded a pre-2.1.0 state using PrestaShop objects (created the legacy Fields tab, set the registered version to 2.0.3), then ran the real prestashop:module upgrade saferpayofficial:

before: version 2.0.3, Payment tab id 170, Fields tab id 173
after:  version 2.1.0, both tabs removed, module still installed and active

No other version references need touching. config.xml is gitignored, untracked, and absent from the release ZIP (PrestaShop regenerates it on install). views/js/admin/settings-app/package.json sits at 1.0.0 and is stripped before packaging. The remaining 2.1.1 matches in the repo are unrelated npm packages and PrestaShop core module versions inside test seed SQL.

Noticed while in here, pre-existing and deliberately not changed: src/Install/AbstractInstaller.php:61 still creates the hidden AdminSaferPayOfficialPayment tab on a fresh install (its controller is now only a redirect stub to Settings), while this upgrade deletes that tab. Fresh and upgraded shops therefore diverge on it. Happy to make it consistent in a follow-up if wanted.

Frontend Changes

None.

Nothing 2.1.x was ever released (last tag is v2.0.3), so the redesign
ships as 2.1.0. The branch carried 2.1.1 only because an earlier commit
bumped 2.0.2 straight to 2.1.1.

Folds upgrade/install-2.1.1.php into upgrade/install-2.1.0.php. PS only
runs an upgrade file when its version is <= the module version, so at
2.1.0 the 2.1.1 script would never run and the removed
AdminSaferPayOfficialFields tab would survive on every upgraded shop.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@TLabutis
TLabutis merged commit c96cfd7 into feature/react-admin-settings Jul 29, 2026
1 of 3 checks passed
@TLabutis
TLabutis deleted the INTERNAL/version-2.1.0 branch July 29, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant