-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
D38226_Flow control Flow Skipped Flow executing in Rerun Fixed #3473
Conversation
WalkthroughThe recent update introduces a nuanced approach to managing business flows marked as Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files selected for processing (1)
- Ginger/GingerCoreNET/Run/GingerExecutionEngine.cs (1 hunks)
Additional comments: 2
Ginger/GingerCoreNET/Run/GingerExecutionEngine.cs (2)
- 520-526: The condition to set activities and actions status to "Skipped" is based on the
ReRunConfigurations.Active
flag and the current status of the business flow. Ensure that this logic aligns with the intended behavior for rerunning skipped flows. If the business flow's status is not meant to be changed under certain conditions, this might introduce unexpected behavior.- 528-528: The logic to reset a business flow if its run status is
Failed
andReRunConfigurations.Active
is true seems appropriate for handling rerun scenarios. However, ensure that theReset
method on the business flow clears all necessary state to allow for a clean rerun. This might include resetting action statuses, clearing logs, or other stateful components of the business flow.
continue; | ||
} | ||
|
||
if (WorkSpace.Instance.RunsetExecutor.RunSetConfig != null && WorkSpace.Instance.RunsetExecutor.RunSetConfig.ReRunConfigurations.Active && executedBusFlow.RunStatus == eRunStatus.Passed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The condition to set the business flow's activities and actions status to "Skipped" based on the ReRunConfigurations.Active
flag and the business flow's status being Passed
seems to be redundant with the previous condition. Consider consolidating these conditions if they are intended to achieve the same outcome, or clarify the distinction between them if they serve different purposes.
Thank you for your contribution.
Before submitting this PR, please make sure:
Summary by CodeRabbit