Skip to content

Commit cff0e4b

Browse files
authored
Merge pull request #3774 from akto-api-security/feature/enabled-auto-refresh
disabling auto refresh for agoda, great learning , Tricentis
2 parents ffc01a7 + 2b6b0b1 commit cff0e4b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/Dashboard.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useEffect, useState, useRef} from "react";
66
import { Frame, Toast, VerticalStack, Banner, Button, Text } from "@shopify/polaris";
77
import "./dashboard.css"
88
import func from "@/util/func"
9+
import values from "@/util/values";
910
import transform from "./testing/transform";
1011
import PersistStore from "../../main/PersistStore";
1112
import LocalStore, { localStorePersistSync } from "../../main/LocalStorageStore";
@@ -178,7 +179,7 @@ function Dashboard() {
178179
}
179180

180181
const refreshFunc = () => {
181-
if (window.USER_NAME.includes("akto.io")){
182+
if (values.DISABLED_AUTO_ACCOUNT_REFRESH.includes(window.ACTIVE_ACCOUNT)){
182183
return;
183184
}
184185
if(document.visibilityState === 'hidden'){

apps/dashboard/web/polaris_web/web/src/util/values.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,6 @@ const ranges = [
8080
];
8181

8282
const skipList = ["GENERIC", "TRUE", "FALSE","INTEGER_32", "INTEGER_64", "NULL", "OTHER", "DICT", "FLOAT"]
83+
const DISABLED_AUTO_ACCOUNT_REFRESH = [1747820267,1731351930,1736798101]
8384

84-
export default { today, yesterday, ranges, yesterdayDayEnd, todayDayEnd , skipList};
85+
export default { today, yesterday, ranges, yesterdayDayEnd, todayDayEnd , skipList, DISABLED_AUTO_ACCOUNT_REFRESH};

0 commit comments

Comments
 (0)