-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add Entity Slicing using Entity Manifests to Cedar #1105
Conversation
This PR stacks on top of #1102 |
Looks like changing the API for cedar testing broke downstream dependencies build |
9a1ad2c
to
d01fc15
Compare
2c99077
to
a1243fc
Compare
e02a451
to
cb1188b
Compare
2445b74
to
ad8e43b
Compare
2592e0b
to
1b72442
Compare
ad8e43b
to
3604eba
Compare
1b72442
to
7d3b2e7
Compare
Signed-off-by: oflatt <[email protected]> fix up after rebase Signed-off-by: oflatt <[email protected]> more bad rebase cleanup Signed-off-by: oflatt <[email protected]> more small cleanup Signed-off-by: oflatt <[email protected]> some cleanup Signed-off-by: oflatt <[email protected]> separate entity slicing from manifest file Signed-off-by: oflatt <[email protected]> remove simple entity loader for now Signed-off-by: oflatt <[email protected]> exhaustive Signed-off-by: oflatt <[email protected]> fix up testing infra with feature flag Signed-off-by: oflatt <[email protected]> nits Signed-off-by: oflatt <[email protected]> fix up should panic Signed-off-by: oflatt <[email protected]> remove use of panic from testing infra Signed-off-by: oflatt <[email protected]> nits Signed-off-by: oflatt <[email protected]> entity manifest cfg Signed-off-by: oflatt <[email protected]> make errors more reusable Signed-off-by: oflatt <[email protected]> revert cedar testing changes Signed-off-by: oflatt <[email protected]> fmt Signed-off-by: oflatt <[email protected]>
7d3b2e7
to
484a00c
Compare
Signed-off-by: oflatt <[email protected]>
@@ -318,6 +318,49 @@ pub struct Entity { | |||
} | |||
|
|||
impl Entity { | |||
/// The implementation of [`Eq`] and [`PartialEq`] for |
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.
Can you add the feature flag to core as well?
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.
Or generally, do you need changes to core at all? It seems you can put everything into the validator.
Closed in favor of a single PR. |
Description of changes
This PR allows users of Cedar to get an entity slice of an existing
Entities
store using the entity manifest.Mainly this is useful for testing entity manifests. However, it may also be useful for users to load all entities in to memory, but only send a slice over the network to a server.
Later, I re-implemented most of this code in #1208. You can squash this code with all the PRs on top of it into one giant PR, or just review this and then review the replacement.
PR stack:
#1102 (Merged)
#1105 (This PR)
#1154
#1156
#1171
#1196
#1208
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.)