Handled Action dependncy issue#4335
Conversation
WalkthroughThe ActionsFactory.cs change collects VariableSelectionList from the current activity after assigning the action's platform; if EnableActionsVariablesDependenciesControl is true and variables exist, it builds VariableDependency objects from each variable's Guid, Name, and OptionalValuesList and appends them to selectedAction.VariablesDependencies before generating the action. Changes
Sequence Diagram(s)sequenceDiagram
participant AF as ActionsFactory
participant Activity
participant Action
AF->>Activity: Get VariableSelectionList
Activity-->>AF: returns variables[]
alt EnableActionsVariablesDependenciesControl == true and variables exist
loop for each variable
AF->>AF: collect OptionalValuesList -> values[]
AF->>AF: create VariableDependency(Guid, Name, values[])
AF->>Action: append VariableDependency to VariablesDependencies
end
end
AF->>Action: ensure platform assigned
AF->>AF: GenerateSelectedAction
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-09-02T07:51:28.822ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
Ginger/Ginger/AutomatePageLib/AddActionMenu/ActionsFactory.cs(2 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-02T07:51:28.822Z
Learnt from: prashelke
PR: Ginger-Automation/Ginger#4289
File: Ginger/GingerCoreNET/Application Models/Delta/PomDelta/PomDeltaUtils.cs:99-103
Timestamp: 2025-09-02T07:51:28.822Z
Learning: In Ginger/GingerCoreNET/Application Models/Delta/PomDelta/PomDeltaUtils.cs around line 99, prashelke prefers to keep the unused variable `selectedElementList` from GetSelectedElementList() call rather than removing it, despite it being unused in the current logic.
Applied to files:
Ginger/Ginger/AutomatePageLib/AddActionMenu/ActionsFactory.cs
Thank you for your contribution.
Before submitting this PR, please make sure:
Summary by CodeRabbit