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: int/float auto-conversion #472

Merged
merged 5 commits into from
Oct 9, 2023

Conversation

DBlanchard88
Copy link
Contributor

@DBlanchard88 DBlanchard88 commented Oct 6, 2023

  • Added conversion logic to convert integers to float and floats to integers.
  • Created two in process resolver tests to check conversions
  • un-commented float/double in Step definitions

Fixes: #470

Signed-off-by: DBlanchard88 <davidblanchard88@gmail.com>
Signed-off-by: DBlanchard88 <davidblanchard88@gmail.com>
Signed-off-by: DBlanchard88 <davidblanchard88@gmail.com>
@toddbaert toddbaert self-requested a review October 7, 2023 01:42
Copy link
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

Thanks for the fix and the testing @DBlanchard88 . Approved, but I will wait to see if @Kavindu-Dodan has a more elegant approach for this. If not, I will merge.

Copy link
Collaborator

@Kavindu-Dodan Kavindu-Dodan left a comment

Choose a reason for hiding this comment

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

LGTM

@toddbaert feel free to go ahead with the merge :)

@toddbaert
Copy link
Member

LGTM

@toddbaert feel free to go ahead with the merge :)

Sure I'll wait a bit for @DBlanchard88 to check out your suggestion.

…s/flagd/resolver/process/InProcessResolver.java

Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Signed-off-by: David Blanchard <89858058+DBlanchard88@users.noreply.github.com>
@toddbaert toddbaert changed the title fix: float to int conversion and testing fix: int/float auto-conversion Oct 9, 2023
@toddbaert toddbaert merged commit 63b541c into open-feature:main Oct 9, 2023
5 checks passed
@DBlanchard88 DBlanchard88 deleted the fix/floatbug branch October 9, 2023 17:28
DBlanchard88 pushed a commit to DBlanchard88/java-sdk-contrib that referenced this pull request Apr 29, 2024
…ure#472)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

[flagd/in-process] float flags with 0.0 value are parsed as ints
4 participants