-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat!: update to sdk 0.3.0 #116
Conversation
a0f13c1
to
aa4e226
Compare
@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. |
@@ -215,8 +218,7 @@ private <T> ProviderEvaluation<T> resolveEvaluationGoFeatureFlagProxy( | |||
} | |||
|
|||
return ProviderEvaluation.<T>builder() | |||
.errorCode(goffResp.getErrorCode()) |
There was a problem hiding this comment.
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.
aa4e226
to
a8ae38c
Compare
a8ae38c
to
3a5aa8b
Compare
Signed-off-by: Todd Baert <[email protected]>
3a5aa8b
to
c763aeb
Compare
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
// 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); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reasons are strings now.
There was a problem hiding this 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 👌
Absorbs most recent SDK changes. Pretty easy changes for the most part.