Sunrise/Sunset Times should be retrieved online sparingly

Bug #1200405 reported by Nekhelesh Ramananthan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Fix Released
Medium
Andrew Starr-Bochicchio

Bug Description

Currently the sunrise/sunset times is obtained using the online API every time the clock app is opened or specifically when the location is changed. It would be better if there was some data caching such that if the location remains the same, then the clock app retrieves the sunrise/sunset times only once per day. So irrespective of the number of times the clock app is opened, it should only get retrieve it from the online API if it has been a day since it was last retrieved.

-----------------------------------------------------------------------------------------
Solution to the bug

When sunrise/sunset times are retrieved from the online API, the date and the sunrise/sunset times should be stored into the local database to remember the last time when it was retrieved online. Modify EasterEgg.qml to check the date and if necessary fetch online, otherwise just show the saved sunrise/sunset times.

Difficulty: Medium

Tags: clock hackday

Related branches

description: updated
Changed in ubuntu-clock-app:
milestone: coreapps-13.10-month-3 → usable-state
Changed in ubuntu-clock-app:
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
status: Triaged → In Progress
David Planella (dpm)
Changed in ubuntu-clock-app:
milestone: usable-state → hack-days-1309
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-clock-app at revision 178, scheduled for release in ubuntu-clock-app, milestone usable-state

Changed in ubuntu-clock-app:
status: In Progress → Fix Committed
Changed in ubuntu-clock-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.