5sControl / 5sControl/5s-webserver

fix bug algorithms can't be assigned after deleting camera

Aperta
#122 0 commenti 0 reazioni 1 assegnatario Rivendicata da @ZhuchkouAA Vedi su GitHub
bug
Lingua principale
JavaScript
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Алгоритм не может быть назначен после удаления камеры с назначенными алгоритмами

**Precondition:**
Открыто приложение
пользователь авторизован
открыта страница "Configuration"
Авторизована камера, на нее назначены алгоритмы

**Environment:**
Win 11
Chrome 114

**STR:**
1. Кликнуть по кнопке "Удалить" возле камеры с назначенными алгоритмами
2. Кликнуть по кнопке "Remove" в окне "Remove a camera"
3. Кликнуть по кнопке "Add camera"
4. Добавить удаленную камеру
5. Ввести имя и пароль в поля "Username", "Password" (admin. just4Taqtile) вкладка "Camera", window "Camera Settings"
6. Кликнуть по кнопке "Done"
7. Кликнуть по камере
8. Кликнуть по вкладке "Algorithms" window "Camera Settings"
9. Кликнуть по чек-боксу любого алгоритма
10. Кликнуть по кнопке "Done"

**ER:**
Алгоритм назначен на камеру

**AR:**
Алгоритм не назначен на камеру, 500 ошибка запроса POST http://192.168.1.110/api/camera-algorithms/create-process/
**Attachments:**

![Image](https://user-images.githubusercontent.com/122295113/261043758-109b5407-1f78-448d-9e03-0db849c9a431.png)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

The bug occurs when re-adding a camera after deletion and trying to assign algorithms, resulting in a 500 error on POST /api/camera-algorithms/create-process/. Start by examining the backend API endpoint for camera-algorithms creation, likely in a controller or route file. Check the database models for Camera and Algorithm to see how associations are managed and if any orphaned records or state issues persist after camera deletion. Reproduce the error locally by following the steps, then inspect server logs for the exact cause of the 500 error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
api, backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.