Merge lp://staging/~gary-wzl77/ubuntu-rest-scopes/fix_1518888 into lp://staging/ubuntu-rest-scopes

Proposed by Gary.Wang
Status: Rejected
Rejected by: Adam Collard
Proposed branch: lp://staging/~gary-wzl77/ubuntu-rest-scopes/fix_1518888
Merge into: lp://staging/ubuntu-rest-scopes
Diff against target: 161 lines (+35/-9)
2 files modified
src/scopes/tests/test_weatherchannel.py (+23/-5)
src/scopes/weatherchannel.py (+12/-4)
To merge this branch: bzr merge lp://staging/~gary-wzl77/ubuntu-rest-scopes/fix_1518888
Reviewer Review Type Date Requested Status
Ubuntu One hackers Pending
Review via email: mp+281720@code.staging.launchpad.net

Commit message

Weather app/scope usage fixed
1.When user clicks "hourly" button, it takes user from scope to weather app. And weather app displays hourly row on startup
2.Change "10 days forecast" to "5 days forecast"
3.When user clicks "5 days forecast" button, it takes user from scope to weather app. And weather app displays default weather graphic on startup

Note: This MR depends on
      https://code.launchpad.net/~gary-wzl77/ubuntu-weather-app/fix_1518888/+merge/281719

Description of the change

Weather app/scope usage fixed
1.When user clicks "hourly" button, it takes user from scope to weather app. And weather app displays hourly row on startup
2.Change "10 days forecast" to "5 days forecast"
3.When user clicks "5 days forecast" button, it takes user from scope to weather app. And weather app displays default weather graphic on startup

Note: This MR depends on
      https://code.launchpad.net/~gary-wzl77/ubuntu-weather-app/fix_1518888/+merge/281719

To post a comment you must log in.
Revision history for this message
David Callé (davidc3) wrote :

Interesting proposal, is this change considering the case of looking for weather in another location?
In this case, shouldn't the scope pass some location argument to the weather app?

Revision history for this message
Gary.Wang (gary-wzl77) wrote :

Interesting proposal, is this change considering the case of looking for
weather in another location?
In this case, shouldn't the scope pass some location argument to the
weather app?

A: Thanks for this suggestion, will have it in next MR update. The url
passed from weather scope to app will be as following:
weather://?display=hourly&city=London&lat=51.50853&lng=-0.12574
weather://?display=default&city=London&lat=51.50853&lng=-0.12574

On Wed, Jan 6, 2016 at 5:30 PM, David Callé <email address hidden> wrote:

> Interesting proposal, is this change considering the case of looking for
> weather in another location?
> In this case, shouldn't the scope pass some location argument to the
> weather app?
> --
>
> https://code.launchpad.net/~gary-wzl77/ubuntu-rest-scopes/fix_1518888/+merge/281720
> You are the owner of lp:~gary-wzl77/ubuntu-rest-scopes/fix_1518888.
>

--
Br
Gary.Wzl

495. By Gary.Wang

1.Add location arguments to have city weather view navigation in weather app
2.Fixed weather test case

Revision history for this message
Gary.Wang (gary-wzl77) wrote :

Hi David
   Could you please review this again?
   Thanks.

Unmerged revisions

495. By Gary.Wang

1.Add location arguments to have city weather view navigation in weather app
2.Fixed weather test case

494. By Gary.Wang

Weather app/scope usage fixed
1.When user clicks "hourly" button, it takes user from scope to weather app. And weather app displays hourly row on startup
2.Change "10 days forecast" to "5 days forecast"
3.When user clicks "5 days forecast" button, it takes user from scope to weather app. And weather app displays default weather graphic on startup

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches