1
0
Fork 0
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:
Roman Khafizianov 2025-04-11 18:18:21 +02:00 committed by GitHub
commit 8220a9f5ed
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -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))