INFRA-3970 | Dhruv | cleanup

This commit is contained in:
dhruvjoshi
2024-11-13 20:02:25 +05:30
parent 600d1b35ca
commit a67d5a88bf
2 changed files with 2 additions and 4 deletions

View File

@@ -204,9 +204,8 @@ const getBreachedLimits = (
manifestEnv,
);
const path = getBreachPath(manifestPath, key, i, hasHashedIdentifier);
console.log('path', path);
const identifier = hasHashedIdentifier ? getHashedIdentifier(obj, key) : i;
console.log('identifier', identifier);
console.log(`path:${path}, limitPath:${limitPath} key:${key} identifier:${identifier}`);
if (isBreach && !_.isEqual(obj, safeArrayAccess(currentPreManifestObj, identifier))) {
const diffObj = {
op: getOp(currentPreManifestObj),
@@ -229,7 +228,7 @@ const getBreachedLimits = (
);
const path = `${manifestPath}/${key}`;
if (isBreach && currentManifestObj !== currentPreManifestObj) {
console.log(`${path} is changed`);
console.log(`path:${path}, limitPath:${limitPath} key:${key}`);
const obj = {
op: getOp(currentPreManifestObj),
path: path,

View File

@@ -1,5 +1,4 @@
export const getHashedIdentifier = (obj, key: string): string => {
console.log(obj, key, ' getHashedIdentifier');
switch (key) {
case 'allowEndpoint':
return btoa(`${obj?.host}:${obj?.port}`);