-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow setting public brain status to private #1258
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/quivr/quivr/backend/routes/authorizations/brain_authorization.py The Example: # Instead of this
if user_brain.rights not in required_roles:
# Do this
if not all(role in user_brain.rights for role in required_roles): Risk Level 3 - /home/runner/work/quivr/quivr/backend/routes/chat_routes.py
try:
supabase_db.delete_chat_history(chat_id)
except Exception as e:
logger.error(f'Error deleting chat history for chat_id {chat_id}: {e}')
raise
Risk Level 3 - /home/runner/work/quivr/quivr/backend/models/databases/supabase/brains.py
Example: # Instead of this
return results
# Do this
return {'status': 'success', 'deleted_count': results.count} 🔒🔍🔄 Powered by Code Review GPT |
Refetch brains list on when new brain is added
Update BrainConfig type
Update useSettingsTab, add usebrainFormState, and useSettings tab
Add modal
Update translations
Handle brain status change to private
Validate chat access
Fix failing tests and remove deprecated
#1213