12/3/2013 11:47:41 AM
an account API call and BlockingStates DAO calls
when building EventStreams for add-ons.
This also removes BlockingStateDao#getBlockingHistoryForService
and BlockingStateDao#getBlockingAll, as they were not used anymore.
Not only this lets us greatly simplify ProxyBlockingStateDao, but
also helped us discover two bugs in BlockingStateDao#getBlockingAllForAccountRecordId:
* cancellationBlockingStateOnDisk was not computed in ProxyBlockingStateDao#addBlockingStatesNotOnDisk
when called via getBlockingAllForAccountRecordId
* ProxyBlockingStateDao#addBlockingStatesNotOnDisk was filtering out subscriptions
which were billing cancelled (regardless of their entitlement status)
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
12/5/2013 10:02:41 PM
back from a LocalDate in account TZ to
fully qualified UTC DateTime, based on the referenceTime.
The implementation simply keeps the offset (number of days) that was substracted/added when we initially
converted the DateTime into Localdate (account TZ), and use that imformation to do the reverse operation.
|
|
|
|
|
12/2/2013 7:30:17 PM
to ID level this is predictable
|
|
|
12/2/2013 4:32:32 PM
Meyer <pierre@mouraf.org>
|
|
|
12/2/2013 4:14:56 PM
the recent optimization iterations, the timeline
API was broken and didn't return blocking states for
non-entitlement services anymore.
This patch fixes it and optimizes the entitlement code a bit further
by limiting the amount of DAO calls in blocking states.
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
|
12/2/2013 9:32:12 AM
into junction-bug-fixes
|