Closed sfahad1414 closed 2 months ago
The updates encompass modifications across various files, enhancing functionalities related to bot management, scheduling actions, email notifications, and payment processing. Key changes include the introduction of new methods, adjustments to existing method signatures, and the addition of new email templates and constants. The testing framework has also been improved with new test cases and updated assertions to reflect changes in the application logic and data structures.
Files | Change Summary |
---|---|
augmentation/utils.py |
Updated get_qna function to improve text gathering from sibling HTML elements using a for loop instead of a while loop. |
email.yaml |
Added new email templates for notifications when a user leaves a bot. |
kairon/actions/definitions/schedule.py |
Replaced schedule method with add_schedule_job , introducing asynchronous job scheduling and MongoDB integration. |
kairon/api/app/routers/user.py |
Introduced leave_bot endpoint for users to exit a bot, notifying owners via email. |
kairon/chat/handlers/channels/whatsapp.py |
Enhanced message handling to include payment messages and updated logging for recipient information. |
kairon/shared/account/data_objects.py |
Added leave_bot_owner_notification field to MailTemplates class. |
kairon/shared/account/processor.py |
Introduced process_leave_bot method for handling user departure from a bot and updated email template loading. |
kairon/shared/actions/utils.py |
Reformatted execute_request_async method signature for better readability. |
kairon/shared/chat/processor.py |
Updated save_whatsapp_audit_log method to include recipient parameter and refined data handling for payment statuses. |
kairon/shared/constants.py |
Added payment enumeration value to KaironSystemSlots class. |
kairon/shared/data/processor.py |
Updated add_system_required_slots method to include payment slot in non-conversational slots. |
kairon/shared/sso/clients/linkedin.py |
Modified process_login method to include new parameters for enhanced authentication flows. |
kairon/shared/utils.py |
Added __handle_member_left_bot method for constructing email notifications for bot owners. |
requirements/dev.txt |
Updated versions of several Python packages for development dependencies. |
requirements/prod.txt |
Upgraded various dependencies in production requirements for improved functionality and security. |
template/emails/leaveBotOwnerNotification.html |
Created new HTML template for notifying bot owners when a member leaves. |
tests/integration_test/action_service_test.py |
Restructured tests for scheduling actions, adding new test cases and removing outdated ones. |
tests/integration_test/chat_service_test.py |
Added tests for processing WhatsApp payment messages and updated assertions for recipient validation. |
tests/integration_test/services_test.py |
Updated assertions for bot membership and integration tokens, adding new tests for leaving a bot. |
tests/unit_test/callback_test.py |
Updated access token in Telegram tests to a specific value. |
tests/unit_test/data_processor/data_processor_test.py |
Adjusted expected counts of slots and entities in various tests to reflect changes in the data model. |
tests/unit_test/events/definitions_test.py |
Updated URLs in tests and modified matcher syntax for website data generation tests. |
sequenceDiagram
participant User
participant Bot
participant MailUtility
participant AccountProcessor
User->>Bot: Request to leave bot
Bot->>AccountProcessor: Process leave request
AccountProcessor->>MailUtility: Send notification to bot owner
MailUtility->>User: Confirmation of leave
π° In the meadow where I hop and play,
Changes bloom like flowers in May.
New paths for bots, and emails to send,
With joyful leaps, our code will mend!
Hooray for updates, letβs dance and cheer,
For every change brings us more near! πΌ
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?
β¦vent server api to notify
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores