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:
+1
@@ -273,6 +273,7 @@ describe('WorkspaceRepository', () => {
|
||||
shouldBypassPermissionChecks: false,
|
||||
objectRecordsPermissions: mockObjectRecordsPermissions,
|
||||
},
|
||||
undefined,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
+6
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user