Skip to content

Conversation

@shaobo-he-aws
Copy link
Contributor

@shaobo-he-aws shaobo-he-aws commented Feb 27, 2024

Description of changes

#457 contains the fixes of #456 for release 2.4.

Issue #, if available

Checklist for requesting a review

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

  • A bug fix or other functionality change requiring a patch to cedar-policy.

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 formal 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.

Now it will not, since we know `{"foo": 5} has bar` is `False`, and the
validator will return an error for a policy that can never fire.
- Removed deprecated `__expr` escapes from integration tests.
- Calling `add_template` with a `PolicyId` that is an existing link will now error.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's more than just add_template right? Also add and link?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR just fixes the function. The comments of add and link probably are added to be more informative?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. this only changes add_template.

Now it will not, since we know `{"foo": 5} has bar` is `False`, and the
validator will return an error for a policy that can never fire.
- Removed deprecated `__expr` escapes from integration tests.
- Calling `add_template` with a `PolicyId` that is an existing link will now error.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. this only changes add_template.

@khieta
Copy link
Contributor

khieta commented Feb 28, 2024

I assume the PR title should say 2.4.x instead of 2.5.x?

@shaobo-he-aws shaobo-he-aws merged commit 7aa26f1 into release/2.4.x Feb 28, 2024
@shaobo-he-aws shaobo-he-aws deleted the backport/shaobo/add_template branch February 28, 2024 18:01
@khieta khieta changed the title Backport #457 to 2.5.x Backport #457 to 2.4.x Mar 4, 2024
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

Successfully merging this pull request may close these issues.

5 participants