Skip to content

Conversation

@toddbaert
Copy link
Member

@toddbaert toddbaert commented Oct 6, 2022

Absorbs most recent SDK changes. Pretty easy changes for the most part.

@toddbaert toddbaert force-pushed the feat/update-sdk branch 2 times, most recently from a0f13c1 to aa4e226 Compare October 6, 2022 17:26
@toddbaert toddbaert requested a review from beeme1mr October 6, 2022 17:26
@toddbaert toddbaert changed the title wip feat!: udpate to sdk 0.3.0 Oct 6, 2022
@toddbaert
Copy link
Member Author

@thomaspoignant please take a look at the goff changes. Similar to Node, they are mostly about reason/error code. If this doesn't make sense, let me know, or push changes!

Note: this is to absorb the UNRELEASED Java changes.

@toddbaert toddbaert marked this pull request as draft October 6, 2022 17:28
}

return ProviderEvaluation.<T>builder()
.errorCode(goffResp.getErrorCode())
Copy link
Member Author

@toddbaert toddbaert Oct 6, 2022

Choose a reason for hiding this comment

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

I removed the error code here. I think that if we got this far, we don't need the error? Otherwise we should probably throw.

I think this is the biggest GOFF change I made.

@thomaspoignant

@beeme1mr beeme1mr changed the title feat!: udpate to sdk 0.3.0 feat!: update to sdk 0.3.0 Oct 6, 2022
Signed-off-by: Todd Baert <toddbaert@gmail.com>
Signed-off-by: Todd Baert <toddbaert@gmail.com>
@toddbaert toddbaert marked this pull request as ready for review October 13, 2022 12:00
Signed-off-by: Todd Baert <toddbaert@gmail.com>
Comment on lines -162 to -170
// Map FlagD reasons to Java SDK reasons.
private Reason mapReason(String flagdReason) {
if (!EnumUtils.isValidEnum(Reason.class, flagdReason)) {
return Reason.UNKNOWN;
} else {
return Reason.valueOf(flagdReason);
}
}

Copy link
Member Author

Choose a reason for hiding this comment

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

reasons are strings now.

Copy link
Member

@thomaspoignant thomaspoignant left a comment

Choose a reason for hiding this comment

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

Sorry for the late review.
This is actually perfect, thanks for the change 👌

@toddbaert toddbaert merged commit 8933bb9 into main Oct 13, 2022
@toddbaert toddbaert deleted the feat/update-sdk branch October 13, 2022 15:03
@github-actions github-actions bot mentioned this pull request Oct 13, 2022
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.

4 participants