Orbit API: `source_code` domain queries fail with execution_error
## Summary All Orbit API queries against the `source_code` domain (Definition, File, Branch, Directory, ImportedSymbol) fail with `execution_error`, while identical query structures work for other domains. ## Steps to reproduce ```bash # This fails: curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ "https://gitlab.com/api/v4/orbit/query" \ -d '{ "query": { "query_type": "neighbors", "node": {"entity": "Definition", "id": "d", "filters": {"id": {"op": "eq", "value": 1}}}, "neighbors": {"node": "d", "direction": "both"}, "aggregations": [], "path": {"type": "shortest", "from": "d", "to": "d", "max_depth": 1} }, "limit": 1 }' # Response: {"code":"execution_error","message":"Query execution failed."} # This works (same structure, different entity): curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ "https://gitlab.com/api/v4/orbit/query" \ -d '{ "query": { "query_type": "neighbors", "node": {"entity": "User", "id": "u", "filters": {"id": {"op": "eq", "value": 11164960}}}, "neighbors": {"node": "u", "direction": "both"}, "aggregations": [], "path": {"type": "shortest", "from": "u", "to": "u", "max_depth": 1} }, "limit": 1 }' # Response: {"result":{"nodes":[{"type":"User","id":"11164960",...}],...}} ``` ## What works vs. fails | Domain | Entities | Status | |--------|----------|--------| | core | User, Project, Group | ✅ Works | | security | SecurityScan, Vulnerability | ✅ Works | | ci | Pipeline, Job, Stage | ✅ Works | | plan | WorkItem | ✅ Works | | code_review | MergeRequest | ✅ Works | | source_code | Definition, File, Branch, Directory | ❌ `execution_error` | Tested with both name-based filters (`{"name": {"op": "eq", "value": "..."}}`) and numeric ID filters (`{"id": {"op": "eq", "value": 1}}`) - same failure. ## Expected behavior Queries against `source_code` domain entities should return results (or empty results if no matches), not `execution_error`.
issue