Skip to content

Commit 6940488

Browse files
committed
Merge branch 'prerelease/develop-ga' into auto-deploy
2 parents d7ece35 + f792ecb commit 6940488

19 files changed

+3566
-121
lines changed

messages/assess.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
"processingOmniScript": "Processing OmniScript: %s",
4747
"processingGlobalAutoNumber": "Processing GlobalAutoNumber: %s",
4848
"foundDataRaptorsToAssess": "Found %s DataRaptors to assess",
49-
"foundOmniScriptsToAssess": "Found %s OmniScripts and Integration Procedures to assess",
49+
"foundOmniScriptsToAssess": "Found %s %s to assess",
5050
"foundGlobalAutoNumbersToAssess": "Found %s GlobalAutoNumbers to assess",
5151
"startingDataRaptorAssessment": "Starting DataRaptor assessment",
52-
"startingOmniScriptAssessment": "Starting OmniScript assessment",
52+
"startingOmniScriptAssessment": "Starting %s assessment",
5353
"startingGlobalAutoNumberAssessment": "Starting GlobalAutoNumber assessment",
5454
"allVersionsInfo": "allVersions : %s",
5555
"assessmentInitialization": "Assessment Initialization: Using namespace: %s",
@@ -65,10 +65,10 @@
6565
"globalAutoNumberAssessment": "GlobalAutoNumber Assessment",
6666
"assessedGlobalAutoNumbersCount": "Assessed %s GlobalAutoNumbers",
6767
"globalAutoNumberAssessmentCompleted": "The assessment for Global Auto Number is complete.",
68-
"omniScriptAssessment": "OmniScript and Integration Procedure Assessment",
68+
"omniScriptAssessment": "%s Assessment",
6969
"assessedOmniScriptsCount": "Assessed %s OmniScripts",
7070
"assessedIntegrationProceduresCount": "Assessed %s Integration Procedures",
71-
"omniScriptAssessmentCompleted": "OmniScript and Integration Procedure assessment completed",
71+
"omniScriptAssessmentCompleted": "%s assessment completed",
7272
"startingFlexCardAssessment": "Starting FlexCard assessment",
7373
"foundFlexCardsToAssess": "Found %s FlexCards to assess",
7474
"startingApexAssessment": "Starting Apex assessment in project path: %s",

messages/migrate.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"formulaSyntaxError": "There was some problem while updating the formula syntax, please check the all the formula's syntax once : %s",
7171
"foundDataRaptorsToMigrate": "Found %s DataRaptors to migrate",
7272
"foundFlexCardsToMigrate": "Found %s FlexCards to migrate",
73-
"foundOmniScriptsToMigrate": "Found %s OmniScripts and Integration Procedures to migrate",
73+
"foundOmniScriptsToMigrate": "Found %s %s to migrate",
7474
"foundGlobalAutoNumbersToMigrate": "Found %s GlobalAutoNumbers to migrate",
7575
"allVersionsInfo": "allVersions : %s",
7676
"migrationInitialization": "Migration Initialization: Using namespace: %s",
@@ -150,7 +150,6 @@
150150
"foundGlobalAutoNumbersToAssess": "Found %s Global Auto Numbers to assess",
151151
"unexpectedError": "An unexpected error occurred during processing",
152152
"migrationValidationFailed": "Post Migration validation failed.",
153-
"incompleteMigrationDetected": "Incomplete migration detected. Source objects: %s, Target objects: %s.",
154153
"experienceSiteMetadataConsent": "The consent for exp site is %s",
155154
"experienceSiteConsentNotProvidedWarning": "Consent for experience sites is not provided. Experience sites will not be processed",
156155
"relatedObjectsToProcessAfterExpSitesRemoval": "Objects to process after removing expsite are",
@@ -209,7 +208,17 @@
209208
"npmConfigFileCreated": "Npm config file created",
210209
"authKeyEnvVarNotSet": "OMA_AUTH_KEY environment variable is not set, LWCs will not be deployed",
211210
"experienceSiteException": "Exception occurred while processing experience sites",
211+
"reservedKeysFoundInPropertySet": "Reserved keys found in any of output response transformation fields: %s.",
212+
"incompleteMigrationDetected": "We couldn't complete the migration process",
213+
"nameMappingUndefined": "Name Mapping is undefined",
214+
"errorComponentMapping": "Error during component pre-processing: %s",
215+
"startingComponentPreProcessing": "Pre-processing components for name mapping",
216+
"completeComponentMappingMessage": "Registered name mappings for %s components",
217+
"componentMappingNotFound": "No registry mapping found for %s component: %s, using fallback cleaning",
218+
"flexCardWithAngularOmniScriptWarning": "FlexCard has dependencies on Angular OmniScript(s) which are not migrated. Please convert OmniScript(s) to LWC before migrating this FlexCard.",
219+
"angularOmniScriptDependencyWarning": "Element '%s' references Angular OmniScript '%s' which will not be migrated. Consider converting the referenced OmniScript to LWC",
220+
"skipFlexcardAngularOmniScriptDependencyWarning": "Skipping FlexCard %s due to Angular OmniScript dependencies",
221+
"flexCardMigrationProcessingMessage": "Processing %s FlexCards for migration (%s skipped due to Angular dependencies)",
212222
"noMetadataToDeploy": "No metadata to deploy",
213-
"manifestDeployementStarted": "Manifest deployment started with id: %s",
214-
"reservedKeysFoundInPropertySet": "Reserved keys found in any of output response transformation fields: %s."
223+
"manifestDeployementStarted": "Manifest deployment started with id: %s"
215224
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-omnistudio-migration-tool",
33
"description": "This SFDX plugin migrates FlexCard, OmniScript, DataRaptor, and Integration Procedure custom objects to standard objects.",
4-
"version": "2.0.0-rc.12",
4+
"version": "2.0.0-rc.13",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

src/commands/omnistudio/migration/assess.ts

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ export default class Assess extends OmniStudioBaseCommand {
212212
// If no specific component is specified, assess all components
213213
await this.assessDataRaptors(assesmentInfo, namespace, conn);
214214
await this.assessFlexCards(assesmentInfo, namespace, conn, allVersions);
215-
await this.assessOmniScripts(assesmentInfo, namespace, conn, allVersions, OmniScriptExportType.All);
215+
await this.assessOmniScripts(assesmentInfo, namespace, conn, allVersions, OmniScriptExportType.OS);
216+
await this.assessOmniScripts(assesmentInfo, namespace, conn, allVersions, OmniScriptExportType.IP);
216217
await this.assessGlobalAutoNumbers(assesmentInfo, namespace, conn);
217218
return;
218219
}
@@ -267,21 +268,39 @@ export default class Assess extends OmniStudioBaseCommand {
267268
allVersions: boolean,
268269
exportType: OmniScriptExportType
269270
): Promise<void> {
270-
Logger.logVerbose(messages.getMessage('omniScriptAssessment'));
271+
const exportComponentType = exportType === OmniScriptExportType.IP ? 'Integration Procedures' : 'Omniscripts';
272+
Logger.logVerbose(messages.getMessage('omniScriptAssessment', [exportComponentType]));
271273
const osMigrator = new OmniScriptMigrationTool(exportType, namespace, conn, Logger, messages, this.ux, allVersions);
272-
assesmentInfo.omniAssessmentInfo = await osMigrator.assess(
274+
const newOmniAssessmentInfo = await osMigrator.assess(
273275
assesmentInfo.dataRaptorAssessmentInfos,
274276
assesmentInfo.flexCardAssessmentInfos
275277
);
276-
Logger.logVerbose(
277-
messages.getMessage('assessedOmniScriptsCount', [assesmentInfo.omniAssessmentInfo.osAssessmentInfos.length])
278-
);
279-
Logger.logVerbose(
280-
messages.getMessage('assessedIntegrationProceduresCount', [
281-
assesmentInfo.omniAssessmentInfo.ipAssessmentInfos.length,
282-
])
283-
);
284-
Logger.log(messages.getMessage('omniScriptAssessmentCompleted'));
278+
279+
// Initialize omniAssessmentInfo if it doesn't exist
280+
if (!assesmentInfo.omniAssessmentInfo) {
281+
assesmentInfo.omniAssessmentInfo = {
282+
osAssessmentInfos: [],
283+
ipAssessmentInfos: [],
284+
};
285+
}
286+
287+
// Merge results instead of overwriting
288+
if (exportType === OmniScriptExportType.OS) {
289+
// For OmniScript assessment, update osAssessmentInfos
290+
assesmentInfo.omniAssessmentInfo.osAssessmentInfos = newOmniAssessmentInfo.osAssessmentInfos;
291+
Logger.logVerbose(
292+
messages.getMessage('assessedOmniScriptsCount', [assesmentInfo.omniAssessmentInfo.osAssessmentInfos.length])
293+
);
294+
} else {
295+
// For Integration Procedure assessment, update ipAssessmentInfos
296+
assesmentInfo.omniAssessmentInfo.ipAssessmentInfos = newOmniAssessmentInfo.ipAssessmentInfos;
297+
Logger.logVerbose(
298+
messages.getMessage('assessedIntegrationProceduresCount', [
299+
assesmentInfo.omniAssessmentInfo.ipAssessmentInfos.length,
300+
])
301+
);
302+
}
303+
Logger.log(messages.getMessage('omniScriptAssessmentCompleted', [exportComponentType]));
285304
}
286305

287306
private async assessGlobalAutoNumbers(

0 commit comments

Comments
 (0)