-
Notifications
You must be signed in to change notification settings - Fork 1
Assignment Details Part 6 of 7: Public assignment details methods #181
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
base: aarsilv/ffesupport-378/part5-unwrap-eppo-value
Are you sure you want to change the base?
Assignment Details Part 6 of 7: Public assignment details methods #181
Conversation
f80e705 to
30e0c46
Compare
a8c6ead to
7f89ced
Compare
| runTestCase(testCase, eppoClient); | ||
| } | ||
|
|
||
| @ParameterizedTest |
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.
Run through all our shared test cases, obfuscated and not, now checking details too 💪
| eppoClient.getDoubleAssignment("numeric_flag", "alice", new Attributes(), 0.0); | ||
|
|
||
| assertEquals(3.1415926, assignment, 0.0000001); | ||
| AssignmentDetails<Double> assignmentDetails = |
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.
Threw some details checking into this test as well so we could more easily iterate without having to run dozens of files
| eppoClient.getBooleanAssignment( | ||
| flagKey, subjectKey, subjectAttributes, defaultValue.booleanValue()); | ||
| assertAssignment(flagKey, subjectAssignment, boolAssignment); | ||
| if (validateDetails) { |
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.
Have our testing scaffolding call and assert the results of the details methods now if we're validating details.
📚Assignment Details Stacked Pull Requests📚
☑️ AssignmentDetails return object and supporting classes (#175)
☑️ Parse more UFC metadata (#176)
☑️ Ingest details part of shared test cases (#177)
☑️ FlagEvaluator computes details (#183)
☑️ Ability to unwrap EppoValue to a given type (#184)
👉 Public assignment details methods (#181)
🔲 Bandit details (#182)
Eppo Internal
🎟️ Ticket: FFESUPPORT-378 - Implement assignment details for common Java core
Motivation and Context
We want to bring detailed assignment capabilities (e.g.,
get<Type>Details()) to Android and Java SDKs.Description
This pull request finally adds the
get<Type>Details()methods!How has this been documented?
Documentation will be updated for the upstream SDKs once this is incorporated into them
How has this been tested?
Added parameterized tests to run our shared test data, which includes details, in
BaseEppoClientTeset