5sControl / 5sControl/5s-backend

fix bug assigned algorithm is removed when u delete one of zones

Abierto
#349 0 comentarios 0 reacciones 1 asignado Reclamado por @Dimskay1988 Ver en GitHub
bug
Lenguaje dominante
Python
Estrellas
2
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Summary:** Назначенный алгоритм снимается с камеры, если удалить одну из зон

**Environment:**
Chrome 114
Win 11
Kaunas hp, 110, 111

**Precondition:**
- камера авторизована
- введен лицензионный ключ
- на камере создано несколько зон (2 или более), которые выбраны и назначены в табе "Algorithms"
- Открыта страница "Configuration"

**STR:**
1. Кликнуть по камере
2. Кликнуть по табу "Zones" в окне "Camera Settings"
3. Кликнуть по кнопке "Развернуть" возле названия зоны
4. Кликнуть по кнопке "Delete"
5. Кликнуть по кнопке "Done"

**ER:**
Алгоритм повешен на камеру, т.к. есть назначенные зоны, которые не были удалены

**AR:**
Алгоритм снимается с камеры
( в запросе http://192.168.1.111/api/camera-algorithms/create-process/
массив algorithms пустой)
**Attachments:**
https://drive.google.com/file/d/12LP0y1nkzcQvOnYSnoRf7NHiWV7OvFqD/view?usp=drive_link

![Image](https://user-images.githubusercontent.com/122295113/251745808-c2290d0c-cd92-4665-93d4-3e8b828b255d.png)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

The bug occurs when deleting a zone, causing the camera's assigned algorithm to be removed. Examine the API endpoint at /api/camera-algorithms/create-process/ and the logic for handling zone deletions. Look at the camera and zone models, and the algorithm assignment flow. Check the request payload to see why the algorithms array becomes empty after a zone deletion.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
api, backend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.