Инструкция
ВАЖНО! Перед обновлением на v4.5.x необходимо иметь версию Swarmica не ниже v4.4.4
Подготовка
Для обновления проверьте, что в конфигурационном файле .env поставлена версия v4.5.1:
~# grep VERSION .env
SW_FRONTEND_VERSION=v4.5.1
SW_BACKEND_VERSION=v4.5.1
Обновление
Будет прерывание сервиса на несколько минут, рекомендуется выполнять обновление в часы, когда использование системы минимально
Выполните обновление с перезагрузкой системы:
docker compose pull
docker compose up -d --remove-orphans
После обновления
После того, как все контейнеры запустятся и сервис станет доступен через веб-интерфейс, выполните пост-апгрейдные шаги:
1. Запустите команду пост-старт, чтобы обновить файлы статики, индексы поиска и выполнить другие необходимые процедуры:
docker exec --env-file .env -it swarmica-django-1 python manage.py post_start
Эта команда может занять долгое время, в зависимости от количества данных в системе.
2. После того, как все успешно обновлено и работоспособность проверена, можно удалить неиспользуемые данные docker для освобождения дискового пространства:
docker system prune -a
ВАЖНО! Убедитесь, что все контейнеры успешно запустились, перед запуском этой команды
Список изменений
Frontend
- Feature #1386: Added editing of conditions
- Feature #1517: add exclude operator to ticket and user filter condition
- Feature #1520: Added sounds for notifications
- Feature #1521: new design for notifications widget and add button Mark all as read
- Feature #1523: save notifications information in localstorage and add expiry time
- Feature #1524: not show autocommit ticket notifications
- Feature #1527: Added 'is_autocomment' and 'is_system' for ticket comment
- Feature #1528: Added a prompt to permission notifications in browser
- Feature #1529: Added customer and employee notification management
- Feature #1534: Supported 'last_login' and added a user login event
- Feature #1536: Made the category image a link in the help center
- Feature #1538: Added 'Edit' button to published article
- Feature #1546: Support AI assistant features in Quill
- Feature #1546: add ai toolbar to quill
- Bug #43: smaller width and hight for embedded widget for mobile device
- Bug #1470: Fixed a problem with overwriting changes in editor
- Bug #1516: save location path when logout after error token
- Bug #1519: Fixed an error when denying access to a public article
- Bug #1530: Fixed edit form for AA
- Bug #1531: always redirect to auth/login after logout
- Bug #1532: Disabled autolinks in mdx-editor
- Bug #1533: Added slash to the end of url for email_preferences
- Bug #1537: resolve conflict
- Bug #1547: show all notifications when new chat message
- Bug #1549: fix desctuction of text structure and format when fork ticket comment
- Bug #1551: Added refresh of notifications when 'mute'
- Bug #1554: change ai quill format to html and handle array response
- Bug #1558: Fixed notification list on customer page
- Bug #208: add error message and changed the rules for deleting and editing in budgets form
- Devops: Bump version to v4.5.0
- Locales #1535: fix clear all notifications button
- Refactor #1518: remove unused params from instance
Backend
- Feature #1934: Added the is_autocomment field for TicketComment and added it to the ticketCommentAdded websocket message
- Feature #1970: implement thread index header for ticket notifications
- Feature #2069: Update Django and related libraries for Django 5 support, refactor index_together to indexes for proper functionality
- Feature #2090: add user login event, support this event by updating last_login in every way of authorization
- Feature #2103: Implemented response generation functions via yandex-gpt
- Feature #2110: change backend for redis cache to django-redis, refactor cache management to reflect new lib workflow
- Feature #2118: skipp notifications for first comment, add first comment body to all notifications about ticket creation
- Feature #2119: add gigachat support for ai assistant api, add new gigachat model
- Feature #2120: Chat notifications have been sent only to employees with chat_status != offline
- Feature #2124: order groups by name by default
- Feature #2125: turn off runtime warnings
- Feature #2126: Added filters is_system, is_autocomment to TicketCommentViewSet
- Feature #2127: Added latest_revision field to article retrieve
- Feature #2128: Added the "articleRevisionAdded" message to NotificationConsumer
- Feature #2132: remove responsible field from user serializers
- Feature #2133: add retries on connecting to billmanager webhook
- Feature #2137: Added 'article_id' to ws notification 'articleRevisionAdded'
- Feature #2147: make instance cache to be per-role
- Feature #2155: Allow support users to receive all mail notification keys
- Feature: add last login field to employee retrieve serializer
- Bug #2115: Moved CSRF_TRUSTED_ORIGINS to always be enabled in production
- Bug #2122: Added clearing the user list cache after updating the user
- Bug #2122: Separated the devel and main builds in gitlab-ci
- Bug #2129: allow saving empty files as comment attachments
- Bug #2134: Added mail error handling and logging to the global error handler
- Bug #2148: always set user as responsible for login event
- Bug #2151: Return empty string for Yandex tracker issue description if description is None
- Bug #2154: Custom roles have been removed from the filter_export_completed notification
- Devops #2121: Added the BACKEND_BASE_VERSION argument to build
- Refactor #2102: Unisex messages in lai,aqi,qa templates
- Refactor #2117: Removed unused fields from the Instance API and field differentiation for authorized/unauthorized fields has been added.
- Refactor #2157: Removed 'ticket_pending_notification' email notification
Пасхалка: запись звуков для оповещений: