Skip to content

Commit ef0d5b5

Browse files
author
kumar-ankita
committed
resolving comments
1 parent 789ba0b commit ef0d5b5

File tree

8 files changed

+53
-76
lines changed

8 files changed

+53
-76
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,11 @@ OPTIONS
5959
-a, --allversions migrate all versions and not
6060
and not just the active ones.
6161
62+
--relatedobjects=relatedobjects Please select the type of components to
63+
migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types.
64+
6265
```
66+
67+
Terms:
68+
Notwithstanding anything stated in the terms and conditions agreed between Salesforce (‘SFDC’) and you (‘Customer’), the use of the OmniStudio Migration Tool (‘Tool’) is designed to facilitate the migration and it’s going to modify your custom code and by deploying and using the Tool you hereby provide your consent to automate the migration process and enable a smooth transition. Customer shall access and use the Tool only as permitted to the Customer and shall not compromise, break or circumvent any technical processes or security measures associated with the services provided by SFDC.
69+
The Customer agrees to hold harmless, indemnify, and defend SFDC, and its officers, directors, agents, employees, licensees, successors and assigns (collectively, the “Indemnified Parties”) against any and all damages, penalties, losses, liabilities, judgments, settlements, awards, costs, and expenses (including reasonable attorneys’ fees and expenses) to the extent arising out of or in connection with any claims related to the Customers use of the Tool or any willful misconduct, fraud or grossly negligent acts or omissions by the Customer.

command-snapshot.json

Lines changed: 25 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,26 @@
11
[
2-
{
3-
"command": "basecommand",
4-
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
5-
"flags": [
6-
"apiversion",
7-
"json",
8-
"loglevel",
9-
"targetusername"
10-
],
11-
"alias": []
12-
},
13-
{
14-
"command": "omnistudio:migration:assess",
15-
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
16-
"flags": [
17-
"allversions",
18-
"apiversion",
19-
"json",
20-
"loglevel",
21-
"namespace",
22-
"only",
23-
"targetusername"
24-
],
25-
"alias": []
26-
},
27-
{
28-
"command": "omnistudio:migration:info",
29-
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
30-
"flags": [
31-
"allversions",
32-
"apiversion",
33-
"json",
34-
"loglevel",
35-
"name",
36-
"targetdevhubusername",
37-
"targetusername"
38-
],
39-
"alias": []
40-
},
41-
{
42-
"command": "omnistudio:migration:migrate",
43-
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
44-
"flags": [
45-
"allversions",
46-
"apiversion",
47-
"json",
48-
"loglevel",
49-
"namespace",
50-
"only",
51-
"targetusername"
52-
],
53-
"alias": []
54-
}
55-
]
2+
{
3+
"command": "basecommand",
4+
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
5+
"flags": ["apiversion", "json", "loglevel", "targetusername"],
6+
"alias": []
7+
},
8+
{
9+
"command": "omnistudio:migration:assess",
10+
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
11+
"flags": ["allversions", "apiversion", "json", "loglevel", "namespace", "only", "targetusername"],
12+
"alias": []
13+
},
14+
{
15+
"command": "omnistudio:migration:info",
16+
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
17+
"flags": ["allversions", "apiversion", "json", "loglevel", "name", "targetdevhubusername", "targetusername"],
18+
"alias": []
19+
},
20+
{
21+
"command": "omnistudio:migration:migrate",
22+
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
23+
"flags": ["allversions", "apiversion", "json", "loglevel", "namespace", "only", "relatedobjects", "targetusername"],
24+
"alias": []
25+
}
26+
]

messages/assess.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
"allVersionsDescription": "Migrate all versions of a component",
3030
"changeMessage": " %s will be changed from %s to %s",
3131
"angularOSWarning": " Angular OmniScript will not be migrated, please convert this to LWC based Omniscript",
32-
"apexLwc": "Please select the type of components to migrate: 'apex' for server-side logic, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
32+
"apexLwc": "Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
3333
}

messages/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"sfdx omnistudio:migration:info --name myname --targetusername [email protected]"
99
],
1010
"allVersionsDescription": "Migrate all versions of a component",
11-
"apexLwc": "Please select the type of components to migrate: 'apex' for server-side logic, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
11+
"apexLwc": "Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
1212
}

messages/migrate.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=dr",
55
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=ip",
66
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=os",
7-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=fc"
7+
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=fc",
8+
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE -r apex,lwc",
9+
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE -r apex",
10+
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE -r lwc"
811
],
912
"commandDescription": "print a greeting and your org IDs",
1013
"namespaceFlagDescription": "The namespaced of the package",
@@ -26,5 +29,5 @@
2629
"errorWhileUploadingCard": "An error ocurred while uploading Card: ",
2730
"errorWhileCreatingElements": "An error ocurred while saving OmniScript elements: ",
2831
"allVersionsDescription": "Migrate all versions of a component",
29-
"apexLwc": "Please select the type of components to migrate: 'apex' for server-side logic, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
32+
"apexLwc": "Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
3033
}

src/commands/omnistudio/migration/migrate.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,10 @@ export default class Migrate extends OmniStudioBaseCommand {
5050
description: messages.getMessage('allVersionsDescription'),
5151
required: false,
5252
}),
53-
relatedObjects: flags.string({
53+
relatedobjects: flags.string({
5454
char: 'r',
5555
description: messages.getMessage('apexLwc'),
5656
}),
57-
// lwc: flags.boolean({
58-
// char: 'l',
59-
// description: 'Include LWC migration in the process. User consent is required.',
60-
// }),
6157
};
6258

6359
// eslint-disable-next-line @typescript-eslint/no-explicit-any

src/migration/related/ApexMigration.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ export class ApexMigration extends BaseRelatedObjectMigration {
4141
public processObjectType(): string {
4242
return 'apex';
4343
}
44-
public identifyObjects(migrationResults: MigrationResult[]): Promise<JSON[]> {
45-
throw new Error('Method not implemented.');
46-
}
47-
public migrateRelatedObjects(migrationResults: MigrationResult[], migrationCandidates: JSON[]): ApexAssessmentInfo[] {
48-
return this.migrate();
49-
}
44+
// public identifyObjects(migrationResults: MigrationResult[]): Promise<JSON[]> {
45+
// throw new Error('Method not implemented.');
46+
// }
47+
// public migrateRelatedObjects(migrationResults: MigrationResult[], migrationCandidates: JSON[]): ApexAssessmentInfo[] {
48+
// return this.migrate();
49+
// }
5050
public migrate(): ApexAssessmentInfo[] {
5151
const pwd = shell.pwd();
5252
shell.cd(this.projectPath);

src/migration/related/LwcMigration.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export class LwcMigration extends BaseRelatedObjectMigration {
1616
public processObjectType(): string {
1717
return 'lwc';
1818
}
19-
public identifyObjects(migrationResults: MigrationResult[]): Promise<JSON[]> {
20-
this.assessment();
21-
throw new Error('Method not implemented.');
22-
}
23-
public migrateRelatedObjects(migrationResults: MigrationResult[], migrationCandidates: JSON[]): string[] {
24-
return this.mapToName(this.migrate());
25-
}
19+
// public identifyObjects(migrationResults: MigrationResult[]): Promise<JSON[]> {
20+
// this.assessment();
21+
// throw new Error('Method not implemented.');
22+
// }
23+
// public migrateRelatedObjects(migrationResults: MigrationResult[], migrationCandidates: JSON[]): string[] {
24+
// return this.mapToName(this.migrate());
25+
// }
2626
public assessment(): LWCAssessmentInfo[] {
2727
const type = 'assessment';
2828
const pwd = shell.pwd();

0 commit comments

Comments
 (0)