Merge lp://qastaging/~mikemc/ubuntuone-control-panel/use-qt-timers into lp://qastaging/ubuntuone-control-panel

Proposed by Mike McCracken
Status: Merged
Approved by: Mike McCracken
Approved revision: 403
Merged at revision: 400
Proposed branch: lp://qastaging/~mikemc/ubuntuone-control-panel/use-qt-timers
Merge into: lp://qastaging/ubuntuone-control-panel
Diff against target: 299 lines (+72/-138)
2 files modified
ubuntuone/controlpanel/gui/qt/share_links_search.py (+9/-16)
ubuntuone/controlpanel/gui/qt/tests/test_share_links_search.py (+63/-122)
To merge this branch: bzr merge lp://qastaging/~mikemc/ubuntuone-control-panel/use-qt-timers
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve
Brian Curtin (community) Approve
Review via email: mp+152261@code.qastaging.launchpad.net

Commit message

- Use Qt timers to delay and coalesce IPC for files search. (LP: #1150316)

Description of the change

- Use Qt timers to delay and coalesce IPC for files search. (LP: #1150316)

Previous branch used twisted reactor.callLater, which doesn't work on linux and ended up being more complex, because re-scheduling a twisted pending call is handled differently if the call has already fired. With QTimer, you simply start() it again and it does the right thing.

TO TEST:
# IRL - try searching for something in the search tab.

# test suite: on linux:
xvfb-run u1trial -r qt4 --gui ubuntuone/controlpanel/gui/qt/tests/test_share_links_search.py

To post a comment you must log in.
Revision history for this message
Brian Curtin (brian.curtin) wrote :

Looks ok to me.

review: Approve
Revision history for this message
Roberto Alsina (ralsina) :
review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (186.3 KiB)

The attempt to merge lp:~mikemc/ubuntuone-control-panel/use-qt-timers into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.

*** Running DBus test suite ***
ubuntuone.controlpanel.dbustests.test_dbus_service
  BaseTestCase
    runTest ... [OK]
  DBusServiceMainTestCase
    test_dbus_service_cant_register ... Control panel backend already running.
                                   [OK]
    test_dbus_service_main ... [OK]
  DBusServiceTestCase
    test_cant_register_twice ... [SKIPPED]
    test_dbus_busname_created ... [OK]
    test_error_handler_default ... [OK]
    test_error_handler_with_exception ... [OK]
    test_error_handler_with_failure ... [OK]
    test_error_handler_with_non_string_dict ... [OK]
    test_error_handler_with_string_dict ... [OK]
    test_register_service ... [OK]
  FileSyncTestCase
    test_file_sync_status_changed ... [OK]
    test_file_sync_status_disabled ... [OK]
    test_file_sync_status_disconnected ... [OK]
    test_file_sync_status_error ... [OK]
    test_file_sync_status_idle ... [OK]
    test_file_sync_status_starting ... [OK]
    test_file_sync_status_stopped ... [OK]
    test_file_sync_status_syncing ... [OK]
    test_file_sync_status_unknown ... [OK]
    test_status_changed_handler ... [OK]
    test_status_changed_handler_after_status_requested ... [OK]
    test_status_changed_handler_after_status_requested_twice ... [OK]
  OperationsAuthErrorTestCase
    test_account_info_returned ... [OK]
    test_change_device_settings ... [OK]
    test_change_replication_settings ... [OK]
    test_change_volume_settings ... [OK]
    test_connect_files ... [OK]
    test_devices_info_returned ... [OK]
    test_disable_files ... [OK]
    test_disconnect_files ... [OK]
    test_enable_files ... [OK]
    test_remove_device ... [OK]
    test_replications_info ... [OK]
    test_restart_files ... [OK]
    test_sta...

403. By Mike McCracken

remove unused mock import

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