Skip to content

refactor!: centralize configurations#158

Open
Lars Kemper (larskemper) wants to merge 7 commits intotrunkfrom
feat/make-migration-assistant-configurable
Open

refactor!: centralize configurations#158
Lars Kemper (larskemper) wants to merge 7 commits intotrunkfrom
feat/make-migration-assistant-configurable

Conversation

@larskemper
Copy link
Copy Markdown
Member

resolves shopware/shopware#14598

Changes

  • introduced MigrationConfiguration service (overridable by injection)

@larskemper Lars Kemper (larskemper) force-pushed the feat/make-migration-assistant-configurable branch from 54a16d9 to f368610 Compare March 24, 2026 09:18
Comment on lines +22 to +28
public int $MIGRATION_LOG_BUFFER_SIZE = 50,
public int $MIGRATION_LOG_EXCEPTION_TRACE_ITEM_LIMIT = 10,
public int $MIGRATION_DEFAULT_BATCH_SIZE = 250,
public int $MIGRATION_MEDIA_PROCESSING_BATCH_SIZE = 10,
public int $MIGRATION_DEFAULT_EXCEPTION_THRESHOLD = 3,
public int $MIGRATION_DEFAULT_FETCH_SIZE = 50,
public int $MIGRATION_CONNECTION_TIMEOUT = 15,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

SCREAMING_SNAKE_CASE feels a little weird for properties IMO

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

UPGRADE.md still has the old naming

Copy link
Copy Markdown
Contributor

@MalteJanz Malte Janz (MalteJanz) left a comment

Choose a reason for hiding this comment

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

Besides the snapshot file change it looks good to me

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.

why did this snapshot change?

# NEXT

- #15568 - Switched to PHP Symfony service definitions
- #14598 - Introduced `MigrationConfiguration` service as a central place for internal configurations
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.

Nit: it's not user facing so no need to mention it here, it's enough to put it in the upgrade file for developers to not confuse any normal users

# NEXT

- #15568 - Umstellung auf PHP-Symfony-Service-Definitionen
- #14598 - `MigrationConfiguration` als zentrale Stelle für interne Konfigurationen eingeführt
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.

Nit, see above. Same applies to the line above this

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.

make migration assistant configurable

5 participants