Merge lp:~elopio/autopilot/fix1257055-slow_drag into lp:autopilot

Proposed by Leo Arias
Status: Superseded
Proposed branch: lp:~elopio/autopilot/fix1257055-slow_drag
Merge into: lp:autopilot
Diff against target: 1650 lines (+1161/-233)
7 files modified
autopilot/input/_X11.py (+3/-3)
autopilot/input/__init__.py (+4/-4)
autopilot/input/_common.py (+12/-2)
autopilot/input/_uinput.py (+352/-216)
autopilot/tests/functional/test_input_stack.py (+6/-5)
autopilot/tests/unit/test_input.py (+782/-3)
debian/control (+2/-0)
To merge this branch: bzr merge lp:~elopio/autopilot/fix1257055-slow_drag
Reviewer Review Type Date Requested Status
Thomi Richards (community) Needs Fixing
PS Jenkins bot continuous-integration Needs Fixing
Leo Arias Pending
Review via email: mp+202205@code.launchpad.net

This proposal supersedes a proposal from 2014-01-19.

This proposal has been superseded by a proposal from 2014-02-11.

Commit message

Added Mouse, Touch and Pointer drags with rate.

To post a comment you must log in.
421. By Leo Arias

Updated the copyright years.

422. By Leo Arias

Added the rate to the Pointer drag.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
423. By Leo Arias

Renamed MockTouch to MockUinputTouch.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
424. By Leo Arias

Merged with trunk.

425. By Leo Arias

Added python-evdev as a build-dep.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

Hi,

I'm not sure if this MP is still relevant. If it's not, please delete the proposal to merge. If it is, then:

39 - def drag(self, x1, y1, x2, y2):
40 + def drag(self, x1, y1, x2, y2, rate=10):

If you're adding (or removing, or changing) a parameter to a public method, please document it in the docstrings. What exactly is 'rate' measured in anyway?

82 - def drag(self, x1, y1, x2, y2):
83 + def drag(self, x1, y1, x2, y2, rate=10):

You introduce a new parameter, and then don't use it at all in the method.

In general this MP makes me feel rather uneasy. You're introducing a new parameter, and some code changes, and I can't see any justification for it.

If this is really needed, I think it might be worth moving the algorithm to a common location, and making both the X11 and uinput backends be able to use it. That way, you can test it without needing to mock out anything.

Anyway, please talk to me on IRC about this. We need to either clean it up and merge it, or remove it from the review queue.

review: Needs Fixing
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

Hi,

In order to make our review queue a little more sane, I'm setting this to WIP. If/when you need a new review, please set it back to 'Needs Review', and (optionally) ping someone on the AP team.

Thanks.

426. By Leo Arias

Merged with prerequisite branch.

427. By Leo Arias

Fixed the imports.

428. By Leo Arias

Added comments for the rate parameter.

429. By Leo Arias

Updated the tests.

430. By Leo Arias

Removed unused import.

431. By Leo Arias

Removed extra line.

432. By Leo Arias

s/should/must

433. By Leo Arias

Added a test with time_between_events.

434. By Leo Arias

We can't use the real Mouse, so switch to touch backend for now.

435. By Leo Arias

Updated the fake.

Unmerged revisions

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