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 backward compatibility bug introduced in 4.5.3 that causes query to return a differnt type #633

Merged
merged 7 commits into from
Mar 30, 2022

Conversation

cleve-fauna
Copy link
Contributor

@cleve-fauna cleve-fauna commented Mar 30, 2022

Notes

4.5.3 introduced a bug that broke backward compatibility - it started returning a union of two types on query instead of just a single type.

This commit fixes that bug by reverting query to the old interface. It does so by:

  • disabling the ability of a user to configure a client such that it always returns metrics on query
  • disabling the ability to configure a query call with options to return metrics

Customers will instead need to use queryWithMetrics to get these metrics.

Testing

Pending circleci

faunaee
faunaee previously approved these changes Mar 30, 2022
Copy link
Contributor

@faunaee faunaee left a comment

Choose a reason for hiding this comment

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

Only performed a visual inspection, but LGTM! 👍

@cleve-fauna cleve-fauna merged commit 71085f0 into v4 Mar 30, 2022
@cleve-fauna cleve-fauna deleted the v4_4.5.4 branch March 30, 2022 00:31
@grempe
Copy link

grempe commented Mar 30, 2022

Thanks for the revert. This caused some pain and some hours.

@cleve-fauna
Copy link
Contributor Author

Thanks for the revert. This caused some pain and some hours.

Sorry for the bad release @grempe! Happy to hear you are unstuck.

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.

None yet

4 participants