Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2dca4c3
for entities parsed from json, add action entities from schema
cdisselkoen Sep 25, 2023
e439d17
Entities::from_entities adds actions from schema
cdisselkoen Sep 25, 2023
0b083d8
refactor entity-schema-conformance errors
cdisselkoen Oct 10, 2023
a741f9e
validate entities against schema
cdisselkoen Oct 13, 2023
9ee479a
more
cdisselkoen Oct 13, 2023
6916717
update changelog and add Entity::validate()
cdisselkoen Oct 13, 2023
f1f9040
tests
cdisselkoen Oct 16, 2023
4c80128
cargo fmt
cdisselkoen Oct 16, 2023
84be668
changelog tweaks
cdisselkoen Oct 16, 2023
debbb89
fix clippy
cdisselkoen Oct 17, 2023
ca4987e
Merge remote-tracking branch 'origin/main' into add-action-entities
cdisselkoen Oct 18, 2023
4bee8c4
adjust wording in comments
cdisselkoen Oct 18, 2023
38ba22b
fix bad merge
cdisselkoen Oct 18, 2023
dd5082f
cargo fmt
cdisselkoen Oct 18, 2023
e07d833
Apply suggestions from code review
cdisselkoen Oct 18, 2023
59e2b2f
renames suggested in code review
cdisselkoen Oct 18, 2023
84ad2b9
Update cedar-policy-core/src/entities/json/err.rs
cdisselkoen Oct 18, 2023
ee1acb6
tweak doc comment
cdisselkoen Oct 18, 2023
03274ae
Update cedar-policy-validator/src/schema.rs
cdisselkoen Oct 18, 2023
bf23cf3
fix tests
cdisselkoen Oct 18, 2023
0eac125
change wording in some docs
cdisselkoen Oct 19, 2023
3f85344
change wording in some more docs
cdisselkoen Oct 19, 2023
94835b6
rename val_into_rexpr
cdisselkoen Oct 19, 2023
e3f763d
add a note to a doc string
cdisselkoen Oct 19, 2023
0292dab
remove a panic
cdisselkoen Oct 19, 2023
ce306eb
remove more panics
cdisselkoen Oct 19, 2023
8d30a07
cargo fmt
cdisselkoen Oct 19, 2023
ac9bcb7
a number of tests require decimal extension, not just ipaddr
cdisselkoen Oct 20, 2023
670e3eb
Merge remote-tracking branch 'origin/main' into add-action-entities
cdisselkoen Oct 20, 2023
84df846
fix bad merge
cdisselkoen Oct 24, 2023
6dfef83
imports nit
cdisselkoen Oct 24, 2023
41a7a09
Apply suggestions from code review
cdisselkoen Oct 24, 2023
65ee245
more backticks in doc comments
cdisselkoen Oct 24, 2023
5426eea
fix doc comment
cdisselkoen Oct 24, 2023
ea002dc
update doc comment on private field
cdisselkoen Oct 24, 2023
6a59916
Merge branch 'main' into add-action-entities
cdisselkoen Oct 24, 2023
1aef41d
cargo fmt
cdisselkoen Oct 24, 2023
de4e2ee
reorg/simplify errors
cdisselkoen Oct 25, 2023
30b3e2c
Merge branch 'main' into add-action-entities
cdisselkoen Oct 26, 2023
2186ae5
Merge branch 'main' into add-action-entities
cdisselkoen Oct 26, 2023
8037b64
fix bad merge
cdisselkoen Oct 26, 2023
cce8ba8
Merge branch 'main' into add-action-entities
cdisselkoen Oct 26, 2023
588e76b
remove Entity::validate()
cdisselkoen Oct 27, 2023
f1fc487
fix tests
cdisselkoen Oct 27, 2023
e654278
fix warning
cdisselkoen Oct 27, 2023
22ca435
Merge branch 'main' into add-action-entities
cdisselkoen Oct 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions cedar-policy-core/src/ast/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,11 @@ impl Entity {
&self.attrs
}

/// Read-only access the internal `ancestors` hashset.
/// This function is available only inside Core.
pub(crate) fn ancestors_set(&self) -> &HashSet<EntityUID> {
&self.ancestors
/// Test if two `Entity` objects are deep/structurally equal.
/// That is, not only do they have the same UID, but also the same
/// attributes, attribute values, and ancestors.
pub(crate) fn deep_eq(&self, other: &Self) -> bool {
self.uid == other.uid && self.attrs == other.attrs && self.ancestors == other.ancestors
}

/// Set the given attribute to the given value.
Expand Down
Loading