mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
fix: Fixed issue with repositories appearing in the carousel when indexing fails on first sync (#305)
This commit is contained in:
parent
e64f37178a
commit
e4e36bd745
4 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -334,7 +334,6 @@ export class ConnectionManager implements IConnectionManager {
|
|||
},
|
||||
data: {
|
||||
syncStatus: ConnectionSyncStatus.FAILED,
|
||||
syncedAt: new Date(),
|
||||
syncStatusMetadata: syncStatusMetadata as Prisma.InputJsonValue,
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -392,7 +392,6 @@ export class RepoManager implements IRepoManager {
|
|||
},
|
||||
data: {
|
||||
repoIndexingStatus: RepoIndexingStatus.FAILED,
|
||||
indexedAt: new Date(),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue