-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from Lightning-Flow-Scanner/fix/missing-fault…
…-path-rule-on-fast-update fix(RuleEngine): missing fault path rule modification resolved #134
- Loading branch information
Showing
12 changed files
with
481 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
persist-credentials: false | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 20.x | ||
node-version: 22.x | ||
registry-url: https://registry.npmjs.org | ||
scope: rubenhalman | ||
- name: Install Dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
# Setup .npmrc file to publish to npm | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 20.x | ||
node-version: 22.x | ||
registry-url: https://registry.npmjs.org | ||
scope: rubenhalman | ||
- name: Publish | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
# Setup .npmrc file to publish to npm | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 20.x | ||
node-version: 22.x | ||
registry-url: https://registry.npmjs.org | ||
scope: rubenhalman | ||
- name: Generate New Release Number | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- name: Install node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20.x | ||
node-version: 22.x | ||
- name: Install dependencies and link | ||
run: npm ci && npm link | ||
- name: Run tests | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
167 changes: 167 additions & 0 deletions
167
tests/jsonfiles/MissingFaultPath_BeforeSave_Bypass.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
[ | ||
{ | ||
"flow": { | ||
"flowVariables": ["choices", "constants", "dynamicChoiceSets", "formulas", "variables"], | ||
"flowResources": ["textTemplates", "stages"], | ||
"flowMetadata": [ | ||
"description", | ||
"apiVersion", | ||
"processMetadataValues", | ||
"processType", | ||
"interviewLabel", | ||
"label", | ||
"status", | ||
"runInMode", | ||
"startElementReference", | ||
"isTemplate", | ||
"fullName", | ||
"timeZoneSidKey", | ||
"isAdditionalPermissionRequiredToRun", | ||
"migratedFromWorkflowRuleName", | ||
"triggerOrder", | ||
"environments", | ||
"segment" | ||
], | ||
"flowNodes": [ | ||
"actionCalls", | ||
"apexPluginCalls", | ||
"assignments", | ||
"collectionProcessors", | ||
"decisions", | ||
"loops", | ||
"orchestratedStages", | ||
"recordCreates", | ||
"recordDeletes", | ||
"recordLookups", | ||
"recordUpdates", | ||
"recordRollbacks", | ||
"screens", | ||
"start", | ||
"steps", | ||
"subflows", | ||
"waits" | ||
], | ||
"name": "Test_Flow", | ||
"xmldata": { | ||
"@xmlns": "http://soap.sforce.com/2006/04/metadata", | ||
"apiVersion": "62.0", | ||
"environments": "Default", | ||
"interviewLabel": "Test Flow {!$Flow.CurrentDateTime}", | ||
"label": "Test Flow", | ||
"processMetadataValues": [ | ||
{ "name": "BuilderType", "value": { "stringValue": "LightningFlowBuilder" } }, | ||
{ "name": "CanvasMode", "value": { "stringValue": "AUTO_LAYOUT_CANVAS" } }, | ||
{ "name": "OriginBuilderType", "value": { "stringValue": "LightningFlowBuilder" } } | ||
], | ||
"processType": "AutoLaunchedFlow", | ||
"recordUpdates": { | ||
"description": "test", | ||
"name": "Update_triggering_records", | ||
"label": "Update triggering records", | ||
"locationX": "176", | ||
"locationY": "287", | ||
"inputAssignments": { "field": "Active__c", "value": { "stringValue": "Yes" } }, | ||
"inputReference": "$Record" | ||
}, | ||
"start": { | ||
"locationX": "50", | ||
"locationY": "0", | ||
"connector": { "targetReference": "Update_triggering_records" }, | ||
"object": "Account", | ||
"recordTriggerType": "Create", | ||
"triggerType": "RecordBeforeSave" | ||
}, | ||
"status": "Draft" | ||
}, | ||
"label": "Test Flow", | ||
"interviewLabel": "Test Flow {!$Flow.CurrentDateTime}", | ||
"processType": "AutoLaunchedFlow", | ||
"processMetadataValues": [ | ||
{ "name": "BuilderType", "value": { "stringValue": "LightningFlowBuilder" } }, | ||
{ "name": "CanvasMode", "value": { "stringValue": "AUTO_LAYOUT_CANVAS" } }, | ||
{ "name": "OriginBuilderType", "value": { "stringValue": "LightningFlowBuilder" } } | ||
], | ||
"start": { | ||
"locationX": "50", | ||
"locationY": "0", | ||
"connector": { "targetReference": "Update_triggering_records" }, | ||
"object": "Account", | ||
"recordTriggerType": "Create", | ||
"triggerType": "RecordBeforeSave" | ||
}, | ||
"status": "Draft", | ||
"type": "AutoLaunchedFlow", | ||
"elements": [ | ||
{ "element": "62.0", "subtype": "apiVersion", "metaType": "metadata" }, | ||
{ "element": "Default", "subtype": "environments", "metaType": "metadata" }, | ||
{ | ||
"element": "Test Flow {!$Flow.CurrentDateTime}", | ||
"subtype": "interviewLabel", | ||
"metaType": "metadata" | ||
}, | ||
{ "element": "Test Flow", "subtype": "label", "metaType": "metadata" }, | ||
{ | ||
"element": { "name": "BuilderType", "value": { "stringValue": "LightningFlowBuilder" } }, | ||
"subtype": "processMetadataValues", | ||
"metaType": "metadata" | ||
}, | ||
{ | ||
"element": { "name": "CanvasMode", "value": { "stringValue": "AUTO_LAYOUT_CANVAS" } }, | ||
"subtype": "processMetadataValues", | ||
"metaType": "metadata" | ||
}, | ||
{ | ||
"element": { | ||
"name": "OriginBuilderType", | ||
"value": { "stringValue": "LightningFlowBuilder" } | ||
}, | ||
"subtype": "processMetadataValues", | ||
"metaType": "metadata" | ||
}, | ||
{ "element": "AutoLaunchedFlow", "subtype": "processType", "metaType": "metadata" }, | ||
{ | ||
"element": { | ||
"description": "test", | ||
"name": "Update_triggering_records", | ||
"label": "Update triggering records", | ||
"locationX": "176", | ||
"locationY": "287", | ||
"inputAssignments": { "field": "Active__c", "value": { "stringValue": "Yes" } }, | ||
"inputReference": "$Record" | ||
}, | ||
"subtype": "recordUpdates", | ||
"metaType": "node", | ||
"connectors": [], | ||
"name": "Update_triggering_records", | ||
"locationX": "176", | ||
"locationY": "287" | ||
}, | ||
{ | ||
"element": { | ||
"locationX": "50", | ||
"locationY": "0", | ||
"connector": { "targetReference": "Update_triggering_records" }, | ||
"object": "Account", | ||
"recordTriggerType": "Create", | ||
"triggerType": "RecordBeforeSave" | ||
}, | ||
"subtype": "start", | ||
"metaType": "node", | ||
"connectors": [ | ||
{ | ||
"element": { "targetReference": "Update_triggering_records" }, | ||
"processed": false, | ||
"type": "connector", | ||
"reference": "Update_triggering_records" | ||
} | ||
], | ||
"name": "flowstart", | ||
"locationX": "50", | ||
"locationY": "0" | ||
}, | ||
{ "element": "Draft", "subtype": "status", "metaType": "metadata" } | ||
], | ||
"startReference": "Update_triggering_records" | ||
} | ||
} | ||
] |