Skip to content

Commit e72c577

Browse files
fix: updated logging
1 parent 21e18b5 commit e72c577

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

messages/assess.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"apexFileChangesIdentifiedNotApplied": "Changes identified for Apex class %s but not applied (assessment mode)",
111111
"apexFileHasMultipleInterfaces": "File %s has multiple interfaces including Callable, standardizing to System.Callable only",
112112
"apexFileImplementsVlocityOpenInterface2": "File %s implements VlocityOpenInterface2, replacing with System.Callable",
113+
"apexFileImplementsVlocityOpenInterface": "File %s implements VlocityOpenInterface, replacing with System.Callable",
113114
"errorParsingHtmlTemplate": "Error while parsing template",
114115
"errorParsingData": "Error while parsing data for template",
115116
"errorGeneratingHTML": "Error while generating HTML from template for %s with properties %s",

src/migration/related/ApexMigration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class ApexMigration extends BaseRelatedObjectMigration {
7474
Logger.logVerbose(assessMessages.getMessage('startingApexAssessment', [this.projectPath]));
7575
const pwd = shell.pwd();
7676
shell.cd(this.projectPath);
77-
sfProject.retrieve(APEXCLASS, this.org.getUsername(), this.projectPath);
77+
sfProject.retrieve(APEXCLASS, this.org.getUsername());
7878
Logger.info(assessMessages.getMessage('processingApexFilesForAssessment'));
7979
const apexAssessmentInfos = this.processApexFiles(this.projectPath, 'assessment');
8080
Logger.info(assessMessages.getMessage('successfullyProcessedApexFilesForAssessment', [apexAssessmentInfos.length]));

src/migration/related/LwcMigration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class LwcMigration extends BaseRelatedObjectMigration {
3333
const type = 'assessment';
3434
const pwd = shell.pwd();
3535
shell.cd(this.projectPath);
36-
sfProject.retrieve(LWCTYPE, this.org.getUsername(), this.projectPath);
36+
sfProject.retrieve(LWCTYPE, this.org.getUsername());
3737
Logger.info(assessMessages.getMessage('processingLwcsForAssessment'));
3838
const filesMap = this.processLwcFiles(this.projectPath);
3939
Logger.info(assessMessages.getMessage('successfullyProcessedLwcsForAssessment', [filesMap.size]));

src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class OmnistudioRelatedObjectMigrationFacade {
6565
// // sfProject.retrieve(LWCTYPE, this.org.getUsername());
6666
// }
6767
if (relatedObjects.includes(Constants.Apex)) {
68-
sfProject.retrieve(APEXCLASS, this.org.getUsername(), this.projectPath);
68+
sfProject.retrieve(APEXCLASS, this.org.getUsername());
6969
}
7070
shell.cd(pwd);
7171
}

src/utils/sfcli/project/sfProject.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Messages } from '@salesforce/core';
2+
import * as shell from 'shelljs';
23
import { Logger } from '../../logger';
34
import { cli } from '../../shell/cli';
45

@@ -13,8 +14,8 @@ export class sfProject {
1314
Logger.log(messages.getMessage('projectCreated', [name]));
1415
}
1516

16-
public static retrieve(metadataName: string, username: string, projectPath: string): void {
17-
Logger.log(messages.getMessage('retrievingMetadata', [metadataName, projectPath]));
17+
public static retrieve(metadataName: string, username: string): void {
18+
Logger.log(messages.getMessage('retrievingMetadata', [metadataName, shell.pwd().toString()]));
1819
const cmd = `sf project retrieve start --metadata ${metadataName} --target-org ${username}`;
1920
sfProject.executeCommand(cmd);
2021
Logger.log(messages.getMessage('metadataRetrieved', [metadataName, username]));

0 commit comments

Comments
 (0)