-
Notifications
You must be signed in to change notification settings - Fork 108
Cedar Generalized Templates #1669
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
Conversation
Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
… slots in protobuf format Signed-off-by: Alan Wang <[email protected]>
Coverage ReportHead Commit: Base Commit: Download the full coverage report. Coverage of Added or Modified Lines of Rust CodeRequired coverage: 80.00% Actual coverage: 82.40% Status: PASSED ✅ Details
Coverage of All Lines of Rust CodeRequired coverage: 80.00% Actual coverage: 83.04% Status: PASSED ✅ Details
|
cdisselkoen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple minor comments.
I also wonder if we can write more tests for this functionality yet, or does that have to wait for a future PR that completes the CST-to-AST functionality?
Signed-off-by: Alan Wang <[email protected]>
I think tests for the EST portion of the changes will need to wait until the CST-to-AST function is completed. |
Coverage ReportHead Commit: Base Commit: Download the full coverage report. Coverage of Added or Modified Lines of Rust CodeRequired coverage: 80.00% Actual coverage: 81.75% Status: PASSED ✅ Details
Coverage of All Lines of Rust CodeRequired coverage: 80.00% Actual coverage: 83.03% Status: PASSED ✅ Details
|
Signed-off-by: Alan Wang <[email protected]>
Coverage ReportHead Commit: Base Commit: Download the full coverage report. Coverage of Added or Modified Lines of Rust CodeRequired coverage: 80.00% Actual coverage: 81.75% Status: PASSED ✅ Details
Coverage of All Lines of Rust CodeRequired coverage: 80.00% Actual coverage: 83.03% Status: PASSED ✅ Details
|
…ized template annotations and values associated with generalized slots Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
…e template Signed-off-by: Alan Wang <[email protected]>
…king for generalized_template_interp Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
Signed-off-by: Alan Wang <[email protected]>
Description of changes
Changes for Cedar Generalized Templates . Currently this this works for when a Schema is provided. The API end point that is exposed to end users are a function that allows for the creation of generalized slots and generalized_link which allows users to also provide values besides EntityUIDs.
Issue #, if available
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy(e.g., changes to the signature of an existing API).cedar-policy(e.g., addition of a new API).cedar-policy.cedar-policy-core,cedar-validator, etc.)I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec(choose one, and delete the other options):cedar-spec, and how you have tested that your updates are correct.)cedar-spec. (Post your PR anyways, and we'll discuss in the comments.)I confirm that
docs.cedarpolicy.com(choose one, and delete the other options):cedar-docs. PRs should be targeted at astaging-X.Ybranch, notmain.)