Closed hiteshghuge closed 1 month ago
The recent update enhances the get_stories
method in the Processor
class by adding support for handling scheduled actions. A new variable captures relevant ScheduleAction
names, integrating them into the control logic. This allows the method to recognize and process scheduled actions alongside existing action types, improving overall functionality and broadening the scope of action handling.
Files | Change Summary |
---|---|
kairon/shared/data/processor.py |
Added handling for schedule_action in get_stories , improving story step processing capabilities. |
sequenceDiagram
participant User
participant Processor
participant ScheduleAction
User->>Processor: Request to get stories
Processor->>ScheduleAction: Fetch schedule actions
ScheduleAction-->>Processor: Return schedule action names
Processor->>Processor: Check story steps
alt If scheduled action
Processor->>Processor: Set story step type to schedule_action
else If other actions
Processor->>Processor: Handle other actions
end
Processor-->>User: Return processed stories
🐰 In the meadow where stories bloom,
A new action dances, dispelling the gloom.
With schedules set, the tales now flow,
Hopping along, watch the magic grow!
Each step a story, each pause a delight,
Celebrating changes, oh what a sight! 🌼
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?
Summary by CodeRabbit
get_stories
method.