Skip to content

Commit

Permalink
Code Delivery 1.16.1
Browse files Browse the repository at this point in the history
* Disable Extensive Logging & Repetitions on Git Based Deploy (#523)
* Fixes local compilation #525 (#532)
  • Loading branch information
manas-sf authored Nov 21, 2022
1 parent 848e68b commit ce95d7d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
5 changes: 3 additions & 2 deletions lib/datapacktypes/vlocitycard.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,11 @@ VlocityCard.prototype.onDeployFinish = async function(jobInfo) {
VlocityCard.prototype.compileFlexCardsLwc = async function (flexCardID,jobInfo,flexCardsCompiler) {
VlocityUtils.report('Compiling Flexcard with FlexCard ID: ',flexCardID);
try {
let tempSfdxFolder = path.join(jobInfo.tempFolder, 'tempDeployLWC', 'salesforce_sfdx/lwc');
const isInsidePackage = !(this.vlocity.PackageVersion === 'DeveloperOrg');
const tempSfdxFolder = path.join(jobInfo.tempFolder, 'tempDeployLWC', 'salesforce_sfdx/lwc');

const fCCompiler = new flexCardsCompiler(this.vlocity.namespace, this.vlocity.jsForceConnection,
this.vlocity.jsForceConnection.instanceUrl, false);
this.vlocity.jsForceConnection.instanceUrl, isInsidePackage);
await fCCompiler.compileMetadataWithId(flexCardID, tempSfdxFolder);
jobInfo.deployGeneratedLwc = true;
}
Expand Down
16 changes: 11 additions & 5 deletions lib/utilityservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,10 @@ UtilityService.prototype.getGitDiffsFromOrgToLocal = async function(jobInfo) {

if (hashKey) {
if (jobInfo.overrideOrgCommit){
VlocityUtils.success('Override Git Hash', hashKey);
VlocityUtils.verbose('Override Git Hash', hashKey);
}
else{
VlocityUtils.success('Git Hash', hashKey);
VlocityUtils.verbose('Git Hash', hashKey);
}

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

VlocityUtils.success('Git Differences', gitChanges);
if (!jobInfo.isRetry) {
VlocityUtils.verbose('Git Differences', gitChanges);
}

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

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

VlocityUtils.verbose('New Files', gitNewFiles);
if (!jobInfo.isRetry) {
VlocityUtils.verbose('New Files', gitNewFiles);
}

if (gitNewFiles) {
for (var newfile of gitNewFiles.split('\n')) {
Expand Down Expand Up @@ -728,7 +732,9 @@ UtilityService.prototype.getGitDiffsFromOrgToLocal = async function(jobInfo) {
}
}

VlocityUtils.success('Git Check', `Found Changes for ${changedDataPacks.length} DataPacks`, changedDataPacks);
if (!jobInfo.isRetry) {
VlocityUtils.verbose('Git Check', `Found Changes for ${changedDataPacks.length} DataPacks`, changedDataPacks);
}

return changedDataPacks;
} else {
Expand Down

0 comments on commit ce95d7d

Please sign in to comment.