Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syntax sugar for min_approvals #78

Open
klizhentas opened this issue Jan 11, 2023 · 0 comments
Open

Add syntax sugar for min_approvals #78

klizhentas opened this issue Jan 11, 2023 · 0 comments

Comments

@klizhentas
Copy link
Collaborator

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant