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: persist enableGzipCompression setting on the base service #127

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

dpopp07
Copy link
Member

@dpopp07 dpopp07 commented Mar 11, 2021

When a new BaseService instance is created, the class settings are stored in an object
called baseOptions. Currently, when the setEnableGzipCompression method is called,
the enableGzipCompression setting is not changed and might no longer reflect the state
of the setting (because it is primarily tracked in the underlying RequestWrapper class).

This PR addresses this by persisting the setting in the baseOptions object when that method
is called so that the object always reflects the accurate value for the setting.

When a new `BaseService` instance is created, the class settings are stored in an object
called `baseOptions`. Currently, when the `setEnableGzipCompression` method is called,
the `enableGzipCompression` setting is not changed and might no longer reflect the state
of the setting (because it is primarily tracked in the underlying `RequestWrapper` class).

This PR addresses this by persisting the setting in the `baseOptions` object when that method
is called so that the object always reflects the accurate value for the setting.
@dpopp07 dpopp07 requested a review from padamstx March 11, 2021 18:04
Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

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

LGTM

@dpopp07 dpopp07 merged commit 1398044 into main Mar 12, 2021
@dpopp07 dpopp07 deleted the dp/persist-gzip-setting branch March 12, 2021 16:56
ibm-devx-automation pushed a commit that referenced this pull request Mar 12, 2021
## [2.8.2](v2.8.1...v2.8.2) (2021-03-12)

### Bug Fixes

* persist `enableGzipCompression` setting on the base service ([#127](#127)) ([1398044](1398044))
@ibm-devx-automation
Copy link

🎉 This PR is included in version 2.8.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants