gray-mueller / gray-mueller/food-ordering-app-using-python
Enatega Admin Dashboard: Categories for products keep getting added with the same name, there should be only one entry for one name.
- Lingua principale
- JavaScript
- Stelle
- 4
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Describe the bug
The system currently allows multiple product categories to be created with the same name. This results in duplicate entries for identical category names, leading to confusion in both the admin panel and the app UI. There should be a validation to ensure that only one category with a given name can exist.
Steps to Reproduce:
Go to the Admin panel.
Add a new product category (e.g., "Burgers").
Attempt to add another category with the same name ("Burgers").
Observe that the system allows it without any warning or error.
Expected behavior
System should prevent adding duplicate category names by showing a validation message like “Category with this name already exists.”
Desktop (please complete the following information):
OS: [e.g. Windows]
Browser [e.g. Chrome]
Version [e.g. Latest]
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Nell’issue non sono identificati file, test o punti di ingresso. Inizia tracciando la creazione delle categorie di prodotto dall’Admin panel, quindi verifica dove vengono accettati nomi duplicati e come gli errori di validazione arrivano alla UI; il lavoro è completo quando una seconda categoria con lo stesso nome viene rifiutata con un messaggio di validazione chiaro.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100