diff --git a/src/migration/related/ApexMigration.ts b/src/migration/related/ApexMigration.ts index 59896f1..47af865 100644 --- a/src/migration/related/ApexMigration.ts +++ b/src/migration/related/ApexMigration.ts @@ -30,7 +30,7 @@ export class ApexMigration extends BaseRelatedObjectMigration implements Related private readonly callableInterface: InterfaceImplements; private readonly vlocityOpenInterface2: InterfaceImplements; private readonly vlocityOpenInterface: InterfaceImplements; - private updatedNamespace = this.namespace; + private updatedNamespace = 'omnistudio'; public constructor(projectPath: string, namespace: string, org: Org) { super(projectPath, namespace, org); this.callableInterface = new InterfaceImplements(CALLABLE, this.namespace); @@ -71,7 +71,7 @@ export class ApexMigration extends BaseRelatedObjectMigration implements Related if (file.ext !== '.cls') continue; try { const apexAssementInfo = this.processApexFile(file); - if (apexAssementInfo && apexAssementInfo.diff && apexAssementInfo.diff.length === 0) continue; + if (apexAssementInfo && apexAssementInfo.diff.length === 0) continue; fileAssessmentInfo.push(apexAssementInfo); } catch (err) { Logger.logger.error(`Error processing ${file.name}`); diff --git a/src/migration/related/LwcMigration.ts b/src/migration/related/LwcMigration.ts index 9dd18a6..6d9008b 100644 --- a/src/migration/related/LwcMigration.ts +++ b/src/migration/related/LwcMigration.ts @@ -59,7 +59,7 @@ export class LwcMigration extends BaseRelatedObjectMigration { const jsonData: LWCAssessmentInfo[] = []; fileMap.forEach((fileList, dir) => { const changeInfos: FileChangeInfo[] = []; - if (dir !== 'lwc') { + if (dir !== 'lwc' && !dir.endsWith('English') && !dir.includes('_')) { for (const file of fileList) { if (this.isValideFile(file.name)) { const processor = FileProcessorFactory.getFileProcessor(file.ext); diff --git a/src/utils/resultsbuilder/assessmentReporter.ts b/src/utils/resultsbuilder/assessmentReporter.ts index 027140d..9415e06 100644 --- a/src/utils/resultsbuilder/assessmentReporter.ts +++ b/src/utils/resultsbuilder/assessmentReporter.ts @@ -6,8 +6,8 @@ export class AssessmentReporter { public static async generate(result: AssessmentInfo, instanceUrl: string): Promise { let htmlBody = ''; - htmlBody += '
' + this.generateLwcAssesment(result.lwcAssessmentInfos); htmlBody += '
' + this.generateApexAssesment(result.apexAssessmentInfos); + htmlBody += '
' + this.generateLwcAssesment(result.lwcAssessmentInfos); const doc = this.generateDocument(htmlBody); const fileUrl = process.cwd() + '/assessmentresults.html';