Skip to content

Conversation

@hopengfoong
Copy link
Collaborator

@hopengfoong hopengfoong commented Jan 9, 2026

Description

Work Item ID: AB#55494

How has it been tested?

Release Note

Notable Changes

@hopengfoong hopengfoong requested a review from a team as a code owner January 9, 2026 08:01
@hopengfoong hopengfoong force-pushed the fix/55494-delete-directory-when-table-name-used branch from a4200a4 to f158e14 Compare January 9, 2026 08:16
@hopengfoong hopengfoong enabled auto-merge January 9, 2026 09:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the OpenMirroring Connector would fail to delete the correct output directory during archive operations when a custom table name was configured. The fix ensures that both export and archive operations use the same logic to determine the subdirectory path.

Changes:

  • Extracted pattern replacement logic into a reusable PatternHelper class
  • Created OutputDirectoryHelper to centralize subdirectory name calculation logic
  • Updated ArchiveContainer to use the same subdirectory calculation as the export job

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Connector.FabricOpenMirroring/Connector/OutputDirectoryHelper.cs New helper class to centralize subdirectory calculation logic, handling both table name patterns and default stream ID formatting
src/Connector.FabricOpenMirroring/Connector/OpenMirroringConnector.cs Updated ArchiveContainer to use OutputDirectoryHelper for consistent subdirectory calculation
src/Connector.FabricOpenMirroring/Connector/OpenMirroringExportEntitiesJob.cs Refactored to use OutputDirectoryHelper instead of inline logic
src/Connector.DataLake.Common/Connector/PatternHelper.cs New helper class containing extracted pattern replacement logic for table/file name patterns
src/Connector.DataLake.Common/Connector/DataLakeExportEntitiesJobBase.cs Removed pattern replacement methods (moved to PatternHelper), updated to use PatternHelper
src/Connector.OneLake/Connector/OneLakeExportEntitiesJob.cs Updated to use PatternHelper.ReplaceNameUsingPatternAsync
test/integration/Connector.FabricOpenMirroring.Tests.Integration/FabricOpenMirroringConnectorTests.cs Added tests for table name functionality and archive operations, reorganized imports
test/integration/Connector.DataLake.Common.Tests.Integration/DataLakeConnectorTestsBase.cs Changed to use DeleteIfExistsAsync for more robust cleanup
docs/4.6.3-release-notes.md Added release note documenting the fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hopengfoong hopengfoong merged commit 2365872 into release/4.6.3 Jan 13, 2026
6 of 7 checks passed
@hopengfoong hopengfoong deleted the fix/55494-delete-directory-when-table-name-used branch January 13, 2026 06:16
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.

3 participants