feat(integrations): добавлена проверка соединения для Recommerce

- Добавлен endpoint /test/<integration_id>/ для тестирования соединений
- RecommerceService упрощён под реальное API (x-auth-token + store_url)
- Кнопка "Проверить подключение" в UI с обработкой статусов
- Миграция для удаления IntegrationConfig и обновления полей

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-12 00:57:35 +03:00
parent 37394121e1
commit b1b56fbb2e
6 changed files with 212 additions and 127 deletions

View File

@@ -4,6 +4,7 @@ from .views import (
toggle_integration,
save_integration_settings,
get_integration_form_data,
test_integration_connection,
)
app_name = 'integrations'
@@ -16,8 +17,5 @@ urlpatterns = [
path("toggle/<str:integration_id>/", toggle_integration, name="toggle"),
path("settings/<str:integration_id>/", save_integration_settings, name="settings"),
path("form/<str:integration_id>/", get_integration_form_data, name="form_data"),
# TODO: добавить когда понадобится
# path("test/<str:integration_id>/", test_connection, name="test_connection"),
# path("webhook/<str:integration_type>/", webhook, name="webhook"),
path("test/<str:integration_id>/", test_integration_connection, name="test"),
]