mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
Merge pull request #2332 from anyproto/go-5457-system-objects-installation
GO-5457 do not install system relations
This commit is contained in:
commit
8220a9f5ed
1 changed files with 4 additions and 7 deletions
|
@ -164,11 +164,10 @@ func (s *space) tryLoadBundledAndInstallIfMissing(disableRemoteLoad bool) {
|
|||
if errors.Is(err, context.Canceled) {
|
||||
return // we are closing, skip installation,
|
||||
}
|
||||
log.Error("failed to load bundled objects", zap.Error(err))
|
||||
log.Warn("failed to load bundled objects", zap.Error(err))
|
||||
}
|
||||
_, _, err = s.installer.InstallBundledObjects(s.loadMissingBundledObjectsCtx, s, missingSourceIds, true)
|
||||
if err != nil {
|
||||
log.Error("failed to install bundled objects", zap.Error(err))
|
||||
if len(missingSourceIds) > 0 {
|
||||
log.Warn("missing bundled objects", zap.Strings("ids", missingSourceIds))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -187,9 +186,7 @@ func (s *space) mandatoryObjectsLoad(ctx context.Context, disableRemoteLoad bool
|
|||
return
|
||||
}
|
||||
go s.tryLoadBundledAndInstallIfMissing(disableRemoteLoad)
|
||||
if s.loadMandatoryObjectsErr != nil {
|
||||
return
|
||||
}
|
||||
|
||||
err := s.migrationProfileObject(ctx)
|
||||
if err != nil {
|
||||
log.Error("failed to migrate profile object", zap.Error(err))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue