mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-10-29 18:17:52 +00:00
* chore: Migrate legacy SHARED_GLOBAL permissions to SHARE and clean up orphaned fields - Implemented migration logic to convert legacy SHARED_GLOBAL permissions to SHARE for PROMPTS and AGENTS, preserving user intent. - Added cleanup process to remove orphaned SHARED_GLOBAL fields from the database after the schema change. - Enhanced unit tests to verify migration and cleanup functionality, ensuring correct behavior for existing roles and permissions. * fix: Enhance migration of SHARED_GLOBAL to SHARE permissions - Updated the `updateAccessPermissions` function to ensure that SHARED_GLOBAL values are inherited into SHARE when SHARE is absent from both the database and the update payload. - Implemented logic to prevent overwriting explicit SHARE values provided in the update, preserving user intent. - Enhanced unit tests to cover various scenarios, including migration from SHARED_GLOBAL to SHARE and ensuring orphaned SHARED_GLOBAL fields are cleaned up appropriately. |
||
|---|---|---|
| .. | ||
| Action.js | ||
| Agent.js | ||
| Agent.spec.js | ||
| Assistant.js | ||
| balanceMethods.js | ||
| Banner.js | ||
| Categories.js | ||
| Conversation.js | ||
| Conversation.spec.js | ||
| ConversationTag.js | ||
| convoStructure.spec.js | ||
| File.js | ||
| File.spec.js | ||
| index.js | ||
| interface.js | ||
| inviteUser.js | ||
| loadAddedAgent.js | ||
| Message.js | ||
| Message.spec.js | ||
| Preset.js | ||
| Project.js | ||
| Prompt.js | ||
| Prompt.spec.js | ||
| PromptGroupMigration.spec.js | ||
| Role.js | ||
| Role.spec.js | ||
| spendTokens.js | ||
| spendTokens.spec.js | ||
| ToolCall.js | ||
| Transaction.js | ||
| Transaction.spec.js | ||
| tx.js | ||
| tx.spec.js | ||
| userMethods.js | ||