= Summary =
Refactor the inline bug comment code for reuse, specifically by branch
merge proposals.
== Proposed fix ==
Extract the error handling code from bugtask-index.js into errors.js.
Extract the comment handling code into comment.js. Reorganize as a Widget.
== Pre-implementation notes ==
Preimplementation was with thumper.
== Implementation details ==
As a drive-by, the export of IBranchMergeProposal.createComment is
changed to export_factory_operation. This ensures that its return value
is usable.
== Tests ==
bin/test -v --layer=BugsWindmillLayer
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
== JSLint notices ==
jslint: No problem found in
'/home/abentley/launchpad/inline-comment/lib/canonical/launchpad/javascript/lp/comment.js'.
jslint: No problem found in
'/home/abentley/launchpad/inline-comment/lib/canonical/launchpad/javascript/lp/errors.js'.
jslint: No problem found in
'/home/abentley/launchpad/inline-comment/lib/canonical/launchpad/javascript/bugs/bugtask-index.js'.
jslint: 3 files to lint.
== Pylint notices ==
lib/lp/code/interfaces/branchmergeproposal.py
27: [F0401] Unable to import 'lazr.lifecycle.event' (No module named
lifecycle)
42: [F0401] Unable to import 'lazr.restful.fields' (No module named
restful)
43: [F0401] Unable to import 'lazr.restful.declarations' (No module
named restful)
lib/canonical/launchpad/interfaces/_schema_circular_imports.py
18: [F0401] Unable to import 'lazr.restful.declarations' (No module
named restful)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
= Summary =
Refactor the inline bug comment code for reuse, specifically by branch
merge proposals.
== Proposed fix ==
Extract the error handling code from bugtask-index.js into errors.js.
Extract the comment handling code into comment.js. Reorganize as a Widget.
== Pre-implementation notes ==
Preimplementation was with thumper.
== Implementation details == posal.createCom ment is factory_ operation. This ensures that its return value
As a drive-by, the export of IBranchMergePro
changed to export_
is usable.
== Tests == BugsWindmillLay er
bin/test -v --layer=
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: code/interfaces /branchmergepro posal.py /launchpad/ javascript/ bugs/bugtask- index.js /launchpad/ javascript/ lp/errors. js /launchpad/ interfaces/ _schema_ circular_ imports. py bugs/templates/ bugtask- index.pt /launchpad/ javascript/ lp/comment. js
lib/lp/
lib/canonical
lib/canonical
lib/canonical
lib/lp/
lib/canonical
== JSLint notices == abentley/ launchpad/ inline- comment/ lib/canonical/ launchpad/ javascript/ lp/comment. js'.
jslint: No problem found in
'/home/
jslint: No problem found in abentley/ launchpad/ inline- comment/ lib/canonical/ launchpad/ javascript/ lp/errors. js'.
'/home/
jslint: No problem found in abentley/ launchpad/ inline- comment/ lib/canonical/ launchpad/ javascript/ bugs/bugtask- index.js' .
'/home/
jslint: 3 files to lint.
== Pylint notices ==
lib/lp/ code/interfaces /branchmergepro posal.py .event' (No module named fields' (No module named declarations' (No module
27: [F0401] Unable to import 'lazr.lifecycle
lifecycle)
42: [F0401] Unable to import 'lazr.restful.
restful)
43: [F0401] Unable to import 'lazr.restful.
named restful)
lib/canonical/ launchpad/ interfaces/ _schema_ circular_ imports. py declarations' (No module enigmail. mozdev. org
18: [F0401] Unable to import 'lazr.restful.
named restful)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr UklMACgkQ0F+ nu1YWqI0TIgCfcs mvIb+qgNSDBGRnD yciBJvh FvxrnRxj4Miho4v OzpQF912z
h3gAnin+
=+Dh5
-----END PGP SIGNATURE-----