Skip to content

Commit 26a0592

Browse files
Add Support for Only and RelatedObjects Flags in Assess Mode (#280)
1 parent 50c5805 commit 26a0592

File tree

12 files changed

+779
-146
lines changed

12 files changed

+779
-146
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,25 @@ sfdx plugins:install @salesforce/plugin-omnistudio-migration-tool
2020
// To migrate everything
2121
sfdx omnistudio:migration:migrate -u [email protected] --namespace=VLOCITY_PACKAGE_NAMESPACE
2222
23-
//to migrate specific components: FlexCards, DataMappers, Integration Procedures, or OmniScripts, add the following parameters:
23+
// To assess everything without migrating
24+
sfdx omnistudio:migration:assess -u [email protected] --namespace=VLOCITY_PACKAGE_NAMESPACE
25+
26+
// To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, or OmniScripts, add the following parameters:
2427
--only=dr
2528
--only=ip
2629
--only=os
2730
--only=fc
2831
29-
//to migrate all versions of the components and not just the active ones:
32+
// To migrate all versions of the components and not just the active ones:
3033
--allversions
34+
35+
// To assess specific related objects:
36+
--relatedobjects=apex // for Apex classes only
37+
--relatedobjects=lwc // for Lightning Web Components only
38+
--relatedobjects=apex,lwc // for both Apex and LWC
3139
```
3240

33-
5. An HTML page will be open in your default browser with the results of your migration job.
41+
5. An HTML page will be open in your default browser with the results of your migration/assessment job.
3442

3543
### Usage & parameters
3644

@@ -59,9 +67,13 @@ OPTIONS
5967
-a, --allversions migrate all versions and not
6068
and not just the active ones.
6169
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.
70+
--only=only specify components to migrate/assess:
71+
dr (DataRaptors), ip (Integration Procedures),
72+
os (OmniScripts), fc (FlexCards)
6473
74+
--relatedobjects=relatedobjects specify related objects to assess:
75+
'apex' for Apex classes, 'lwc' for Lightning
76+
Web Components, or 'apex,lwc' for both types
6577
```
6678

6779
> **Note:** LWC (Lightning Web Components) migration functionality is temporarily disabled in the current version. This includes LWC migration, assessment, and report generation features. These features will be re-enabled in a future release. Apex migration functionality remains fully available. The `--relatedobjects` flag accepts all values ('apex', 'lwc', 'apex,lwc'), but LWC-related operations will not be executed.

command-snapshot.json

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,56 @@
22
{
33
"command": "basecommand",
44
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
5-
"flags": ["apiversion", "json", "loglevel", "targetusername"],
5+
"flags": [
6+
"apiversion",
7+
"json",
8+
"loglevel",
9+
"targetusername"
10+
],
611
"alias": []
712
},
813
{
914
"command": "omnistudio:migration:assess",
1015
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
11-
"flags": ["allversions", "apiversion", "json", "loglevel", "namespace", "only", "targetusername"],
16+
"flags": [
17+
"allversions",
18+
"apiversion",
19+
"json",
20+
"loglevel",
21+
"namespace",
22+
"only",
23+
"targetusername",
24+
"relatedobjects"
25+
],
1226
"alias": []
1327
},
1428
{
1529
"command": "omnistudio:migration:info",
1630
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
17-
"flags": ["allversions", "apiversion", "json", "loglevel", "name", "targetdevhubusername", "targetusername"],
31+
"flags": [
32+
"allversions",
33+
"apiversion",
34+
"json",
35+
"loglevel",
36+
"name",
37+
"targetdevhubusername",
38+
"targetusername"
39+
],
1840
"alias": []
1941
},
2042
{
2143
"command": "omnistudio:migration:migrate",
2244
"plugin": "@salesforce/plugin-omnistudio-migration-tool",
23-
"flags": ["allversions", "apiversion", "json", "loglevel", "namespace", "only", "relatedobjects", "targetusername"],
45+
"flags": [
46+
"allversions",
47+
"apiversion",
48+
"json",
49+
"loglevel",
50+
"namespace",
51+
"only",
52+
"relatedobjects",
53+
"targetusername"
54+
],
2455
"alias": []
2556
}
26-
]
57+
]

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 Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
32+
"apexLwc": "Please select the type of components to assess: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
3333
}

0 commit comments

Comments
 (0)