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

Moved (PolicyId as FromStr)::Err to Infallible #588

Merged
merged 3 commits into from
Jan 18, 2024

Conversation

aaronjeline
Copy link
Contributor

@aaronjeline aaronjeline commented Jan 17, 2024

Description of changes

Moves the FromStr impl for PolicyId to be Infallible, since it never returns an Error.

Issue #, if available

551

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 this PR (choose one, and delete the other options):

  • Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).

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

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

Disclaimer

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

cedar-policy/src/api.rs Show resolved Hide resolved
@john-h-kastner-aws
Copy link
Contributor

@sarahcec I think this is the first breaking API change we've made since 3.0. Do we have somewhere we're tracking 4.0 changes?

@aaronjeline
Copy link
Contributor Author

Tracking ticket for updating tinytodo: cedar-policy/cedar-examples#91

@aaronjeline aaronjeline merged commit cfb5277 into main Jan 18, 2024
10 of 11 checks passed
@aaronjeline aaronjeline deleted the aaronjeline/issue551-b branch January 18, 2024 15:42
@sarahcec sarahcec added the 4.0 label Jan 23, 2024
john-h-kastner-aws added a commit that referenced this pull request Feb 16, 2024
john-h-kastner-aws added a commit that referenced this pull request Feb 19, 2024
@john-h-kastner-aws john-h-kastner-aws added the breaking-change This is (likely) a breaking change label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0 breaking-change This is (likely) a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants