There is an assumption of homogeneity between HSAccess and HSAccessObjects responses that should be constantly and consistently verified, regardless of the state changes involved. For example,
resource.is_owned() should always return the exact same thing as hsaccess.resource_is_owned(resource.get_uuid()).
However, for purposes of performance, these are implemented differently: HSAccess via direct database queries and HSAccessObjects via cached metadata. .
Thus it is necessary to check that they are always in sync.
There is an assumption of homogeneity between HSAccess and HSAccessObjects responses that should be constantly and consistently verified, regardless of the state changes involved. For example, resource.is_owned() should always return the exact same thing as hsaccess.resource_is_owned(resource.get_uuid()).
However, for purposes of performance, these are implemented differently: HSAccess via direct database queries and HSAccessObjects via cached metadata. .
Thus it is necessary to check that they are always in sync.