5sControl / 5sControl/5s-frontend

[2h]fix bug: no possibility to disconnect the database

Abierto
#105 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
3
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Summary: Нет возможности отключить базу данных

Preconditions: Пользователь авторизован
Лицензионный ключ применен

Steps to reproduce:
1. Нажать вкладку "Configuration"
2. Выбрать таб "Database"
3. Нажать кнопку "Connect to Database"
4. Ввести все данные о базе данных
- Host: 192.168.1.110
- Database name: test
- User: sa
- Password: just4Taqtile
5. Нажать "Connect"
6. Нажать кнопку "Disconnect"
7. В появившемся окне подтвердить действие, нажав кнопку "Disconnect"
8. Нажать кнопку "Cancel"
9. Обновить страницу

Expected result:
Database is not connected

Actual result:
Database is connected

Attachment:

https://user-images.githubusercontent.com/109624457/227224465-a2c10511-450d-4779-a36a-4582fe3b554e.mp4

![Image](https://user-images.githubusercontent.com/109624457/227224487-e1210072-49b0-43d1-a54a-a053e177fd0b.png)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Look at the frontend code for the database connection UI, likely in a component handling the Configuration/Database tab. The disconnect button click handler and the subsequent API call or state update need to be examined. Check if the connection state is properly cleared on disconnect and persists after a page refresh. The video attachment shows the UI flow.

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

Evaluación

Stack tecnológico
react, typescript
Área
database, frontend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
50/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.