Skip to content

policy-engine: add a clear_checks entry point to reset the policy to empty in one call #473

Description

@Idaonoli

Scope

Resetting a policy-engine instance's checks today means calling remove_check once per entry, in reverse index order to avoid index-shift bugs. A single clear_checks call would be both more ergonomic and cheaper than N individual removals for an issuer reconfiguring their policy from scratch.

Acceptance criteria

  • Add clear_checks(admin) resetting the check list to empty in one call
  • Test covers clearing a non-empty policy and confirming get_checks() returns empty afterward

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions