LearnNewsExamplesConnect
Frontmatter
assigneestobiu
createdAtOct 25, 2025, 3:53 PM
updatedAtOct 25, 2025, 3:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/7646
authortobiu
commentsCount0
parentIssue7645
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 25, 2025, 3:55 PM

Refactor: Streamline Release Metadata Handling in Sync Service

tobiu
tobiu commented on Oct 25, 2025, 3:53 PM

This ticket summarizes the refactoring changes made to improve consistency and efficiency in how release metadata is handled.

Changes Implemented:

  1. ReleaseSyncer.mjs Refactoring:

    • The releases member within ReleaseSyncer was changed from an array to an object, keyed by tagName.
    • The fetchAndCacheReleases method was updated to populate this.releases directly as this object structure.
    • The syncNotes method was adjusted to iterate over this.releases as an object.
  2. SyncService.mjs Optimization:

    • The redundant releaseCache creation and assignment block was removed.
    • newMetadata.releases now directly receives the ReleaseSyncer.releases object, eliminating an unnecessary intermediate transformation.

These changes streamline the data flow, reduce redundant processing, and align the handling of release metadata with that of issue metadata for improved consistency.