Compare functionality in history tab does not work properly
The compare functionality in the history tab of the rule does not provide all information on which property or step gets changed.
Steps to Reproduce
- Open an Activity Rule.
- Go to the history tab.
- Open the history.
- Click on view all version.
- Select any two versions to compare.
- Click the Compare button.
The keys of the selected rules need to be passed down to the 'PegaAccel-Management-Refactor-RuleSet.pyLaunchDiff' activity for comparison. During runtime, the key of the selected rule's next rule is being passed in to the CompareRules() method of the pzRuleDiffHistoryScripts rule.
Note: History snapshots always stores the contents of the rule before the action (check in/save) occurred. Having said that, this fix will only allow the user to compare two history rules but not compare the current version of the rule with a history rule.
Apply HFix-28214 to resolve this issue. HFix-28214 modifies the CompareRules() method of pzRuleDiffHistoryScripts rule to not to get the next rule's key of a selected rule.