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

fix: report APQ hit/registration when sendHeaders is disabled. #3986

Merged

Conversation

abernix
Copy link
Member

@abernix abernix commented Apr 15, 2020

This APQ flag reporting was almost surely a mistake from the past, causing this APQ boolean to not be properly set when the request was, in fact, an APQ request, unless sendHeaders was enabled - which it is not by default after the change that released it.

Ref: https://github.com/apollographql/apollo-server/pull/2931/files#diff-24ae042112f9dcc18543ac851c4d8f7cR97-R102

TODO

  • CHANGELOG.md

This APQ flag reporting was almost surely changed incorrectly in #2931 and
not caught during review, causing this APQ boolean to not be properly set
when the request was, in fact, an APQ request, unless `sendHeaders` was
enabled - which it is _not_ by default after the change that released it.

Ref: https://github.com/apollographql/apollo-server/pull/2931/files#diff-24ae042112f9dcc18543ac851c4d8f7cR97-R102
@abernix abernix changed the base branch from master to release-2.13.0 April 15, 2020 14:15
Copy link
Member

@glasser glasser left a comment

Choose a reason for hiding this comment

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

This actually dates back to the initial implementation of setting those fields (in an unreviewed commit by me in a since-deleted repository). I am pretty sure your fix is correct, but update the message to not incorrectly point fingers at yourself and Helen :)

@abernix abernix added this to the Release 2.13.0 milestone Apr 15, 2020
@abernix abernix merged commit 7af676b into release-2.13.0 Apr 16, 2020
@abernix abernix deleted the abernix/fix-apq-hit-registration-sendHeaders-disabled branch April 16, 2020 09:29
@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.

2 participants