LearnNewsExamplesServices
Frontmatter
id7643
titleRefactor: Implement MetadataManager for Sync Service
stateClosed
labels
airefactoring
assigneestobiu
createdAtOct 25, 2025, 12:22 PM
updatedAtOct 25, 2025, 2:26 PM
githubUrlhttps://github.com/neomjs/neo/issues/7643
authortobiu
commentsCount0
parentIssue7645
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 25, 2025, 2:26 PM

Refactor: Implement MetadataManager for Sync Service

Closed v11.0.0 airefactoring
tobiu
tobiu commented on Oct 25, 2025, 12:22 PM

As part of the sync service refactoring epic, this ticket focuses on creating a dedicated manager for the .sync-metadata.json file to optimize its size and centralize its logic.

Tasks:

  1. Create ai/mcp/server/github-workflow/services/sync/MetadataManager.mjs.
  2. Implement logic within the manager to handle loading and saving the metadata file.
  3. Implement data pruning logic within the manager. When saving, it should only store the essential fields required for change detection (e.g., updatedAt, contentHash, path) for each entity, instead of the full objects currently being stored. This will drastically reduce the file size.
  4. Refactor the IssueSyncer and ReleaseSyncer modules to use the new MetadataManager for all metadata reads and writes.
tobiu added the epic label on Oct 25, 2025, 12:22 PM
tobiu added the ai label on Oct 25, 2025, 12:22 PM
tobiu added the refactoring label on Oct 25, 2025, 12:22 PM
tobiu cross-referenced by #7645 on Oct 25, 2025, 12:23 PM
tobiu assigned to @tobiu on Oct 25, 2025, 12:24 PM
tobiu removed the epic label on Oct 25, 2025, 12:24 PM
tobiu added parent issue #7645 on Oct 25, 2025, 12:24 PM
tobiu referenced in commit 681cbdb - "Refactor: Implement MetadataManager for Sync Service #7643" on Oct 25, 2025, 2:26 PM
tobiu closed this issue on Oct 25, 2025, 2:26 PM