Files
crm.clientright.ru/project_390983_s3_storage.txt
Fedor 9245768987 🚀 CRM Files Migration & Real-time Features
 Features:
- Migrated ALL files to new S3 structure (Projects, Contacts, Accounts, HelpDesk, Invoice, etc.)
- Added Nextcloud folder buttons to ALL modules
- Fixed Nextcloud editor integration
- WebSocket server for real-time updates
- Redis Pub/Sub integration
- File path manager for organized storage
- Redis caching for performance (Functions.php)

📁 New Structure:
Documents/Project/ProjectName_ID/file_docID.ext
Documents/Contacts/FirstName_LastName_ID/file_docID.ext
Documents/Accounts/AccountName_ID/file_docID.ext

🔧 Technical:
- FilePathManager for standardized paths
- S3StorageService integration
- WebSocket server (Node.js + Docker)
- Redis cache for getBasicModuleInfo()
- Predis library for Redis connectivity

📝 Scripts:
- Migration scripts for all modules
- Test pages for WebSocket/SSE/Polling
- Documentation (MIGRATION_*.md, REDIS_*.md)

🎯 Result: 15,000+ files migrated successfully!
2025-10-24 19:59:28 +03:00

95 lines
6.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

PHP Deprecated: This installation of the SDK is using PHP version 7.2.24-0ubuntu0.18.04.17, which will be deprecated on January 13th, 2025.
Please upgrade your PHP version to a minimum of 8.1.x to continue receiving updates for the AWS SDK for PHP.
To disable this warning, set suppress_php_deprecation_warning to true on the client constructor or set the environment variable AWS_SUPPRESS_PHP_DEPRECATION_WARNING to true.
More information can be found at: https://aws.amazon.com/blogs/developer/announcing-the-end-of-support-for-php-runtimes-8-0-x-and-below-in-the-aws-sdk-for-php/
in /var/www/fastuser/data/www/crm.clientright.ru/crm_extensions/vendor/aws/aws-sdk-php/src/ClientResolver.php on line 1409
🔍 === ПРОВЕРКА ФАЙЛОВ ПРОЕКТА 390983 В S3 ===
🪣 Bucket: f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c
🌐 Endpoint: https://s3.twcstorage.ru
📍 Регион: TWC Storage (Amsterdam)
📄 Документ 390986:
✅ Найдено файлов: 1
📁 Договор_08-29-2025-06-55-00_Макарова__1_CTP#realfile.pdf
Размер: 259.87 KB
Изменён: 2025-09-21 21:27:40
Путь: crm2/CRM_Active_Files/Documents/390986/Договор_08-29-2025-06-55-00_Макарова__1_CTP#realfile.pdf
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/390986/Договор_08-29-2025-06-55-00_Макарова__1_CTP#realfile.pdf
📄 Документ 390988:
✅ Найдено файлов: 1
📁 Подтверждение_оплаты_08-29-2025-06-53-58_Макарова__1_CTP#realfile.pdf
Размер: 1,905.22 KB
Изменён: 2025-09-21 21:27:40
Путь: crm2/CRM_Active_Files/Documents/390988/Подтверждение_оплаты_08-29-2025-06-53-58_Макарова__1_CTP#realfile.pdf
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/390988/Подтверждение_оплаты_08-29-2025-06-53-58_Макарова__1_CTP#realfile.pdf
📄 Документ 390990:
✅ Найдено файлов: 1
📁 Претензия_08-29-2025-06-58-15_Макарова__2_CTP#realfile.pdf
Размер: 1,218.36 KB
Изменён: 2025-09-21 21:27:40
Путь: crm2/CRM_Active_Files/Documents/390990/Претензия_08-29-2025-06-58-15_Макарова__2_CTP#realfile.pdf
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/390990/Претензия_08-29-2025-06-58-15_Макарова__2_CTP#realfile.pdf
📄 Документ 390992:
✅ Найдено файлов: 1
📁 Ответ_на_претензию_08-29-2025-06-58-48_Макарова__8_CTP#realfile.pdf
Размер: 2,534.21 KB
Изменён: 2025-09-21 21:27:40
Путь: crm2/CRM_Active_Files/Documents/390992/Ответ_на_претензию_08-29-2025-06-58-48_Макарова__8_CTP#realfile.pdf
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/390992/Ответ_на_претензию_08-29-2025-06-58-48_Макарова__8_CTP#realfile.pdf
📄 Документ 390994:
✅ Найдено файлов: 1
📁 Прочиеокументы_08-29-2025-07-02-59_Макарова__1_CTP#realfile.pdf
Размер: 2,120.19 KB
Изменён: 2025-09-21 21:27:40
Путь: crm2/CRM_Active_Files/Documents/390994/Прочиеокументы_08-29-2025-07-02-59_Макарова__1_CTP#realfile.pdf
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/390994/Прочиеокументы_08-29-2025-07-02-59_Макарова__1_CTP#realfile.pdf
📄 Документ 390996:
✅ Найдено файлов: 1
📁 7 заявление потребителя.pdf
Размер: 79.46 KB
Изменён: 2025-09-21 21:27:41
Путь: crm2/CRM_Active_Files/Documents/390996/7 заявление потребителя.pdf
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/390996/7 заявление потребителя.pdf
📄 Документ 391199:
✅ Найдено файлов: 1
📁 Доказательство_проведение_претензионной_работы__Макарова__Елена__2_стр.pdf
Размер: 183.92 KB
Изменён: 2025-09-21 21:27:41
Путь: crm2/CRM_Active_Files/Documents/391199/Доказательство_проведение_претензионной_работы__Макарова__Елена__2_стр.pdf
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/391199/Доказательство_проведение_претензионной_работы__Макарова__Елена__2_стр.pdf
📄 Документ 395695:
✅ Найдено файлов: 1
📁 zayavlenie_proekt.docx
Размер: 28.40 KB
Изменён: 2025-10-20 14:12:37
Путь: crm2/CRM_Active_Files/Documents/395695/zayavlenie_proekt.docx
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/395695/zayavlenie_proekt.docx
📄 Документ 395821:
✅ Найдено файлов: 1
📁 experimental_report_20251017_221817.xlsx
Размер: 43.23 KB
Изменён: 2025-10-21 18:55:55
Путь: crm2/CRM_Active_Files/Documents/395821/experimental_report_20251017_221817.xlsx
URL: https://s3.twcstorage.ru/f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c/crm2/CRM_Active_Files/Documents/395821/experimental_report_20251017_221817.xlsx
📊 === ИТОГО ===
Всего файлов: 9
Общий размер: 8.18 MB
🗂️ === СТРУКТУРА ХРАНЕНИЯ ===
Bucket ID: f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c
Базовый путь: crm2/CRM_Active_Files/Documents/
Формат пути: crm2/CRM_Active_Files/Documents/{ID_документа}/{имя_файла}
Пример:
crm2/CRM_Active_Files/Documents/390986/Договор_08-29-2025-06-55-00_Макарова__1_CTP#realfile.pdf