Closed hiteshghuge closed 1 month ago
The recent updates enhance user context integration across various asynchronous functions in the Kairon API. By adding a user
parameter to multiple deletion and management methods, the changes improve accountability and traceability of operations, ensuring user actions are appropriately logged. This approach strengthens security and resource management, particularly for sensitive operations like deletions, creating a more robust framework for user actions.
Files | Change Summary |
---|---|
kairon/api/app/routers/account.py , kairon/api/app/routers/bot/action.py , kairon/api/app/routers/bot/agents.py , kairon/api/app/routers/bot/bot.py , kairon/api/app/routers/bot/channels.py , kairon/api/app/routers/bot/custom_widgets.py , kairon/api/app/routers/bot/data.py , kairon/api/app/routers/bot/secrets.py , kairon/api/app/routers/idp.py |
Added current_user.get_user() to multiple functions to enhance user context in deletion operations. |
kairon/shared/account/processor.py , kairon/shared/cognition/processor.py , kairon/shared/data/processor.py , kairon/shared/live_agent/processor.py |
Introduced an optional user parameter in multiple processor methods to track user actions during deletions. |
tests/unit_test/data_processor/data_processor_test.py , tests/unit_test/live_agent/live_agent_processor_test.py |
Updated test cases to reflect changes in method signatures that now include user context in deletions. |
user
parameter to the delete
method in the audit log, which aligns with the main PR's focus on enhancing user context in deletion operations.LLMSecret
data object and modifies various methods to include user context, which is relevant to the main PR's changes that also enhance user context in deletion functions.llm_metadata
from system_metadata
and the introduction of an API to fetch it may relate to the overall improvements in managing user-related data and actions, similar to the user context enhancements in the main PR.allow_bot_for_user
function to streamline how user names are handled in email notifications, which is relevant to the main PR's focus on user context in various operations.🐇 In a world of code so bright,
Changes hop with pure delight!
Users now hold keys so grand,
Deletions tracked across the land.
With every action, we will see,
Accountability's the key! 🌟
[!TIP]
OpenAI O1 model for chat
- We have deployed OpenAI's latest O1 model for chat. - OpenAI claims that this model has superior reasoning capabilities than their GPT-4o model. - Please share any feedback with us in the [discussions post](https://discord.com/channels/1134356397673414807/1283929536186155099).
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
delete_documents
method for direct document deletion with user tracking.Bug Fixes
Documentation
Tests