diff --git a/CHANGELOG.md b/CHANGELOG.md index 01d82310..720fdbf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Fixed issue with repos appearing in the carousel when they fail indexing for the first time. [#305](https://github.com/sourcebot-dev/sourcebot/pull/305) + ## [3.1.4] - 2025-05-10 ### Fixed diff --git a/packages/backend/src/connectionManager.ts b/packages/backend/src/connectionManager.ts index d6461753..ae80b1b9 100644 --- a/packages/backend/src/connectionManager.ts +++ b/packages/backend/src/connectionManager.ts @@ -334,7 +334,6 @@ export class ConnectionManager implements IConnectionManager { }, data: { syncStatus: ConnectionSyncStatus.FAILED, - syncedAt: new Date(), syncStatusMetadata: syncStatusMetadata as Prisma.InputJsonValue, } }); diff --git a/packages/backend/src/repoManager.ts b/packages/backend/src/repoManager.ts index e3fe3a43..76e2714b 100644 --- a/packages/backend/src/repoManager.ts +++ b/packages/backend/src/repoManager.ts @@ -392,7 +392,6 @@ export class RepoManager implements IRepoManager { }, data: { repoIndexingStatus: RepoIndexingStatus.FAILED, - indexedAt: new Date(), } }) } diff --git a/packages/db/prisma/schema.prisma b/packages/db/prisma/schema.prisma index 967ae38d..ed14810a 100644 --- a/packages/db/prisma/schema.prisma +++ b/packages/db/prisma/schema.prisma @@ -41,6 +41,7 @@ model Repo { displayName String? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + /// When the repo was last indexed successfully. indexedAt DateTime? isFork Boolean isArchived Boolean @@ -86,6 +87,7 @@ model Connection { isDeclarative Boolean @default(false) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + /// When the connection was last synced successfully. syncedAt DateTime? repos RepoToConnection[] syncStatus ConnectionSyncStatus @default(SYNC_NEEDED)