Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(refetch-interval): standardize refetch intervals across various components to improve consistency
Victor Hugo dos Santosa38284f04535
diff --git a/frontend/src/hooks/api/secretApprovalRequest/queries.tsx b/frontend/src/hooks/api/secretApprovalRequest/queries.tsxindex 4c8d77371b..4c55f34215 100644--- a/frontend/src/hooks/api/secretApprovalRequest/queries.tsx+++ b/frontend/src/hooks/api/secretApprovalRequest/queries.tsx@@ -156,7 +156,7 @@ export const useGetSecretApprovalRequestCount = ({useQuery({queryKey: secretApprovalRequestKeys.count({ projectId, policyId }),queryFn: () => fetchSecretApprovalRequestCount({ projectId, policyId }),- enabled: Boolean(projectId) && (options?.enabled ?? true),...options,+ enabled: Boolean(projectId) && (options?.enabled ?? true),refetchInterval: options?.refetchInterval ?? 30_000});diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesTable.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesTable.tsxindex 5540ab4d62..8362229848 100644--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesTable.tsx+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberCertificatesTable.tsx@@ -59,7 +59,7 @@ export const PkiSubscriberCertificatesTable = ({ subscriberName, handlePopUpOpenlimit: perPage},{- refetchInterval: 5000+ refetchInterval: 30_000});diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberDetailsSection.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberDetailsSection.tsxindex 5da5be55a4..dd1dcbbc7d 100644--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberDetailsSection.tsx+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/components/PkiSubscriberDetailsSection.tsx@@ -59,7 +59,7 @@ export const PkiSubscriberDetailsSection = ({ subscriberName, handlePopUpOpen }:projectId},{- refetchInterval: 5000+ refetchInterval: 30_000});diff --git a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsxindex 4be7e0b3e7..e6d1af9504 100644--- a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx+++ b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx@@ -35,7 +35,7 @@ export const PkiSyncAuditLogsSection = ({ pkiSync }: Props) => {</div>{subscription.auditLogs ? (<LogsSection- refetchInterval={4000}+ refetchInterval={15_000}showFilters={false}project={currentProject}presets={{diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsxindex 9043c35efb..2ac031b22e 100644--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/IntegrationsDetailsByIDPage.tsx@@ -40,7 +40,7 @@ export const IntegrationDetailsByIDPage = () => {});const { data: integration } = useGetIntegration(integrationId, {- refetchInterval: 4000+ refetchInterval: 30_000});const [shouldDeleteSecrets, setShouldDeleteSecrets] = useToggle(false);diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationAuditLogsSection.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationAuditLogsSection.tsxindex fc0e31245b..13ba351259 100644--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationAuditLogsSection.tsx+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/components/IntegrationAuditLogsSection.tsx@@ -30,7 +30,7 @@ export const IntegrationAuditLogsSection = ({ integration }: Props) => {</p></div><LogsSection- refetchInterval={4000}+ refetchInterval={15_000}showFilters={false}project={currentProject}presets={{diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncAuditLogsSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncAuditLogsSection.tsxindex 74011228b2..70393e97fe 100644--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncAuditLogsSection.tsx+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncAuditLogsSection.tsx@@ -36,7 +36,7 @@ export const SecretSyncAuditLogsSection = ({ secretSync }: Props) => {</div>{subscription.auditLogs ? (<LogsSection- refetchInterval={4000}+ refetchInterval={15_000}showFilters={false}project={currentProject}presets={{