Merge lp:~vthompson/ubuntu-clock-app/clock-location into lp:ubuntu-clock-app

Proposed by Victor Thompson
Status: Merged
Approved by: Nekhelesh Ramananthan
Approved revision: 281
Merged at revision: 285
Proposed branch: lp:~vthompson/ubuntu-clock-app/clock-location
Merge into: lp:ubuntu-clock-app
Diff against target: 32 lines (+6/-3)
2 files modified
backend/modules/GeoLocation/geolocation.cpp (+3/-3)
debian/changelog (+3/-0)
To merge this branch: bzr merge lp:~vthompson/ubuntu-clock-app/clock-location
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Nekhelesh Ramananthan Needs Fixing
Review via email: mp+262043@code.launchpad.net

Commit message

* Use city for location if available

Description of the change

* Use city for location if available

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Hi Victor, Thanks for the patch. I swear when I implemented this I discussed extensively with Martin Borho about which variables to use and I vaguely remember him explaining that adminName2 and adminName3 worked well in German cities where it is common for duplicate names to appear. Let me check with him and also try out different locations to see if "name" returns better results than "adminName2".

Revision history for this message
Victor Thompson (vthompson) wrote :

If it helps, "name" is the field used at the top of the reboot weather app.
On Jun 16, 2015 3:01 AM, "Nekhelesh Ramananthan" <email address hidden>
wrote:

> Hi Victor, Thanks for the patch. I swear when I implemented this I
> discussed extensively with Martin Borho about which variables to use and I
> vaguely remember him explaining that adminName2 and adminName3 worked well
> in German cities where it is common for duplicate names to appear. Let me
> check with him and also try out different locations to see if "name"
> returns better results than "adminName2".
> --
>
> https://code.launchpad.net/~vthompson/ubuntu-clock-app/clock-location/+merge/262043
> You are the owner of lp:~vthompson/ubuntu-clock-app/clock-location.
>

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

lgtm during my test. Let's merge this! One minor thing, can you add an entry to the debian changelog pls?

review: Needs Fixing
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

I think this minor change is causing jenkins to fail,

=== modified file debian/changelog
--- debian/changelog 2015-06-19 04:30:23 +0000
+++ debian/changelog 2015-06-19 10:06:13 +0000
@@ -6,7 +6,7 @@
   [Victor Thompson]
   * Use city for location if available

--- Nekhelesh Ramananthan <email address hidden> Thu, 18 Jun 2015 20:08:59 +0200
+ -- Nekhelesh Ramananthan <email address hidden> Thu, 18 Jun 2015 20:08:59 +0200

Sry about this. Unable to merge without this minor thing fixed.

review: Needs Fixing
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Autolanding.
More details in the following jenkins job:
http://91.189.93.70:8080/job/ubuntu-clock-app-autolanding/248/
Executed test runs:
    FAILURE: http://91.189.93.70:8080/job/ubuntu-clock-app-vivid-amd64-autolanding/5/console

review: Needs Fixing (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Autolanding failed due to flaky qml test. Top-approving again to merge this MP.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'backend/modules/GeoLocation/geolocation.cpp'
2--- backend/modules/GeoLocation/geolocation.cpp 2014-11-04 15:58:05 +0000
3+++ backend/modules/GeoLocation/geolocation.cpp 2015-06-19 16:13:10 +0000
4@@ -82,11 +82,11 @@
5 foreach (const QVariant &entry, cityData.toMap().value("geonames").toList())
6 {
7 auto data = entry.toMap();
8- auto adminName2 = data.value("adminName2").toString();
9+ auto name = data.value("name").toString();
10 auto adminName1 = data.value("adminName1").toString();
11
12- if (!adminName2.isEmpty()) {
13- m_location = adminName2;
14+ if (!name.isEmpty()) {
15+ m_location = name;
16 emit locationChanged();
17 }
18
19
20=== modified file 'debian/changelog'
21--- debian/changelog 2015-06-19 14:25:05 +0000
22+++ debian/changelog 2015-06-19 16:13:10 +0000
23@@ -9,6 +9,9 @@
24 [Nekhelesh Ramananthan]
25 * Updated version to 3.4 to mark transition to vivid framework
26
27+ [Victor Thompson]
28+ * Use city for location if available
29+
30 -- Nekhelesh Ramananthan <krnekhelesh@gmail.com> Thu, 18 Jun 2015 20:08:59 +0200
31
32 ubuntu-clock-app (3.3) utopic; urgency=medium

Subscribers

People subscribed via source and target branches