Merge ~pelpsi/launchpad:alphabetical-sort-orderd-unhelpful-codenames into launchpad:master
Proposed by
Simone Pelosi
Status: | Merged |
---|---|
Approved by: | Simone Pelosi |
Approved revision: | 18a42c72f7f15854ec0d7024abe210226e633ec5 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~pelpsi/launchpad:alphabetical-sort-orderd-unhelpful-codenames |
Merge into: | launchpad:master |
Diff against target: |
93 lines (+50/-3) 3 files modified
lib/lp/registry/interfaces/product.py (+2/-1) lib/lp/registry/model/product.py (+9/-2) lib/lp/registry/tests/test_product.py (+39/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+439077@code.launchpad.net |
Commit message
Current alphabetical sort order for Ubuntu codenames is unhelpful
translation sorted by distroseries.
LP: #1923378
To post a comment you must log in.
Have you noticed that Colin suggested to replace `p.distroseries .name` with `Version( p.distroseries. version) ` in the related bug in a comment?
If you plan to do otherwise, what are your reasons?
Also, while it seem daunting to find corresponding tests, there are a couple of strategies I use.
First, as you modify something in `product.py`, it is highly likely that there are unit tests in a `test_product.py` near the same location of the former file.
You are modifying the `translatable_ packages` property, so the first I would do is search for that name in the above test file. If that does not show up, I would look where `translatable_ packages` is used and then look for the corresponding tests.
Also, sometimes we do have doctests, which are a bit harder to find.
Running the whole test suite to find the correct tests is usually off limits except for the most severe changesets, as it takes so long ( 6 hours on my laptop, though mine seems to be on the slower end ).
tl/dr Although we do not measure test coverage, we seem to have a pretty high coverage. Please have a look whether you could create a test, and in case you need help, please do not hesitate to reach out.