Repository navigation
Conversation
This was referenced Nov 14, 2026
simPod
changed the base branch from
master
to
ci/refresh-benchmark-apt-index
November 14, 2026 20:01
simPod
force-pushed
the
feat/http-execution-results
branch
from
November 14, 2026 20:01
59af76a to
286cb78
Compare
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The tests do not assert executed === true after asynchronous null propagation when resolver promises reject or resolve to null, leaving the explicit override unverified.
1 open issue
What changed in this PR
Adds execution outcome metadata so later HTTP handling can distinguish request failures from completed execution with null data. This PR leaves result serialization and HTTP responses unchanged.
Changes:
- Adds
ExecutionResult::$executed, initialized from whether data is non-null. - Marks reference-executor results as executed, including null results.
- Documents the property and tests default, successful, and synchronous null-result outcomes.
| File | Description |
|---|---|
tests/GraphQLTest.php |
Tests execution metadata and preserves null-result serialization behavior. |
tests/Executor/ExecutionResultTest.php |
Verifies an empty result defaults to not executed. |
src/Executor/ReferenceExecutor.php |
Marks completed execution results as executed. |
src/Executor/ExecutionResult.php |
Adds and initializes the public outcome flag. |
docs/class-reference.md |
Documents the new public property. |
Review effort: Balanced
simPod
force-pushed
the
feat/http-execution-results
branch
from
November 14, 2026 21:02
286cb78 to
397e22f
Compare
simPod
changed the base branch from
ci/refresh-benchmark-apt-index
to
master
November 18, 2026 11:26
simPod
force-pushed
the
feat/http-execution-results
branch
from
November 18, 2026 11:26
397e22f to
860bafd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

A validation failure and a completed operation whose non-null field error makes the whole result null both currently produce data = null plus errors. HTTP handling must distinguish them: the first is a request error with no data entry; the second is an execution result with an explicit data: null entry.
Add ExecutionResult::$executed so HTTP response handling can choose the correct response body and status without guessing from errors. This PR alone changes neither result serialization nor HTTP responses. Keep the executor change separate so it can be reviewed independently of HTTP handling.
This is the first HTTP change. Response negotiation, status mapping, and strict request parsing follow separately.
Stack: #2007 → #2008 → #2009 → #2010.
Changelog