Skip to content

Conversation

@aaronjeline
Copy link

Description of changes

Some quick refinements based on public feedback:

  1. methods like may_be_determining and must_be_determining now return Policy instead of PolicyID. This makes iterating over them much more ergonomic
  2. Methods like get now return a Policy instead of an Expr, allowing you to grab the policy annotations as well if you want them
  3. Removed nontrivial_residual_ids() as it's a trivial map on nontrivial_residuals now

Issue #, if available

N/A

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A breaking change requiring a major version bump to cedar-policy (e.g., changes to the signature of an existing API).

I confirm that cedar-spec (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

@aaronjeline aaronjeline force-pushed the aaronjeline/pe-api-cleanup branch from c926c6b to e35ebc0 Compare April 25, 2024 16:41
@aaronjeline aaronjeline force-pushed the aaronjeline/pe-api-cleanup branch from e35ebc0 to 18d01ef Compare April 25, 2024 17:47
Signed-off-by: Aaron Eline <[email protected]>
Co-authored-by: Craig Disselkoen <[email protected]>
@aaronjeline aaronjeline force-pushed the aaronjeline/pe-api-cleanup branch from 4b8a038 to c404377 Compare April 25, 2024 17:58
@aaronjeline aaronjeline merged commit dbf1d2a into main Apr 25, 2024
@aaronjeline aaronjeline deleted the aaronjeline/pe-api-cleanup branch April 25, 2024 19:18
@aaronjeline aaronjeline mentioned this pull request May 7, 2024
3 tasks
john-h-kastner-aws pushed a commit that referenced this pull request May 7, 2024
Signed-off-by: Aaron Eline <[email protected]>
Co-authored-by: Craig Disselkoen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants