Skip to content

Conversation

@aarsilv
Copy link
Contributor

@aarsilv aarsilv commented Dec 10, 2025

📚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

@aarsilv aarsilv force-pushed the aarsilv/ffesupport-378/part6-details-in-eppo-client branch from a8c6ead to 7f89ced Compare December 11, 2025 02:32
runTestCase(testCase, eppoClient);
}

@ParameterizedTest
Copy link
Contributor Author

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 =
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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.

@aarsilv aarsilv marked this pull request as ready for review December 11, 2025 02:53
@aarsilv aarsilv requested a review from sameerank December 11, 2025 02:54
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.

3 participants