Counts seem to mostly be working now in Radio2, but I have spotted a problem.
I posted an item that didn't have a link. It's count should be zero -- but it's actually 17970.
Let's find out why it's doing it.
It turns out it does have a shortened link, http://37.blork.ly/ but the longUrl is the empty string.
The URL shortener is saying it had that many hits, so the problem is not wholly in Radio2.
In radio2Suite.shortener.getCounts, don't record counts for posts whose link is empty.
Maintenence flag on Radio2 to zero the counts for all posts with empty links or shortened links.
In the RPC handler that returns the counts, don't return a count for items that have empty longUrls.
When a request comes in to shorten an empty longUrl, throw an error.
Maintenence flag to remove all items with empty longUrls.
In radio2Suite.viewHistory, when displaying a zero count, display a blank instead.