Skip to content

Commit

Permalink
fix: added regex in formulautil
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavKumar-sf committed Nov 11, 2024
1 parent 055ba08 commit 17c21af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/migration/dataraptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class DataRaptorMigrationTool extends BaseMigrationTool implements Migrat

// Query all the functionMetadata with all required fields
const functionDefinitionMetadata = await getAllFunctionMetadata(this.namespace, this.connection);
populateRegexForFunctionMetadata(functionDefinitionMetadata);
// Start transforming each dataRaptor
DebugTimer.getInstance().lap('Transform Data Raptor');
let done = 0;
Expand Down
8 changes: 7 additions & 1 deletion src/migration/omniscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ import { NetUtils, RequestMethod } from '../utils/net';
import { Connection, Messages, Logger } from '@salesforce/core';
import { UX } from '@salesforce/command';
import { OSAssessmentInfo, OmniAssessmentInfo, IPAssessmentInfo } from '../../src/utils';
import { getAllFunctionMetadata, getReplacedString } from '../utils/formula/FormulaUtil';
import {
getAllFunctionMetadata,
getReplacedString,
populateRegexForFunctionMetadata,
} from '../utils/formula/FormulaUtil';
import { StringVal } from '../utils/StringValue/stringval';

export class OmniScriptMigrationTool extends BaseMigrationTool implements MigrationTool {
Expand Down Expand Up @@ -387,6 +391,8 @@ export class OmniScriptMigrationTool extends BaseMigrationTool implements Migrat
// Get All Records from OmniScript__c (IP & OS Parent Records)
const omniscripts = await this.getAllOmniScripts();
const functionDefinitionMetadata = await getAllFunctionMetadata(this.namespace, this.connection);
populateRegexForFunctionMetadata(functionDefinitionMetadata);

const duplicatedNames = new Set<string>();

// Variables to be returned After Migration
Expand Down

0 comments on commit 17c21af

Please sign in to comment.