SwagMigrationAssistant
SwagMigrationAssistant copied to clipboard
feat: prevent multiple connections to the same system
resolves https://github.com/shopware/shopware/issues/13670
This pull request introduces a fingerprinting mechanism for migration connections to prevent duplicate source system connections.
Changes:
- Added a new
sourceSystemFingerprintcolumn to theswag_migration_connectiontable. - Introduced
ConnectionFingerprintServiceto generate fingerprints for connection credentials, normalize endpoint data, and check for duplicate connections. - Updated
RunService::updateConnectionCredentialsto generate and store the fingerprint, and throw aMigrationExceptionif a duplicate source system connection is detected. - Added a new
DUPLICATE_SOURCE_CONNECTIONerror code and exception to handle duplicate source system connections.