You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would check whether the Transaction has any changes from the target Repository.
For the implementations we have now, the check would be easy to implement and cheap:
For the base class, it's changes.inserts.empty? && changes.deletes.empty?;
For the SerializableTransaction it's a simple object equality check on two Hamster::Hash instances.
For other transactions, things might not be so easy. We could recommend NotImplementedError in that case, or provide an API like #<=>'s nil for "not comparable".
This would check whether the
Transaction
has any changes from the targetRepository
.For the implementations we have now, the check would be easy to implement and cheap:
changes.inserts.empty? && changes.deletes.empty?
;SerializableTransaction
it's a simple object equality check on twoHamster::Hash
instances.For other transactions, things might not be so easy. We could recommend
NotImplementedError
in that case, or provide an API like#<=>
'snil
for "not comparable".As a motivating use case, see: samvera/ldp#28 (comment)
The text was updated successfully, but these errors were encountered: