Releases: kimmelsg/cj-temporal-models
1.0.7
Fixing a bug with scheduling conflicts
Prevent the endOrDelete method (which is called from the deleting observer) from dropping back into the model observer when it updates.
If a temporal object should be ended instead of deleted, the end date update was actually being called on the object. This would cause the object to drop back into the updating observer which could get stuck in a loop. Now we are just doing the end date update on a query builder so that it does not trigger the event again.
Can look at cleaning this code up in the future.
Properly pass through the observer when a conflict is being resolved.
We were calling delete on the query builder which was ignoring the observer.
Fixing a bug with checking the primary key when it does not yet exist.
1.0.3 We should only be limiting by the primaryKey when the object has one …
Fixing a bug with removing scheduling conflicts.
The removal was being too greedy and getting rid of everything that was scheduled. Now it is more reasonable and only removes the ones that are actually conflicting.
5 second buffer to not in the past check.
Adding a small tolerance to the check that makes sure the valid_start is not in the past. This will prevent latency from causing an exception to be thrown.
Version 1.0
1.0.0 Removing incorrect property visibility.