"unknown" connectivity status problematic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Savilerow project |
New
|
Undecided
|
Unassigned | ||
unity-scopes-api (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
unity-scopes-shell (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
metadata provides a scope a network connectivity status enum with three possible states:
* connected
* disconnected
* unknown
Sometimes unknown is the current state. This is quite problematic because in general a scopes that queries the network (that is, most scopes) need to know whether there is network or is not network and depending on this either make the network queries or display an error message.
A status of unknown connectivity leaves the scope with no valid option:
* the scope could assume the network is down and provide the user an error message. But often the network is not actually down, so this interrupts the user's flow unnecessarily
* the scope could assume the network is up, but this is dangerous if it is not up
Related branches
- Marcus Tomlinson (community): Approve
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Michi Henning (community): Approve
-
Diff: 50 lines (+13/-0)3 files modifiedsrc/Unity/previewmodel.cpp (+6/-0)
src/Unity/scope.cpp (+5/-0)
src/Unity/scope.h (+2/-0)
I think the bug here is that you are seeing an Unknown status at all. That shouldn't happen. The shell sets the connectivity status before it dispatches queries, so you should only get Connected or Disconnected. Unknown is really more of an uninitialised state.
Could you please point me to the source code of a particular scope effected by this Unknown connectivity status issue.