Skip to content

fix(git-integration): sync repos to git v2#3546

Merged
mbani01 merged 2 commits into
mainfrom
fix/sync_repos_to_git_v2
Oct 27, 2025
Merged

fix(git-integration): sync repos to git v2#3546
mbani01 merged 2 commits into
mainfrom
fix/sync_repos_to_git_v2

Conversation

@mbani01
Copy link
Copy Markdown
Contributor

@mbani01 mbani01 commented Oct 27, 2025

This pull request updates the logic for syncing repositories in the integration service and improves the handling of repository deletion in the database. The main changes focus on removing legacy migration logic for inheriting repositories and ensuring that repository records can be marked as deleted.

Repository synchronization logic:

  • Removed the inheritFromExistingRepos parameter and related conditional logic from the syncReposToGitV2 method in integrationService.ts, simplifying the process and ensuring new repository entries are always generated with new UUIDs. [1] [2] [3]
  • Updated log messages to clarify that new repository entries are inserted when none exist, rather than skipping the sync.

Repository deletion support:

  • Modified the upsert logic in gitReposRepository.ts to include the deletedAt field, allowing soft deletion of repository records.

@mbani01 mbani01 self-assigned this Oct 27, 2025
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@mbani01 mbani01 merged commit ab434fb into main Oct 27, 2025
13 checks passed
@mbani01 mbani01 deleted the fix/sync_repos_to_git_v2 branch October 27, 2025 09:52
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.

1 participant