Closed thedotmatrix closed 9 years ago
@salmans @Element
relations are now added to the base and the satIterator. I think the augmentation bug is fixed too. Can you run through the facebook example a couple of times to confirm before we close this?
I think something is broken after the last changes. This is my test-case:
Friends
with CanRead(e^100, e^5)
(e^5
is the content in this model)Friend
! I am expecting e^100
to be a friend of the person who shares the post.If I am not wrong, when we ran this test a few hours ago, the model was correctly augmented with such tuples.
I believe we used another query. Some remarks:
Read(e^100,e^5)
, not CanReadRead(u1, c) & Post(u2, c) => u1 = u2 | Friend(u1, u2) & permissionOf(c) = 'Friends | Friend(u1, u2) & permissionOf(c) = 'FriendsOfFriends | exists f . Friend(u1, f) & Friend(u2, f) & permissionOf(c) = 'FriendsOfFriends | permissionOf(c) = 'Public;
Let me know if you agree with these remarks.
My bad! A rule that forces every content to be posted by a user was missing. After I fixed the policy, augmentation is working as it should. I am closing this issue.
Thanks!
When augmenting, we have to add the @element relation for the new elements.
Concrete bug happening from this problem: Facebook example, Query when permission = OnlyMe Augment Read(e^100, e^2) we don't see e^100=e^4 (the new person is equal to the original person)