[go: up one dir, main page]

Skip to content

Investigate GraphQL empty object response - backend analysis

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

##Background We've observed errors in Sentry where GraphQL queries resolve successfully but return empty objects, bypassing UI error handling. The backend schema allows mergeRequests: null (null: true), but we need to understand when and why this occurs. Spike Goals

##This spike focuses on steps 1 and 2 from the investigation plan:

  1. Identify null scenarios

Investigate the resolver code to understand when the backend returns null for mergeRequests Document all code paths that lead to null responses Identify the conditions/triggers for each scenario

  1. Evaluate appropriateness

For each identified scenario, determine whether null is the appropriate response Assess which scenarios should return proper GraphQL errors instead Document recommendations for each case

Expected Deliverables

Documentation of all null response scenarios and their triggers Analysis of which scenarios are appropriate vs should error Recommendations for backend changes (if any) Clear guidance for frontend null handling requirements

Edited by 🤖 GitLab Bot 🤖