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: make exposing segment data backwards compatible #575

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

andreas-unleash
Copy link
Contributor

This PR makes the changes to getFeatureToggleDefinitions (ie exposing the segment data) backwards compatible by adding overload functions.

This will (appropriately) make the changes non breaking

return this.repository.getTogglesWithSegmentData();
}
return this.repository.getToggles();;
if (withFullSegments === true) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Writing the check like this, helps typescript type inference

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

LGTM

@coveralls
Copy link

Coverage Status

coverage: 90.834% (-0.006%) from 90.84%
when pulling 0614edf on fix/make_backwards_compatible
into 7c5406e on main.

@andreas-unleash andreas-unleash merged commit 7a4d6d9 into main Feb 1, 2024
4 checks passed
@andreas-unleash andreas-unleash deleted the fix/make_backwards_compatible branch February 1, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants