INFRA-3970 | Dhruv | cleanup
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user