-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema-reporting: Check whether overrideReportedSchema is parsable/valid #4492
schema-reporting: Check whether overrideReportedSchema is parsable/valid #4492
Conversation
b2f6560
to
5a60140
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. We probably want to make a minor version bump for this, and a changelog.
5a60140
to
4100986
Compare
…eReportedSchema parses/validates
61ad418
to
9061ed1
Compare
@sachindshinde would you please add tests to cover this new option when you get the chance? If you can't (that's ok!) please open an issue that references this PR. Thank you 😄 |
@trevor-scheer I talked to David, when his large PR for |
The Apollo API has recently changed such that `reportServerInfo` will now return error for schemas that don't parse or validate. This PR changes `apollo-engine-reporting` to check in the `EngineReportingAgent` constructor whether override schemas successfully parse and validate, so that we may return early before talking to the Apollo API. (Originally #4492 by @sachindshinde, merged directly into release-2.18.0; because the main change being released with v2.18 is #4453 which entirely replaced the file which that PR changed, this is being reconstructed as part of PR #4453.)
Incorporated this change into #4453. I did not add the tests though; @sachindshinde, can you do so? (#4453 should merge into release-2.18.0 shortly.) |
The Apollo API has recently changed such that `reportServerInfo` will now return error for schemas that don't parse or validate. This PR changes `apollo-engine-reporting` to check in the `EngineReportingAgent` constructor whether override schemas successfully parse and validate, so that we may return early before talking to the Apollo API. (Originally #4492 by @sachindshinde, merged directly into release-2.18.0; because the main change being released with v2.18 is #4453 which entirely replaced the file which that PR changed, this is being reconstructed as part of PR #4453.)
@glasser Yep, I can add tests in a new PR 🙂 |
The Apollo API has recently changed such that
reportServerInfo
will now return error for schemas that don't parse or validate.This PR changes
apollo-engine-reporting
to check in theEngineReportingAgent
constructor whether override schemas successfully parse and validate, so that we may return early before talking to the Apollo API.