Merge lp://qastaging/~diegosarmentero/ubuntuone-client/ubuntuone-client-timer into lp://qastaging/ubuntuone-client

Proposed by Diego Sarmentero
Status: Merged
Approved by: Diego Sarmentero
Approved revision: 1333
Merged at revision: 1325
Proposed branch: lp://qastaging/~diegosarmentero/ubuntuone-client/ubuntuone-client-timer
Merge into: lp://qastaging/ubuntuone-client
Diff against target: 492 lines (+121/-84)
9 files modified
tests/platform/sync_menu/test_linux.py (+32/-17)
tests/status/test_aggregator.py (+15/-0)
tests/syncdaemon/test_main.py (+0/-14)
tests/syncdaemon/test_status_listener.py (+2/-2)
ubuntuone/platform/sync_menu/common.py (+0/-10)
ubuntuone/platform/sync_menu/linux.py (+38/-23)
ubuntuone/status/aggregator.py (+29/-3)
ubuntuone/syncdaemon/main.py (+3/-13)
ubuntuone/syncdaemon/status_listener.py (+2/-2)
To merge this branch: bzr merge lp://qastaging/~diegosarmentero/ubuntuone-client/ubuntuone-client-timer
Reviewer Review Type Date Requested Status
Alejandro J. Cura (community) Approve
Mike McCracken (community) Approve
Review via email: mp+125499@code.qastaging.launchpad.net

Commit message

- Using a timer event that doesn't fire continuously if another update timer is in progress (LP: #1052922).

To post a comment you must log in.
1322. By Diego Sarmentero

merge

1323. By Diego Sarmentero

adding logging

1324. By Diego Sarmentero

fixing test

1325. By Diego Sarmentero

adding test for register_listener

Revision history for this message
Alejandro J. Cura (alecu) wrote :

This branch is wrong: it keeps using cpu while syncdaemon is idle.

review: Needs Fixing
1326. By Diego Sarmentero

Improving timer

1327. By Diego Sarmentero

merge

1328. By Diego Sarmentero

Timer delay improved

1329. By Diego Sarmentero

raise error when the object is not callable

1330. By Diego Sarmentero

tests fixed

Revision history for this message
Mike McCracken (mikemc) wrote :

OK. looks good - tests pass for me on linux, and there are no new tests to run on darwin or windows.
(I have a branch that'll add tests for windows and darwin)

review: Approve
Revision history for this message
Mike McCracken (mikemc) wrote :

I should've added - I couldn't IRL test this because I don't have Q running yet, and IRL on darwin dies because of the bug that my other branch fixes...

Revision history for this message
Mike McCracken (mikemc) wrote :

I just noticed this - this branch removes the method "start_timer" from the UbuntuOneSyncMenuLinux class, but not from the DummySyncMenu class in sync_menu/linux.py.
The test in test_linux.py tests the dummy for start_timer, so it also needs to be updated.

Don't worry about fixing the same issue in common.py, my branch will do that.

review: Needs Fixing
1331. By Diego Sarmentero

removing start_timer from dummy

1332. By Diego Sarmentero

adding missing update_transfers for dummy and test

Revision history for this message
Mike McCracken (mikemc) wrote :

Looks good.

review: Approve
Revision history for this message
Alejandro J. Cura (alecu) wrote :

A few quick fixes needed:

The name of test_dummy_has_start_timer is wrong.

The docstring in test_register_listener_fail is copied from the one above.

"listeners_callbacks" and "register_listener" are misnamed. They should be "progress_listeners" and "register_progress_listener".

This docstring is wrong: """Create the sync menu and run the loop.""". It should be """Create the sync menu and register the progress listener."""

review: Approve
1333. By Diego Sarmentero

fixing naming and docstring problems

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