Skip to content

Commit

Permalink
feat: updated filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavKumar-sf committed Sep 25, 2024
1 parent a132eca commit 794d819
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/migration/related/ApexMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion src/migration/related/LwcMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/resultsbuilder/assessmentReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export class AssessmentReporter {
public static async generate(result: AssessmentInfo, instanceUrl: string): Promise<void> {
let htmlBody = '';

htmlBody += '<br />' + this.generateLwcAssesment(result.lwcAssessmentInfos);
htmlBody += '<br />' + this.generateApexAssesment(result.apexAssessmentInfos);
htmlBody += '<br />' + this.generateLwcAssesment(result.lwcAssessmentInfos);

const doc = this.generateDocument(htmlBody);
const fileUrl = process.cwd() + '/assessmentresults.html';
Expand Down

0 comments on commit 794d819

Please sign in to comment.