Skip to content

Resolving "Me" in QueryField to current Human User #8

Description

@patrickwolf

Currently the code doesn't allow passing in the current human user (ie when the user has set "Me" as a filter.
At first look it seems like this would resolve this correctly

    def _create_filter_array(
..........
        if isinstance(value, dict):
            if value.get("valid") == "parent_entity_token":
                return [path, relation, parent_entity]
            **elif value.get("valid") == "logged_in_user_token":
                return [path, relation, currentHumandUser]**

currentHumanUser would be of format ie {"type": "HumanUser", "id": 88}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions