Skip to content

Commit e4e36bd

Browse files
fix: Fixed issue with repositories appearing in the carousel when indexing fails on first sync (#305)
1 parent e64f371 commit e4e36bd

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
- 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)
12+
1013
## [3.1.4] - 2025-05-10
1114

1215
### Fixed

packages/backend/src/connectionManager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ export class ConnectionManager implements IConnectionManager {
334334
},
335335
data: {
336336
syncStatus: ConnectionSyncStatus.FAILED,
337-
syncedAt: new Date(),
338337
syncStatusMetadata: syncStatusMetadata as Prisma.InputJsonValue,
339338
}
340339
});

packages/backend/src/repoManager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ export class RepoManager implements IRepoManager {
392392
},
393393
data: {
394394
repoIndexingStatus: RepoIndexingStatus.FAILED,
395-
indexedAt: new Date(),
396395
}
397396
})
398397
}

packages/db/prisma/schema.prisma

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ model Repo {
4141
displayName String?
4242
createdAt DateTime @default(now())
4343
updatedAt DateTime @updatedAt
44+
/// When the repo was last indexed successfully.
4445
indexedAt DateTime?
4546
isFork Boolean
4647
isArchived Boolean
@@ -86,6 +87,7 @@ model Connection {
8687
isDeclarative Boolean @default(false)
8788
createdAt DateTime @default(now())
8889
updatedAt DateTime @updatedAt
90+
/// When the connection was last synced successfully.
8991
syncedAt DateTime?
9092
repos RepoToConnection[]
9193
syncStatus ConnectionSyncStatus @default(SYNC_NEEDED)

0 commit comments

Comments
 (0)