Skip to content

Import ID mapping DTO and session-tracked mapping store

Summary

  • Created feature/octopus-import-id-mapping from feature/squid-import-project.
  • Added OctopusImportIdMappingDto and included IdMappings in OctopusImportSessionResultDto.
  • Added OctopusImportIdMap for created/reused source-to-destination ID mappings, deterministic DTO export, session-result restore, duplicate mapping protection, and graph reference lookup.
  • Added unit tests for created/reused mappings, case-insensitive lookup, reference resolution, session round-trip, duplicate protection, and invalid mapping states.
  • Marked OpenSpec task 3.1 complete locally; openspec/ remains ignored and is not part of the branch diff.
  • Scope stops before dependency ordering, conflict discovery, preview planning, and validation.

Test plan

  • /usr/local/share/dotnet/dotnet test tests/Squid.UnitTests/Squid.UnitTests.csproj --filter "FullyQualifiedName~Services.OctopusImport" passed: 109 passed, 0 failed.
  • /usr/local/share/dotnet/dotnet test tests/Squid.UnitTests/Squid.UnitTests.csproj passed: 6331 passed, 0 failed.
  • git diff --check passed.
  • No integration tests were added for this branch; current scope is DTO/Core ID mapping plus unit coverage.

Merge request reports

Loading