launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #03398
Re: API issue moving branches
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/13/2010 11:41 AM, Francis J. Lacoste wrote:
> About the question of how to do big refactoring while maintaining backward
> compatibility, we will have to maintain an implementation of the old API that
> is implemented in terms of the new.
This sounds a lot like a view. It sometimes seems like it would be
nicer if we exposed views rather than our internal API.
For example, lazr.restful cannot support IBranch.addLandingTarget's
parameters, so I had to create (I)Branch._createMergeProposal and expose
it over the API as createMergeProposal. I think that sort of thing
would be clearer as a method on a view that just munged the parameters
and called the original method.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvxXbwACgkQ0F+nu1YWqI0hsgCfSb7mYEBrASif8IoUP4R/jitA
mggAn03E2hubF/D7AzjrymIOgBFctCrc
=ksAB
-----END PGP SIGNATURE-----
References