Skip to content
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

Allow schema reporting via environment variable #4206

Merged
merged 3 commits into from
Jun 10, 2020

Conversation

jsegaran
Copy link
Contributor

@jsegaran jsegaran commented Jun 4, 2020

Allow enabling schema reporting via setting APOLLO_SCHEMA_REPORTING to true.

@jsegaran jsegaran requested a review from zionts June 4, 2020 22:32
@jsegaran jsegaran force-pushed the jsegaran/schema_report_env_var branch from 2d613cf to 7a7dbdd Compare June 4, 2020 22:37
@jsegaran jsegaran requested a review from abernix June 4, 2020 22:38
@@ -407,6 +408,13 @@ export class EngineReportingAgent<TContext = any> {
);
}


if (options.experimental_schemaReporting !== undefined) {
this.schemaReport = options.experimental_schemaReporting;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also add an options.schemaReporting as well and deprecate the old one, or do you want to do that in another PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather deprecate the field in a different PR. I think it should be in 2.15

Copy link
Contributor

@zionts zionts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :) + wanna add the GM- ticket in the desc?

Copy link
Member

@abernix abernix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think with a CHANGELOG.md, this is good to go!

@jsegaran jsegaran force-pushed the jsegaran/schema_report_env_var branch from 65607b3 to 4c41abc Compare June 10, 2020 23:21
@jsegaran jsegaran merged commit 6b342ca into master Jun 10, 2020
@abernix abernix added this to the Release 2.14.4 milestone Jun 12, 2020
@abernix abernix deleted the jsegaran/schema_report_env_var branch July 1, 2020 20:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants