inconsistent disappearance of child scope on Today scope

Bug #1568849 reported by Michal
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Holidays Scope
New
Undecided
Unassigned
unity-scopes-api (Ubuntu)
Confirmed
Undecided
Unassigned
unity-scopes-shell (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The child scope shown on Today scope disappears frequently after a manual refresh (swipe down gesture) even when WiFi+location detection are turned on and nothing else changes on Today scope. Not even multiple manual refreshes bring the child scope back. The most efficient way of restoring the child scope is to turn off/turn on the option in settings of Today scope + manual refresh of Today scope afterwards, although this also doesn't work in 100 % of cases.

Would be nice to have the child scope permanently visible on Today scope regardless of the location and WiFi settings.

Using BQ 4.5 / OTA 10

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Hi,

Thanks for reporting this!

Can you test this:
* In Holidays child scope Settings, ensure location data is enabled
* In Today scope Settings, disable all child scopes except Holidays and ensure location is enabled
* Refresh Today many many times.

You should *always* see holidays scope with holidays data. If you do not see holidays data, can you please attach this file to this bug:
/home/phablet/.cache/upstart/scope-registry.log

Note: By design, when location data is disabled, the Holidays child scope does not provide data and so it does not display in the Today scope (although it does display a message saying location data is needed when viewing the Holidays child scope itself). This seems sensible because holiday data is fundamentally based on the user's location. If we displayed (cached) holidays data when the user had location data off, it could be incorrect for example if the user traveled.

Revision history for this message
Michal (michalhlobil) wrote :

I enabled location detection using wifi + GPS and restarted the phone, verified that location detection is turned on in both Today and Holiday scopes, disabled all child scopes in Today scope except Holidays and the child scope appeared there like 1 in 5 reloads only (at best).

I also noted that while reloading the Holiday scope itself (not Today scope), the scope sometimes asks to enable location data even when it is always turned on.

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Thanks for testing that.

Very interesting that Holidays scope shows the message "Location data must be enabled" even when you location data turned on.

This could either be a bug in the holidays scope (it has location data but it does not think it does), or perhaps the location data passed to the holidays scope by the framework is not correct.

To code that checks whether there is location data is very simply and is here:
http://bazaar.launchpad.net/~holidays-scope-team/holidays/trunk/view/head:/src/query.cpp#L207

If there is no location data, the message it displayed and the scope ends.

This does not look buggy to me, so I suspect the scope is not being passed correct location data by the framework. So I am going to add unity-scope-api task to this bug.

Revision history for this message
Michi Henning (michihenning) wrote :

Added unity-scopes-shell because scopes-api just passes through what it gets from the shell.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity-scopes-api (Ubuntu):
status: New → Confirmed
Changed in unity-scopes-shell (Ubuntu):
status: New → Confirmed
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.