Skip to content

Get all flags of the visitor #10

@macsikora

Description

@macsikora

Hey, the issue I have is related to not Python itself but in general SDK interface (but I am interested specially in Python).
The REST Api provided by flagship has smth like mergedModifications - https://docs.developers.flagship.io/docs/decision-api#full. So object which contains all flags for a given visitor. Unfortunately current SDK do not provide easy way to get these merged flags. We only have methods which allow for getting value of one flag by key.

Why i need this?

I want to have custom end point which provides visitor flags in order to expose frontends only to flags and not to any additional third party.

How I am doing it now:

Current SDK forces me to transform visitor._modifications into key: value dict.

Risks:

Naturally using aliased as private resource make this solution vulnerable for any SDK updates.

Feature request

What I would see is just method like getAllModifications which provides dictionary of all merged flags of the visitor. Other solution for me is to use Decision API and not use the SDK at all.

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