Merge lp:~vthompson/ubuntu-weather-app/reboot-location-qml into lp:ubuntu-weather-app
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Victor Thompson on 2015-05-29 | ||||||||
| Approved revision: | 46 | ||||||||
| Merged at revision: | 44 | ||||||||
| Proposed branch: | lp:~vthompson/ubuntu-weather-app/reboot-location-qml | ||||||||
| Merge into: | lp:ubuntu-weather-app | ||||||||
| Diff against target: |
110 lines (+73/-1) 4 files modified
app/components/CurrentLocation.qml (+62/-0) app/ubuntu-weather-app.qml (+4/-0) app/ui/LocationsPage.qml (+4/-0) ubuntu-weather-app.apparmor (+3/-1) |
||||||||
| To merge this branch: | bzr merge lp:~vthompson/ubuntu-weather-app/reboot-location-qml | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Borho | 2015-05-26 | Approve on 2015-05-27 | |
| Andrew Hayzen | Approve on 2015-05-26 | ||
| Alan Pope πΊπ§π± π¦ | 2015-05-19 | Approve on 2015-05-20 | |
| Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve on 2015-05-20 | |
|
Review via email:
|
|||
Commit Message
* Implement QtLocation reverse geocoding
* Use Open Street Map plugin
* Update apparmor
Description of the Change
* Implement QtLocation reverse geocoding
* Use Open Street Map plugin
* Update apparmor
This simply displays the reverse geocoded city name in the LocationsPage at the first item. This uses the QtLocations QML API for Location models and utilizes the OSM plugin for reverse geocoding. The Nokia HERE plugin did not appear to support reverse geocoding and also required an API key. It may take a bit for the "Undefined" text to change to your current GPS location.
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Can you explain what I should see with this branch?
Is it supposed to show when Locations page is empty?
http://
| Victor Thompson (vthompson) wrote : | # |
It should always add an item in that view. Are you on RTM? If so, maybe
there's something missing in that image. You should get prompted to share
your location. Could you attach your weather app log?
On May 19, 2015 4:15 AM, "Alan Pope ξΏ" <email address hidden> wrote:
> Can you explain what I should see with this branch?
> Is it supposed to show when Locations page is empty?
> http://
>
> --
>
> https:/
> You are the owner of lp:~vthompson/ubuntu-weather-app/reboot-location-qml.
>
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Just tested on my devel proposed phone which appears to be wily now..
phablet@
current build number: 218
device name: krillin
channel: ubuntu-
last update: 2015-05-19 08:35:36
version version: 218
version ubuntu: 20150519
version device: 20150511-3912934
version custom: 20150519
phablet@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Wily Werewolf (development branch)
Release: 15.10
Codename: wily
I get a blank screen if I remove the last city, and the main screen shows a bouncer at the bottom with nothing else going on.
http://
| Victor Thompson (vthompson) wrote : | # |
@popey, this is similar to what you should see initially [1], then once you get a lock on your location you should see something like this [2].
If you remove the only real city in the list, then yes, right now you get the bouncer on the main screen--we still need empty states for this condition.
1 - http://
2 - http://
- 45. By Victor Thompson on 2015-05-20
-
Minimize update of current location.
- 46. By Victor Thompson on 2015-05-20
-
Add TODO note
PASSED: Continuous integration, rev:46
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Ok, that makes more sense, and works as expected.
| Andrew Hayzen (ahayzen) wrote : | # |
After ensuring that the location service is actually working by using google/here maps. I was able to start weather, accept the location detection and it instantly added it to the top of the list :-)
However it always displays 0Β°C for the location and it hasn't actually added the location to the home page so this causes issues such as trying to remove the last location as the indexes are out of sync. Or is this what your TODO message is saying will be in a future mp?
Also maybe "undefined" is not the best word to use that could appear in the UI and this string should be translatable.
| Alan Pope πΊπ§π± π¦ (popey) wrote : | # |
Agreed on the name. "Detecting location" (or something shorter / snappier) might be more prudent. Perhaps just "Current location" which then switches to the real location name when discovered?
| Victor Thompson (vthompson) wrote : | # |
The intent of this MP is just to add location detection. We'll need more work for managing the current location. I also don't think we'll want to show "Undefined", but this MP does so because without explicitly managing the location that is being detected _something_ needs to be in the model. We could hide it in the future if it's invalid/undefined or add some different text. Right now this just displays the discovered location. This MP doesn't add enough of the discovered data to allow for the Weather API calls to work. So you'll always see 0 degrees. We'll need to determine the minimal set of data (and where it exists) in the GeocodeModel to add it to the weather locations model properly.
| Andrew Hayzen (ahayzen) wrote : | # |
OK well, I think this is clear to land then and the issues stated will be fixed in upcoming mps :-)
| Victor Thompson (vthompson) wrote : | # |
Adding Martin as a reviewer. I'd like to make sure he agrees with proceeding using the existing APIs for reverse geocoding, before we go to far into making additional changes.
| Martin Borho (martin-borho) wrote : | # |
lgtm!
To get it work with the data backend, the current-
Important is here "location.coord" and "location.
| Victor Thompson (vthompson) wrote : | # |
It doesn't look like Timezone is available from the data available by reverse geocoding. I think we'll still need to use GeoNames (as we do for the other locations) to get this info.
| Victor Thompson (vthompson) wrote : | # |
Top approving so work on Location management can proceed.


PASSED: Continuous integration, rev:44 91.189. 93.70:8080/ job/ubuntu- weather- app-reboot- ci/90/ 91.189. 93.70:8080/ job/ubuntu- weather- app-reboot- utopic- amd64-ci/ 60 91.189. 93.70:8080/ job/ubuntu- weather- app-reboot- vivid-amd64- ci/90
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/ubuntu- weather- app-reboot- ci/90/rebuild
http://