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.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 4
- Forks
- 3
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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]
Beitragsleitfaden
Rechercherichtung
Im Issue sind keine Dateien, Tests oder Einstiegspunkte angegeben. Beginne damit, die Erstellung von Produktkategorien über das Admin panel nachzuverfolgen, und überprüfe anschließend, wo doppelte Namen akzeptiert werden und wie Validierungsfehler die UI erreichen; als erledigt gilt die Aufgabe, wenn eine zweite Kategorie mit demselben Namen mit einer klaren Validierungsmeldung abgelehnt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100