refactor: Remove all code related to the old cache system (#25284)
* chore: Remove all code related to the old cache system * Removed some redundant tests, some type fixes * Further type fixes * More type fixes re. tests * Next iteration, couple of fixes remaining * Remove cache from CredentialActionsDropdown * Fix tests by mocking credential, instead of db queries * Remove Cache DI wiring from v2 * Make sure apiv2 build passes * Remove another cache cron * Remove old tokens for calendar-cache v1
This commit is contained in:
1 parent
d1184f65e2
commit
ae7fd0cae2
45 files changed
+58
-2765
No files matched your search
+1
-5
@@ -70,8 +70,6 @@ const ConnectedCalendarList = ({
|
||||
<div className="flex w-32 justify-end">
|
||||
<CredentialActionsDropdown
|
||||
credentialId={connectedCalendar.credentialId}
|
||||
integrationType={connectedCalendar.integration.type}
|
||||
cacheUpdatedAt={connectedCalendar.cacheUpdatedAt}
|
||||
onSuccess={onChanged}
|
||||
delegationCredentialId={connectedCalendar.delegationCredentialId}
|
||||
disableConnectionModification={disableConnectionModification}
|
||||
@@ -123,8 +121,6 @@ const ConnectedCalendarList = ({
|
||||
<div className="flex w-32 justify-end">
|
||||
<CredentialActionsDropdown
|
||||
credentialId={connectedCalendar.credentialId}
|
||||
integrationType={connectedCalendar.integration.type}
|
||||
cacheUpdatedAt={connectedCalendar.cacheUpdatedAt}
|
||||
onSuccess={onChanged}
|
||||
delegationCredentialId={connectedCalendar.delegationCredentialId}
|
||||
disableConnectionModification={disableConnectionModification}
|
||||
@@ -151,7 +147,7 @@ export const SelectedCalendarsSettingsWebWrapper = (props: SelectedCalendarsSett
|
||||
|
||||
const query = trpc.viewer.calendars.connectedCalendars.useQuery(
|
||||
{
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
|
||||
eventTypeId: scope === SelectedCalendarSettingsScope.EventType ? eventTypeId! : null,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -128,4 +128,3 @@ export { sendEmailVerificationByCode } from "@calcom/features/auth/lib/verifyEma
|
||||
export { checkEmailVerificationRequired } from "@calcom/trpc/server/routers/publicViewer/checkIfUserEmailVerificationRequired.handler";
|
||||
|
||||
export { TeamService } from "@calcom/features/ee/teams/services/teamService";
|
||||
export { CacheService } from "@calcom/features/calendar-cache/lib/getShouldServeCache";
|
||||
Reference in new issue
Block a user