From 09d7f237340b4cc30e51ca792d0f80f0d05fba0f Mon Sep 17 00:00:00 2001 From: bkellam Date: Mon, 12 May 2025 11:51:35 -0700 Subject: [PATCH 1/2] fix --- packages/backend/src/connectionManager.ts | 1 - packages/backend/src/repoManager.ts | 1 - packages/db/prisma/schema.prisma | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) 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) From eab7b235aef7fd4bb611a9be10621483738cdbc9 Mon Sep 17 00:00:00 2001 From: bkellam Date: Mon, 12 May 2025 12:03:30 -0700 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) 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