Closed hasinaxp closed 3 months ago
The recent changes enhance both the flexibility and security of the codebase. The send_message_to_user
method in the WhatsApp handler now accommodates both string and dictionary message formats. Additionally, the encrypt_secret
function has been modified to return only a portion of the encrypted data, and the decrypt_secret
function has been removed, indicating a shift in how secrets are managed. Test cases have been updated to reflect these changes, focusing solely on encryption functionality.
Files | Change Summary |
---|---|
kairon/chat/handlers/channels/whatsapp.py |
Modified send_message_to_user to accept both string and dictionary types for messages, enhancing flexibility. |
kairon/shared/callback/data_objects.py |
Changed encrypt_secret to return only the first 24 characters of the encrypted output; decrypt_secret function removed, indicating a shift in secret handling. |
tests/unit_test/callback_test.py |
Updated tests to focus solely on encrypt_secret , removing the decrypt_secret test. Adjusted assertions in message sending tests to reflect new message structure. |
🐇 In the garden of code, we bloom and we play,
With messages dancing in a new, bright array.
Secrets now whisper, no longer in fright,
A hop here, a jump there, all feels just right!
So let’s celebrate changes with a hop and a cheer,
For a rabbit’s delight is in coding, my dear! 🥕✨
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?
reduced token size fixed whatsapp send for text
Summary by CodeRabbit
New Features
send_message_to_user
method to accept both string and dictionary formats.Bug Fixes
decrypt_secret
function, streamlining the encryption process.Tests