From bbe769a96135906f195dc36700726c994aa650e6 Mon Sep 17 00:00:00 2001
From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com>
Date: Thu, 22 Feb 2024 07:30:26 +0100
Subject: [PATCH] Increase SV migrate to 1000 & add billing page to Gamma
---
backend/src/services/project/project-queue.ts | 4 ++--
frontend/src/layouts/AppLayout/AppLayout.tsx | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/backend/src/services/project/project-queue.ts b/backend/src/services/project/project-queue.ts
index 3a76d9c65..616aa1aef 100644
--- a/backend/src/services/project/project-queue.ts
+++ b/backend/src/services/project/project-queue.ts
@@ -150,7 +150,7 @@ export const projectQueueFactory = ({
},
// Only get the latest 700 secret versions for each folder.
{
- limit: 700,
+ limit: 1000,
sort: [["createdAt", "desc"]]
}
);
@@ -161,7 +161,7 @@ export const projectQueueFactory = ({
},
{
// Get all the secret versions that are not the latest 700
- offset: 700
+ offset: 1000
}
);
folderSecretVersionIdsToDelete.push(...deletedSecretVersions.map((el) => el.id));
diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx
index 295369bc4..8957f6d91 100644
--- a/frontend/src/layouts/AppLayout/AppLayout.tsx
+++ b/frontend/src/layouts/AppLayout/AppLayout.tsx
@@ -605,7 +605,8 @@ export const AppLayout = ({ children }: LayoutProps) => {
- {window.location.origin.includes("https://app.infisical.com") && (
+ {(window.location.origin.includes("https://app.infisical.com") ||
+ window.location.origin.includes("https://gamma.infisical.com")) && (