Skip to content

Fix fresh install dependency - #73

Closed
Bashev wants to merge 5 commits into
mage-os:mainfrom
Bashev:fix-fresh-install-dependency
Closed

Bashev wants to merge 5 commits into
mage-os:mainfrom
Bashev:fix-fresh-install-dependency

Conversation

@Bashev

@Bashev Bashev commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

MigrateConfigPaths data patch calls StoreManager::getWebsites()/getStores() unconditionally in apply(). On a clean setup:install the data patches run before the default website exists, so WebsiteRepository throws \DomainException("The default website isn't defined") and the whole install aborts.

This wraps the website/store iteration in a narrow try/catch (\DomainException), falling back to migrating only the default scope. When no stores or websites exist yet there is nothing store-specific to migrate anyway, so the default scope is sufficient; on a normal upgrade (websites present) behaviour is unchanged.

The fix is applied as a Composer patch against the vendor package rather than a fork, so it travels with the project and drops away cleanly once the upstream module guards this itself.

@Bashev
Bashev requested review from a team, SamueleMartini and dadolun95 as code owners August 24, 2026 21:27
@Bashev
Bashev marked this pull request as draft August 24, 2026 22:08
@Bashev Bashev closed this Aug 26, 2026
@Bashev
Bashev deleted the fix-fresh-install-dependency branch August 26, 2026 06:58
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