-
Notifications
You must be signed in to change notification settings - Fork 80
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
Andrewmwells/protobufs #1277
Andrewmwells/protobufs #1277
Conversation
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Brandon Rozek <[email protected]>
Signed-off-by: Andrew Wells <[email protected]>
Signed-off-by: Andrew Wells <[email protected]>
Signed-off-by: Andrew Wells <[email protected]>
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 like reasonable code and well tested, happy to accept it under an experimental flag
Signed-off-by: Andrew Wells <[email protected]>
Signed-off-by: Andrew Wells <[email protected]>
…date Signed-off-by: Andrew Wells <[email protected]>
Java failure unrelated: https://github.com/cedar-policy/cedar-java/actions/runs/11450246364/job/31857349986?pr=243 |
Signed-off-by: Andrew Wells <[email protected]>
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.
LGTM.
} | ||
|
||
#[cfg(feature = "protobufs")] | ||
impl From<&Expr> for proto::Expr { |
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.
Maybe change this to TryFrom
to avoid unimplemented
?
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.
The obvious way to do this would require exposing a protobuf decode error upstream. I need to think more about the right approach, but I think this is ok for an experimental feature.
@@ -840,6 +840,307 @@ impl std::fmt::Display for Unknown { | |||
} | |||
} | |||
|
|||
#[cfg(feature = "protobufs")] | |||
impl From<&proto::Expr> for Expr { | |||
// PANIC SAFETY: experimental feature |
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.
Nit: maybe this comment should be more specific?
Signed-off-by: Andrew Wells <[email protected]>
…ith Cedar schema Signed-off-by: Andrew Wells <[email protected]>
Signed-off-by: Andrew Wells <[email protected]>
Signed-off-by: Andrew Wells <[email protected]>
Signed-off-by: Andrew Wells <[email protected]>
This reverts commit 6b16db5. Signed-off-by: Shaobo He <[email protected]>
Description of changes
Issue #, if available
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):(Updates not required, but will be made based on https://github.com/Brandon-Rozek/cedar-spec)
I confirm that
docs.cedarpolicy.com
(choose one, and delete the other options):