Refactor timeline activity insert (#13696)

In this PR:
- refactor timelineActivity computation to batch it
- make sure to pass the authContext to insert-query-builder in order to
pass user information to timelineActivity
- refactor message-participant /calendar-participant creation to batch
more
- fix favorite on view race condition (FE)
- deprecate PARTIAL_CALENDAR_EVENT_FETCH_LIST syncStage as we will
deprecate partial vs full notion (we will just leverage cursor emptyness
or not)
- introduce calendar / messging SCHEDULED syncStage that will allow
better performance granularity later
- activate quick message import after message list fetch to speed
performance on small message lists
This commit is contained in:
Charles Bochet
2025-08-06 22:11:26 +02:00
committed by GitHub
parent 453a6167a5
commit 5631dd122e
34 changed files with 684 additions and 572 deletions
@@ -273,6 +273,7 @@ describe('WorkspaceRepository', () => {
shouldBypassPermissionChecks: false,
objectRecordsPermissions: mockObjectRecordsPermissions,
},
undefined,
);
});
@@ -251,4 +251,10 @@ export class WorkspaceInsertQueryBuilder<
TwentyORMExceptionCode.METHOD_NOT_ALLOWED,
);
}
setAuthContext(authContext: AuthContext): WorkspaceInsertQueryBuilder<T> {
this.authContext = authContext;
return this;
}
}
@@ -554,6 +554,7 @@ export class WorkspaceRepository<
entity,
selectedColumns,
permissionOptions,
this.authContext,
);
}