Closed sfahad1414 closed 2 months ago
The changes encompass updates to several files within the Kairon framework, focusing on enhancing scheduling functionality, refining request handling, and improving test cases. Key modifications include the introduction of asynchronous methods for scheduling actions, adjustments to method signatures for better parameter handling, and updates to test configurations and URLs to ensure relevance and accuracy. Additionally, a method for scheduling jobs based on specific dates has been removed.
File Path | Change Summary |
---|---|
augmentation/utils.py | Refactored get_qna function to use find_next_siblings() for improved text accumulation. |
kairon/actions/definitions/schedule.py | Replaced synchronous schedule method with asynchronous add_schedule_job for enhanced scheduling. Added error handling and new imports. |
kairon/events/scheduler/kscheduler.py | Removed add_job_for_date method, eliminating scheduling based on specific dates. |
kairon/shared/actions/utils.py | Reformatted parameters in execute_request_async for improved readability. |
kairon/shared/sso/clients/linkedin.py | Added pkce_code_verifier and convert_response parameters to process_login method. |
tests/integration_test/action_service_test.py | Replaced LambdaExecutor with ExecutorFactory , removed live agent test, and enhanced scheduling tests. |
tests/unit_test/callback_test.py | Updated access token in Telegram tests for more accurate testing. |
tests/unit_test/events/definitions_test.py | Changed website_url for tests and updated matcher in test_trigger_website_data_generation_enqueue . |
sequenceDiagram
participant User
participant Scheduler
participant Executor
participant EventServer
User->>Scheduler: Request to schedule action
Scheduler->>Executor: Add schedule job
Executor->>EventServer: Send scheduling request
EventServer-->>Executor: Confirm scheduling
Executor-->>Scheduler: Job scheduled successfully
Scheduler-->>User: Confirmation of scheduled action
🐰 In the meadow, I hop with glee,
New changes sprout like flowers, you see!
Scheduling's swift, requests now flow,
Tests updated, watch them grow!
With every leap, I cheer and sing,
Hooray for the joy that updates bring! 🌼✨
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
New Features
Bug Fixes
Tests
Chores