Skip to content

Feature Flags: output of getAllVariants() method cannot be associated with a flag key #68

@griswold

Description

@griswold

The getAllVariants() method currently returns List<SelectedVariant<Object>>.

SelectedVariant does not include any reference to the flag key for which it is a variant, so there is no way to associate the output of this method with a specific feature flag.

Mixpanel SDKs for other languages (e.g. python, node) address this by returning a dictionary that maps a flag key to variant information. So in this case, a method with a return type of Map<String, SelectedVariant<Object>> would be most consistent with other SDKs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions