Skip to content

Pass in the graphql context to the validation steps - #4531

Open
bbakerman wants to merge 3 commits into
masterfrom
pass-graphql-context-to-validator
Open

bbakerman wants to merge 3 commits into
masterfrom
pass-graphql-context-to-validator

Conversation

@bbakerman

Copy link
Copy Markdown
Member

Currently the graphql context on the execution input is NOT passed to the validation code - rather a new default context is created

So this means the code if (!isExperimentalApiKeyEnabled(ExperimentalApi.ENABLE_INCREMENTAL_SUPPORT)) { will never be called : graphql.validation.OperationValidator#isExperimentalApiKeyEnabled

This passes on the context into the validation classes

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Test Report

Test Results

Java Version Total Passed Failed Errors Skipped
Java 17 6178 (±0) 6122 (±0) 0 (±0) 0 (±0) 56 (±0)
Java 21 6178 (±0) 6122 (±0) 0 (±0) 0 (±0) 56 (±0)
Java 25 6178 (±0) 6122 (±0) 0 (±0) 0 (±0) 56 (±0)
jcstress 32 (±0) 32 (±0) 0 (±0) 0 (±0) 0 (±0)
Total 18566 (±0) 18398 (±0) 0 (±0) 0 (±0) 168 (±0)

Code Coverage (Java 25)

Metric Covered Missed Coverage vs Master
Lines 30324 3082 90.8% ±0.0%
Branches 8956 1506 85.6% ±0.0%
Methods 8097 1188 87.2% ±0.0%

Changed Class Coverage (2 classes)

Class Line Branch Method
g.ParseAndValidate +0.5% 🟢 ±0.0% +1.5% 🟢
g.v.Validator +0.2% 🟢 ±0.0% +1.4% 🟢

Full HTML report: build artifact jacoco-html-report

Updated: 2026-11-03 06:44:09 UTC

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant