quickbird-uk / QuickbirdUWPDashboard

Quickbird UWP App and Server
http://www.quickbird.co.uk/
GNU General Public License v3.0
27 stars 7 forks source link

Should never happen: FOund a history with no enteries #71

Open VladimirAkopyan opened 6 years ago

VladimirAkopyan commented 6 years ago

What is it and why is it a problem?

VladimirAkopyan commented 6 years ago

This happens in a block that tries to get find the latest download for a given device. If that device has no data in the latest SensorHistory, we throw a warning. In reality, doing so is totally unnecessary. Need to just decide what to do in this case. Related to #77

VladimirAkopyan commented 6 years ago

I should edit the method to go back in time until it can find a SensorHistory record for that device. then we query from there, onwards. That way we have a consistent logic - the app only trusts the datapoints themselves as date-stamps. Nothing else qualifies. If you created 50 days after that - well, what the hell is creating all the data??

VladimirAkopyan commented 5 years ago

83