Skip to content

Commit

Permalink
test: temp logs
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed May 13, 2024
1 parent 7b8d5f3 commit 2b31f22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shared/localShadowRepo.ts
Expand Up @@ -546,6 +546,9 @@ const compareTypes = (
const resolvedAdded = resolveType(resolverAdded, [addedFile])[0];
const resolvedDeleted = resolveType(resolverDeleted, [deletedFile])[0];

console.log('resolvedAdded', resolvedAdded);
console.log('resolvedDeleted', resolvedDeleted);

if (!resolvedAdded || !resolvedDeleted) {
logger.warn(`Unable to resolve type for '${addedFile}' or '${deletedFile}'`);
continue;
Expand All @@ -556,6 +559,8 @@ const compareTypes = (
continue;
}

console.log('resolvedAdded.parent', resolvedAdded.parent);
console.log('resolvedDeleted.parent', resolvedDeleted.parent);
// Name of the parent needs to match, we do not want to allow moving a child to a different parent
// For example a custom field from one object to another (Broker__c to Account__c)
if (resolvedAdded.parent?.name !== resolvedDeleted.parent?.name) {
Expand Down

0 comments on commit 2b31f22

Please sign in to comment.