Skip to content

Add syntax sugar for min_approvals #78

Open

Description

From @sshahcodes

Can we abstract the lamda function so that users only need to write:

(RequestPolicy.names == ("access-stage",))
& (RequestPolicy.names.min_approvals(1))

instead of:

(RequestPolicy.names == ("access-stage",))
& (
RequestPolicy.names.for_each(
lambda x: RequestPolicy.approvals[x].len() > 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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