Skip to content

Commit d1ca808

Browse files
refactor(lwc): comment out LWC migration, assessment and reporting code
1 parent 4310432 commit d1ca808

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/commands/omnistudio/migration/assess.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export default class Assess extends OmniStudioBaseCommand {
6363
Logger.initialiseLogger(this.ux, this.logger);
6464
const projectDirectory = OmnistudioRelatedObjectMigrationFacade.intializeProject();
6565
conn.setApiVersion(apiVersion);
66+
// @ts-expect-error - LWC functionality temporarily disabled
6667
const lwcparser = new LwcMigration(projectDirectory, namespace, this.org);
6768
const apexMigrator = new ApexMigration(projectDirectory, namespace, this.org);
6869
const osMigrator = new OmniScriptMigrationTool(

src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { LwcMigration } from './LwcMigration';
2323
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
2424
// or any library that is using the messages framework can also be loaded this way.
2525
// const messages = Messages.loadMessages('@salesforce/plugin-omnistudio-related-object-migration-tool', 'migrate');
26+
// @ts-expect-error - LWC functionality temporarily disabled
2627
const LWCTYPE = 'LightningComponentBundle';
2728
const APEXCLASS = 'Apexclass';
2829

@@ -88,8 +89,10 @@ export default class OmnistudioRelatedObjectMigrationFacade {
8889
debugTimer.start();
8990
// Initialize migration tools based on the relatedObjects parameter
9091
const apexMigrator = this.createApexClassMigrationTool(projectDirectory, targetApexNamespace);
92+
// @ts-expect-error - LWC functionality temporarily disabled
9193
const lwcMigrator = this.createLWCComponentMigrationTool(this.namespace, projectDirectory);
9294
let apexAssessmentInfos: ApexAssessmentInfo[] = [];
95+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
9396
const lwcAssessmentInfos: LWCAssessmentInfo[] = [];
9497
// Proceed with migration logic
9598
try {

src/utils/resultsbuilder/assessmentReporter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class AssessmentReporter {
2929
const integrationProcedureAssessmentFilePath = basePath + '/integration_procedure_assessment.html';
3030
const dataMapperAssessmentFilePath = basePath + '/datamapper_assessment.html';
3131
const apexAssessmentFilePath = basePath + '/apex_assessment.html';
32+
// @ts-expect-error - LWC functionality temporarily disabled
3233
const lwcAssessmentFilePath = basePath + '/lwc_assessment.html';
3334
const orgDetails: ReportHeaderFormat[] = this.formattedOrgDetails(omnistudioOrgDetails);
3435

@@ -186,6 +187,7 @@ export class AssessmentReporter {
186187
const doc = this.generateDocument(htmlBody);
187188
fs.writeFileSync(filePath, doc);
188189
}
190+
// @ts-expect-error - LWC functionality temporarily disabled
189191
private static generateLwcAssesment(lwcAssessmentInfos: LWCAssessmentInfo[]): string {
190192
let tableBody = '';
191193
tableBody += `

0 commit comments

Comments
 (0)