Skip to content

Commit ce95d7d

Browse files
authored
Code Delivery 1.16.1
* Disable Extensive Logging & Repetitions on Git Based Deploy (#523) * Fixes local compilation #525 (#532)
1 parent 848e68b commit ce95d7d

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

lib/datapacktypes/vlocitycard.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,11 @@ VlocityCard.prototype.onDeployFinish = async function(jobInfo) {
216216
VlocityCard.prototype.compileFlexCardsLwc = async function (flexCardID,jobInfo,flexCardsCompiler) {
217217
VlocityUtils.report('Compiling Flexcard with FlexCard ID: ',flexCardID);
218218
try {
219-
let tempSfdxFolder = path.join(jobInfo.tempFolder, 'tempDeployLWC', 'salesforce_sfdx/lwc');
219+
const isInsidePackage = !(this.vlocity.PackageVersion === 'DeveloperOrg');
220+
const tempSfdxFolder = path.join(jobInfo.tempFolder, 'tempDeployLWC', 'salesforce_sfdx/lwc');
220221

221222
const fCCompiler = new flexCardsCompiler(this.vlocity.namespace, this.vlocity.jsForceConnection,
222-
this.vlocity.jsForceConnection.instanceUrl, false);
223+
this.vlocity.jsForceConnection.instanceUrl, isInsidePackage);
223224
await fCCompiler.compileMetadataWithId(flexCardID, tempSfdxFolder);
224225
jobInfo.deployGeneratedLwc = true;
225226
}

lib/utilityservice.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,10 @@ UtilityService.prototype.getGitDiffsFromOrgToLocal = async function(jobInfo) {
665665

666666
if (hashKey) {
667667
if (jobInfo.overrideOrgCommit){
668-
VlocityUtils.success('Override Git Hash', hashKey);
668+
VlocityUtils.verbose('Override Git Hash', hashKey);
669669
}
670670
else{
671-
VlocityUtils.success('Git Hash', hashKey);
671+
VlocityUtils.verbose('Git Hash', hashKey);
672672
}
673673

674674
if (jobInfo.expansionPath) {
@@ -677,7 +677,9 @@ UtilityService.prototype.getGitDiffsFromOrgToLocal = async function(jobInfo) {
677677
var gitChanges = childProcess.execSync(`cd ${jobInfo.projectPath}/../ && git diff --stat ${hashKey} --raw --no-renames -- ${jobInfo.projectPath}`, { encoding: 'utf8', maxBuffer: 1024*1024*20 });
678678
}
679679

680-
VlocityUtils.success('Git Differences', gitChanges);
680+
if (!jobInfo.isRetry) {
681+
VlocityUtils.verbose('Git Differences', gitChanges);
682+
}
681683

682684
var allPotentialFiles = [];
683685
var deletedParentFiles = [];
@@ -689,7 +691,9 @@ UtilityService.prototype.getGitDiffsFromOrgToLocal = async function(jobInfo) {
689691

690692
var gitNewFiles = childProcess.execSync(`cd ${jobInfo.projectPath} && git ls-files --others --exclude-standard`, { encoding: 'utf8' });
691693

692-
VlocityUtils.verbose('New Files', gitNewFiles);
694+
if (!jobInfo.isRetry) {
695+
VlocityUtils.verbose('New Files', gitNewFiles);
696+
}
693697

694698
if (gitNewFiles) {
695699
for (var newfile of gitNewFiles.split('\n')) {
@@ -728,7 +732,9 @@ UtilityService.prototype.getGitDiffsFromOrgToLocal = async function(jobInfo) {
728732
}
729733
}
730734

731-
VlocityUtils.success('Git Check', `Found Changes for ${changedDataPacks.length} DataPacks`, changedDataPacks);
735+
if (!jobInfo.isRetry) {
736+
VlocityUtils.verbose('Git Check', `Found Changes for ${changedDataPacks.length} DataPacks`, changedDataPacks);
737+
}
732738

733739
return changedDataPacks;
734740
} else {

0 commit comments

Comments
 (0)