Merge lp:~salgado/launchpad/remove-IDBSchema into lp:launchpad
Proposed by
Guilherme Salgado
Status: | Merged |
---|---|
Approved by: | Francis J. Lacoste |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~salgado/launchpad/remove-IDBSchema |
Merge into: | lp:launchpad |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~salgado/launchpad/remove-IDBSchema |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis J. Lacoste (community) | Approve | ||
Review via email:
|
To post a comment you must log in.
= Summary =
While reading the breadcrumbs code I stumbled upon IDBSchema, which I
thought was gone already. After greping around I realized it was not
used anymore, and there were a couple related functions that were being
(ab)used only in a couple places.
== Proposed fix ==
I removed the class and the two functions, fixing the call sites of the
functions. There are a bunch of tests that rely on the unusual terms
generated by said function, so I had to keep them that way instead of
using the terms provided by IEnumeratedType. I added an XXX to explain
why we need to do that.
== Tests ==
I ran lp.bugs.stories and everything pass.
== 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: /launchpad/ webapp/ interfaces. py /launchpad/ webapp/ vocabulary. py bugs/browser/ bugtask. py
lib/canonical
lib/canonical
lib/lp/
== Pylint notices ==
lib/lp/ bugs/browser/ bugtask. py
88: [F0401] Unable to import 'lazr.uri' (No module named uri)