🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: Increase admin access webhook dedupe window to 24 hours (#13414)
Max Deichmann645ad5b343c7
diff --git a/web/src/__tests__/server/async/admin-access-webhook.servertest.ts b/web/src/__tests__/server/async/admin-access-webhook.servertest.tsindex 04804040d9..980fa33810 100644--- a/web/src/__tests__/server/async/admin-access-webhook.servertest.ts+++ b/web/src/__tests__/server/async/admin-access-webhook.servertest.ts@@ -81,7 +81,7 @@ describe("sendAdminAccessWebhook", () => {});});- it("should dedupe repeated sends within 5 minutes for same email/project/org", async () => {+ it("should dedupe repeated sends within 24 hours for same email/project/org", async () => {vi.useFakeTimers();vi.setSystemTime(new Date("2026-02-19T19:39:37.000Z"));(env as any).LANGFUSE_ADMIN_ACCESS_WEBHOOK = "https://example.com/hook";@@ -119,7 +119,7 @@ describe("sendAdminAccessWebhook", () => {orgId: "org-1",});- vi.setSystemTime(new Date("2026-02-19T19:44:38.000Z"));+ vi.setSystemTime(new Date("2026-02-20T19:39:38.000Z"));await sendAdminAccessWebhook({email: "[email protected]",diff --git a/web/src/server/adminAccessWebhook.ts b/web/src/server/adminAccessWebhook.tsindex 30eb674d98..826b4e85e2 100644--- a/web/src/server/adminAccessWebhook.ts+++ b/web/src/server/adminAccessWebhook.ts@@ -9,7 +9,7 @@ type AdminAccessWebhookPayload = {region: string;};-const DEDUPE_WINDOW_MS = 5 * 60_000;+const DEDUPE_WINDOW_MS = 24 * 60 * 60_000;const lastWebhookByKey = new Map<string, number>();export const resetAdminAccessWebhookCacheForTests = () => {