Merge lp:~unity-team/unity8/older-months into lp:unity8

Proposed by Michael Terry
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 77
Merged at revision: 81
Proposed branch: lp:~unity-team/unity8/older-months
Merge into: lp:unity8
Diff against target: 12 lines (+1/-1)
1 file modified
Greeter/Infographics.qml (+1/-1)
To merge this branch: bzr merge lp:~unity-team/unity8/older-months
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Pete Woods Pending
Review via email: mp+172860@code.launchpad.net

Commit message

Ensure the past circle animations complete

Currently, all the animations stop as soon as the present circles are all visible. This change ensures that the animations run to completion.

Description of the change

Pete Woods said this patch was necessary. Pete, please fill this description and commit message out.

Pete says:
This change ensures the past circle animations complete, regardless of the amount of current circles.

You will notice the bug as soon as you are near the start of the month (like right now).

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Can this be unit-tested?

review: Needs Information
Revision history for this message
Pete Woods (pete-woods) wrote :

It probably could be. There are no unit tests for the infographic circles at present, AFAIK.

It would be a little bit of a pain to do the tests, as there is animation involved here, and I'm not sure when exactly you'd have the test wait until.

Revision history for this message
Albert Astals Cid (aacid) wrote :

Ok, no test then, can you point me at what difference i should be seeing visually between having or not having this patch?

review: Needs Information
Revision history for this message
Pete Woods (pete-woods) wrote :

It makes no different with all the mock backend, as all that data has the "current day" be somewhere late in the month, allowing the "past month" animations to complete purely by chance.

If you run it against the real libusermetrics backend, create yourself a pretend data source using the usermetricsinput command (libusermetrics-tools package):

usermetricsinput twitter "%1 tweets received" "No tweets" single 1.0 0.9 0.8 0.7 0.6 0.0 0.6 0.8 0.9 1.0 0.9 0.8 0.7 0.6 0.7

You should see that the past month data is invisible without this patch.

Revision history for this message
Pete Woods (pete-woods) wrote :

Where "single" is the name of the user for the lightdm mock you have chosen.

Revision history for this message
Albert Astals Cid (aacid) wrote :

Ok

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Greeter/Infographics.qml'
2--- Greeter/Infographics.qml 2013-06-05 22:03:08 +0000
3+++ Greeter/Infographics.qml 2013-07-03 16:59:26 +0000
4@@ -81,7 +81,7 @@
5 var nextCircle = presentCircles.itemAt(presentCircleCounter++)
6 if (nextCircle !== null) nextCircle.presentCircleGrowAnim.start()
7 }
8- if (presentCircleCounter > infographic.model.currentDay) {
9+ if (presentCircleCounter > infographic.model.currentDay && pastCircleCounter >= pastCircles.count) {
10 stop()
11 }
12 }

Subscribers

People subscribed via source and target branches