Skip to content

fix: restore allow setting engine: false to ignore env var#2850

Merged
cheapsteak merged 3 commits into
masterfrom
chang/fix/restore-engine-false-no-env
Jun 21, 2019
Merged

fix: restore allow setting engine: false to ignore env var#2850
cheapsteak merged 3 commits into
masterfrom
chang/fix/restore-engine-false-no-env

Conversation

@cheapsteak

Copy link
Copy Markdown
Contributor

Followup to fix unintended side effect of #2685 that David discovered where setting engine: false would no longer ignore the ENGINE_API_KEY environment variable

const engineApiKey = getEngineApiKey(engine);
if (engineApiKey) {

if (engine !== false && engineApiKey) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems like this logic should be in getEngineApiKey?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

indeed, fixed

@cheapsteak cheapsteak force-pushed the chang/fix/restore-engine-false-no-env branch 3 times, most recently from 2e60f4f to c91f835 Compare June 14, 2019 20:20

@glasser glasser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

oops, missed that this was blocked on me

Comment thread CHANGELOG.md Outdated
- `apollo-federation`: Deduplicate variable definitions for subqueries [PR #2840](https://github.com/apollographql/apollo-server/pull/2840)
- `apollo-federation`: Preserve docstrings in SDL of federated services. [PR #2830](https://github.com/apollographql/apollo-server/pull/2830)
- `apollo-engine-reporting`: Set `forbiddenOperation` and `registeredOperation` later in the request lifecycle [PR #2828](https://github.com/apollographql/apollo-server/pull/2828)
- `apollo-server-core`: Bug fix: Setting `engine: false` should ignore `ENGINE_API_KEY` in environment variable [PR #2850](https://github.com/apollographql/apollo-server/pull/2850)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

although the changelog should note that this was a regression introduced in 2.6.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ah, good idea, will add!

@cheapsteak cheapsteak force-pushed the chang/fix/restore-engine-false-no-env branch from c046802 to 639476a Compare June 21, 2019 19:05
@cheapsteak cheapsteak merged commit 06df626 into master Jun 21, 2019
@abernix abernix deleted the chang/fix/restore-engine-false-no-env branch June 25, 2019 10:16
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 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