Merge lp:~acerisara/autopilot/move-to-object into lp:autopilot
| Status: | Merged |
|---|---|
| Approved by: | Christopher Lee on 2016-02-29 |
| Approved revision: | 542 |
| Merged at revision: | 576 |
| Proposed branch: | lp:~acerisara/autopilot/move-to-object |
| Merge into: | lp:autopilot |
| Diff against target: |
203 lines (+26/-76) 6 files modified
autopilot/input/_X11.py (+5/-49) autopilot/input/__init__.py (+13/-21) autopilot/input/_common.py (+5/-1) autopilot/input/_uinput.py (+1/-1) autopilot/tests/functional/test_input_stack.py (+1/-2) autopilot/tests/unit/test_input.py (+1/-2) |
| To merge this branch: | bzr merge lp:~acerisara/autopilot/move-to-object |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| platform-qa-bot | continuous-integration | Approve on 2016-02-29 | |
| Christopher Lee (community) | Needs Information on 2016-01-25 | ||
| Nicholas Skaggs (community) | 2015-01-24 | Approve on 2015-02-17 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-02-04 | |
| Thomi Richards | 2015-01-24 | Pending | |
|
Review via email:
|
|||
Commit Message
Refactored autopilot.
Description of the Change
Refactored autopilot.
- 537. By Andrea Cerisara on 2015-01-24
-
Updated doc.
- 538. By Andrea Cerisara on 2015-01-31
-
Updated doc.
| Andrea Cerisara (acerisara) wrote : | # |
The idea was to have a reference to the doc at `autopilot.
| Christopher Lee (veebers) wrote : | # |
LGTM, thanks :-) Just waiting on CI for this. Not sure why it's not running, will ping CI now.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:538
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| Nicholas Skaggs (nskaggs) wrote : | # |
Just leaving this here as commentary on the change.
<thomi> balloons: veebers: I'm disturbed by the deletion of the docstring in that MP
<balloons> is there a more elegant way to do it, while still avoiding double documentation?
<thomi> are the two methods identical?
<balloons> mm.. I suppose it should actually have a docstring.. a unique one
<balloons> meh
<thomi> yeah
<thomi> and make that function public, and give it a docstring too
<balloons> I was thinking it was a duplication, but it's not purely one
<thomi> that way the docstring can say "moves the cursor to the center point of the object. See `autopilot.
| Thomi Richards (thomir) wrote : | # |
just to give a bit more context:
I don't see any problem with making the 'get_center_point' function part of the public autopilot API, and documenting it as such. Once that's done, you can then change the docstring as I suggested on IRC.
To make get_center_point public:
1) Import it in the autopilot.input package. Make sure it appears in __all__. This should cause the docstring to appear in the auto-generated docs.
2) Change any code that uses that function to import it from autopilot.input, NOT from the private module.
3) profit!
| Nicholas Skaggs (nskaggs) wrote : | # |
Andrea. any chance you can make the tweaks Thomi suggests?
- 539. By Andrea Cerisara on 2016-01-08
-
Merged trunk.
- 540. By Andrea Cerisara on 2016-01-08
-
Made get_center_point public.
- 541. By Andrea Cerisara on 2016-01-08
-
Made get_center_point public.
| Christopher Lee (veebers) wrote : | # |
Hi Andrea, thanks for this. It looks good on a quick once over; I'm just in the process of getting the CI infra back up and running for the MPs so we'll have to wait on that unfortunately. I'll keep you in the loop :-)
| Christopher Lee (veebers) wrote : | # |
Looking good to me, a single query re: the inclusion of some docstring details.
Other than the docstring, it's LGTM
- 542. By Andrea Cerisara on 2016-01-26
-
Added missing doc.
| platform-qa-bot (platform-qa-bot) wrote : | # |
FAILED: Autolanding.
Approved revid is not set in launchpad. This is most likely a launchpad issue and re-approve should fix it. There is also a chance (although a very small one) this is a permission problem of the ps-jenkins bot.
https:/
Executed test runs:
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
None: https:/

Looking good, just a minor nit-pick re: docstring. Thanks :-)