Merge lp:~mpt/libusermetrics/1286276-no-data-sources into lp:libusermetrics
| Status: | Merged |
|---|---|
| Approved by: | Sebastien Bacher on 2015-08-24 |
| Approved revision: | 206 |
| Merged at revision: | 209 |
| Proposed branch: | lp:~mpt/libusermetrics/1286276-no-data-sources |
| Merge into: | lp:libusermetrics |
| Diff against target: |
43 lines (+4/-4) 2 files modified
src/libusermetricsoutput/UserMetricsImpl.cpp (+1/-1) tests/unit/libusermetricsoutput/TestUserMetricsImpl.cpp (+3/-3) |
| To merge this branch: | bzr merge lp:~mpt/libusermetrics/1286276-no-data-sources |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sebastien Bacher | 2015-08-14 | Needs Information on 2015-09-15 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-08-14 | |
| Michael Terry | 2015-09-15 | Pending | |
|
Review via email:
|
|||
Commit Message
Fixes bug 1286276 (Lock screen whines that "No data sources available" on first use), simply by changing that string to "". First use is just the most obvious situation where this happens. There is never a situation where it would be appropriate to say "No data sources available" to someone who has bought your phone.
Description of the Change
Fixes bug 1286276 (Lock screen whines that "No data sources available" on first use), simply by changing that string to "". First use is just the most obvious situation where this happens. There is never a situation where it would be appropriate to say "No data sources available" to someone who has bought your phone.
| Sebastien Bacher (seb128) wrote : | # |
Testing that change it seems the greeter doesn't display the infographic circle at all if there is no string (the phone lockscreen just displays the date at the top and the wallpaper), Matthew is that fine from a design perspective? Or do we want to display the circle? (in which case more work is needed)
| Sebastien Bacher (seb128) wrote : | # |
That's because the greeter hides the Infographics component if the string is ""
http://
We can fix that either by not having that condition in unity8 (unsure why it was there though, subscribing Michael who seems to have added it and might know) or by changing the "" here to be " " (which feels a bit hackish but should work)
| Michael Terry (mterry) wrote : | # |
I *believe* that behavior on unity8's part (hiding circle if no message) is because: (a) it was an error (like unity8 giving a libusermetrics user that didn't exist) and (b) it looked weird, since there would be no infographic history either. So we just had a purple circle in the middle of the screen. Looked like an incomplete UI element.
I'm happy to take that check out now that a blank message is considered not-an-error-case.
However... Can I propose an alternative? Is it possible we can make libusermetrics behave the same as once the user has logged in once? i.e. show "0 texts received today" and "0 calls made" etc. It feels really weird that there's such a display difference between 1 second before first login and 1s after first login.
All those infographic templates are available at that point, eh? libusermetrics *could* show those strings...
| Sebastien Bacher (seb128) wrote : | # |
urg, the libusermetrics silo landed by error, now that it's in I would prefer pushing forward and fixing the remaining issue rather than reverting. Matthew, could you comment on what would be the right behaviour for the first boot? (cf Michael's comment)
| Matthew Paul Thomas (mpt) wrote : | # |
I dislike the "0 texts/photos/calls today" strings because they sound whiny. "Why aren't you using the phone for this particular purpose? Why? Why?" However, that's a problem that should be fixed generally, not just some of the time.
I don't know what "before first login" means. When you turn on the phone for the first time, you go through the setup, then you enter a session that looks indistinguishable from a normal session, without having seen the lock screen anyway.
But even if you explained to me when "" stops and "0 somethings today" begins, that wouldn't explain it to everyone, so I agree with Michael's proposal of just making it behave the same way all the time.
| Michael Terry (mterry) wrote : | # |
Ah.. OK. After some research, I figured out when it stops showing "" and does "X things today". The first time any of those "things" categories happen ever, they start showing up in the infographic.
So if I receive a call, but never make a call, I won't ever see "0 calls made today", but I will see "1 call received today" today and "0 calls received today" tomorrow.
So at least there's some rhyme and reason to it.
I'm still not convinced we can't do something better in the initial-state case. And am also not convinced that accidentally landing something under discussion is a better reason for further changes rather than backing it out. But I can whip up a unity8 branch that handles "" better. Stay tuned.

PASSED: Continuous integration, rev:206 jenkins. qa.ubuntu. com/job/ libusermetrics- ci/109/ jenkins. qa.ubuntu. com/job/ libusermetrics- vivid-amd64- ci/6 jenkins. qa.ubuntu. com/job/ libusermetrics- vivid-armhf- ci/6 jenkins. qa.ubuntu. com/job/ libusermetrics- vivid-armhf- ci/6/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/libusermetr ics-ci/ 109/rebuild
http://