Margaret-Petersen / Margaret-Petersen/python-based-food-ordering-system
"Orders" Page Displays Error Instead of Order List
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 0
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Describe the bug
On the admin dashboard, the "Orders" page displays the following error instead of the order list:
Error: Cannot return null for non-nullable field User.name.
This prevents administrators from viewing and managing orders.
To Reproduce
Steps to reproduce the behavior:
Log in to the admin dashboard.
Navigate to the "Orders" page.
Observe the error message: "Error: Cannot return null for non-nullable field User.name."
Expected behavior
The orders should be displayed normally. If a user name is missing, the system should handle it gracefully instead of throwing an error that blocks the entire page.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 11
Browser: Chrome
Additional context
This appears to be a GraphQL issue where a null value is returned for a required field. The system should allow for null values or provide fallback handling to prevent the UI from breaking.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere zunächst den Fehler auf der Orders-Seite des Admin-Dashboards und untersuche die betreffende GraphQL-Antwort sowie das Feld User.name. Bestätige, wie fehlende Benutzernamen dargestellt werden, und überprüfe anschließend, dass die Bestellliste gerendert wird und weiterhin nutzbar ist, wenn ein Name fehlt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- graphql, javascript
- Bereich
- api, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100